

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
LT Spice is a new and improve simulation software.
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Introduction
Spice (Simulation Program with Integrated Circuit Emphasis) is a widely-used computer simulation program. PSpice is the version developed for PC’s. Many different versions of PSpice are available, all having the same basic simulation code but with different user interfaces, device libraries, plotting programs and various bells and whistles. In an effort towards uniformity, so that you are not using three different versions of PSpice in your classes, we are going to use LTSpice for all our classes and labs. This lab will provide an overview of the basic operations. You will continue to learn more about the capabilities of LTSpice throughout further courses.
LTSpice is also called SwitcherCad III. It is a free program available from Linear Technology at http://www.linear.com/company/software.jsp. You can easily download it to your own computer. There is not a lot of documentation available from LT itself, but there is a lot of other web support. There is a Yahoo group for LTSpice at http://groups.yahoo.com/group/LTspice/. They have many files for download, including several tutorials and an extensive (290+ page) manual. This lab is largely based on a tutorial written by Nick Kennedy, an amateur radio enthusiast. His web page is http://www.cox-internet.com/wa5bdu/ltguide.doc.
The following sections provide instructions for drawing and simulating circuits in LTSpice. You can refer to these instructions to complete the exercises in the worksheet. There is no prelab this week.
Drawing the circuit
Double-click on the SwCAD III icon to open the program. Go to File – New Schematic to start a new drawing. To place circuit components on the schematic, you can use the keyboard, the Toolbar or the Edit menu:
For other components , press F2 or the component button (the AND gate symbol) and a menu comes up. Find your component and double-click. On the left are other sub-menus of parts you may need, for example op amps. Note that the same voltage and current sources are used for AC, DC or other types.
In each case, the component appears when you move the mouse. Move it to the desired location and click. Press ctrl-r to rotate before placing. After placing, you are ready to place another of the same type. Right-click, press a different key or button or press ESC to exit placing that component type.
You can connect components by aligning their terminals when you place them on the drawing, otherwise use the wire function. Press F3 or the wire button (the pencil and blue line). Click at the first point, click at any intermediate points where you need to make 90 o^ turns, then click at the second terminal point. Crossed lines are not connected. If you want a junction of wires and not a crossing, you need to click at the junction (look for the blue square that indicates a junction.)
To assign values to components, move the cursor over the component until the pointing finger appears. Right-click and type in the value. For sources, just put in the DC value if you are doing DC analysis. For Transient analysis, click Advanced, go to the left side, click Sine (usually) and enter the amplitude (peak value) and frequency. For AC (frequency response) analysis, go to the Small Signal AC section and put AC, which assigns the default peak value of 1 V or 1 A to the source, or a different value in the amplitude block.
In assigning units , you can use p for pico, n for nano, u for micro, k for kilo, m for milli and MEG for mega. (Be careful: a common mistake is using M for mega, but it will give you milli!) You can use either conventional American 4.7k for a 4.7k-ohm resistor or the international 4k7. You do not have to put V for volts, Hz for hertz and so on, but there is no problem if you do.
LTSpice labels components as R1, R2, C1, C2 and so on. You can change them as you like by right-clicking the label and typing in the new name. To label nodes, press F4 or the “label net” button (the box with an ‘A’ in it) and type in a name. Place the dot over the wire or node and click. There are a couple of reasons to do this:
If you want to add text comments, press ‘T’. Type in the text, ending each line with ctrl-m, and place on the drawing. Under Tools / Control Panel / Drafting Options, you can select the font size.
Dependent sources are modeled as four-terminal devices. The two input terminals are connected to the controlling signal and the two output terminals are connected to the output of the dependent source. The four types of dependent sources are called e, f, g and h for voltage-controlled voltage source, current-controlled current source, voltage-controlled current source and current- controlled voltage source, respectively. The gain value is set by right-clicking on the source and setting the number in the Value line.
Finally, some miscellaneous commands: