2020 LTSpice Command Notes
2020 LTSpice Command Notes
2020 LTSpice Command Notes
ECE 2280
LTSpice Commands
Shortcuts:
[1]
ECE 2280 LTSpice Commands
Examples:
.MEAS TRAN res7 AVG V(NS01)
+ TRIG V(NS05) VAL=1.5 TD=1.1u FALL=1
+ TARG V(NS03) VAL=1.5 TD=1.1u FALL=1
Print the value of average value of V(NS01) from the 1st fall of V(NS05) to 1.5V after 1.1us and the 1st fall of
V(NS03) to 1.5V after 1.1us. This will be labeled res7.
.MEAS AC rel8 when V(out)=1/sqrt(2) (The result rel8 is the frequency that the magnitude of V(out) is equal to
0.7071067811865475.)
[2]
ECE 2280 LTSpice Commands
Print the difference in frequency between the two points 3dB down from peak response. NOTE: The data from a
.AC analysis is complex and so are the .measurement statements results. However, the equality refers only to the
real part of the complex number, that is, "mag(V(out))=tmp/sqrt(2)" is equivalent to
Re(mag(V(out)))=Re(tmp/sqrt(2)).
Others:
.op (operating bias points)
.dc VCC 3.3 5 (DC Sweep)
.DC [LIN] {varname} {start} {end} {incr}
.DC [OCT][DEC] {varname} {start} {end} {points}
Examples:
.DC VIN -.25 .25 .05
.DC LIN I2 5mA -2mA 0.1mA VCE 10V 15V 1V
To perform a parametric sweep which means that a variable in the circuit can be
changed. Follow these steps:
1. Define the component parameter with a variable by editing the component
attribute (Ctrl–right-click on the component) and entering “{X}” for the Value,
where “X” is a user defined variable name. The addition of the curly braces
around the variable is important as it tells LTspice IV that “X” is a parameter.
2. Add a .step command via a SPICE directive that specifies the steps for the
parameter by a linear, logarithmic or list of values.
Example A: “.step param X list .1u .2u .3u” steps the parameter X through each
value listed.
Example B: “.step param X .1u .3u .1u” steps the parameter X from 0.1u to 0.3u
in 0.1u increments.
Example:
[4]