Professional Documents
Culture Documents
.param Freq=10K
4. Run a .tran command to see how long it takes your circuit to come to
steady state and then edit the .tran command so that data isn't saved
until this time.
6. Execute menu command View=>SPICE Error Log to see the results of this
analysis. The open-loop response magnitude is given by GainMag[dB]
and the phase is given by GainPhi[�].
You can iterate the param Freq to zero dB. That frequency is the loop
crossover frequency and phase margin will be reported as GainPhi in the
error log.
You can set up a .step statement to sweep the parameter Freq. Then you
can plot the open-loop response be executing menu command
View=>SPICE Error Log, and then right mouse clicking and executing menu
command "Plot .step'ed .meas data" Answer yes to the dialog that asks
if LTspice should combine the real .meas data to complex data. Then you
can plot the quanity gain to get a Bode plot the open-loop response of
the system.
--Mike