






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Introduction to ltspice, details on how to use it
Typology: Cheat Sheet
1 / 12
This page cannot be seen from the preview
Don't miss anything!







LTspice, also called SwitcherCAD, is a powerful and easy to use schematic capture program and SPICE engine, which is a general-purpose circuit simulation program for nonlinear DC, nonlinear transient, and linear AC analysis. LTspice authored by Mike Engelhardt can be downloaded for free at http://www.linear.com/designtools/software/
On the left side there are 4 downloads -the program itself, you must run the LTspiceIV.exe program to install the software -user guide -getting started -demo circuits (not useful for this course, download instead the example files posted on the course’s website or, alternatively open files in File->examples->Educational directory)
The values of components are: V 1 = 5V V 2 =10V R 1 =10Ω R 2 =20Ω R 3 = 5Ω
Goal: determine the current flowing through each resistor and voltages of nodes.
Step 1. Draw the circuit.
Go to File ->New schematic to create a new circuit.
Select the components from the Schematic Editor Toolbar. In this example, you’ll need
three resistors , two DC voltages (select Component , type voltage and hit ok), a
ground , and wires connecting the components. By default, components are placed vertically, so you may want to rotate two resistors.
Once you are done your circuit should look like this. Note that you can zoom in/out by scrolling.
Step 3 Go to Simulate > OK or hit the icon.
Result will be shown in a pop-up window. --- Operating Point ---
V(n002): 3.57143 voltage V(n001): 10 voltage V(n003): 5 voltage I(R3): 0.714286 device_current I(R2): 0.0714286 device_current I(R1): -0.642857 device_current I(V2): -0.642857 device_current I(V1): -0.0714286 device_current
Components:
V=0 for t<0 and 10V for t> L=470uH C=5.4nF R=to be determined
Goal: determine the range or resistance that produces oscillations. From the analysis of the resulting differential equationR^2 /(4L^2 )<1/(LC)
Step 1. Draw the circuit. Set the values of the passive elements and set the voltage source to Pulse with Vini=0V and Von=10V. One can also pick a delay of 10 μs.
Check the appearance of the circuit.
Step 1a.
Change the numerical value of the resistance to {symbol}.
Step 2a.
Edit > Text Then fill out box as seen on the left, i.e. enter .step directive and list of resistors, check SPICE directive bullet.
Run simulation
and place probe onto a wire to plot a voltage or onto a terminal to plot a current flowing into a device.
The result for the current through the circuit is seen on the left.
Goal: Find temperature dependence of collector current
Once circuit is completed, pick temperature to be swept in the DC sweep tab of the Edit Simulation Command, which is found in the Simulate menu.
Run simulation.
In addition one can measure the maximum value of the voltage output as well as the bandwidth by choosing Edit > Text. Then fill out box as seen on the left, i.e. enter .measure directive and the commands seen and check the SPICE directive bullet.
For the results look in the SPICE Error Log file within the View menu.
Goal: Find the characteristics of a pnp bipolar transistor
Set up two DC sweeps – one for collector voltage, the other for base current
Then Run simulation