0% found this document useful (0 votes)
24 views

Circuit Analysis Using LT Spice

Uploaded by

Deon JR
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Circuit Analysis Using LT Spice

Uploaded by

Deon JR
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Electronic Circuit Design and

Simulation using LT Spice


JITHINA TS
ASSISTANT PROFESSOR
COLLEGE OF ENGINEERING TRIVANDRUM
SPICE
Simulation Program with Integrated Circuit Emphasis

• Originally developed at EE Berkeley


• Uses mathematical models to describe circuit elements
• SPICE3 is the latest variant.
• It allows DC and time transient analysis of nonlinear circuits
(transistors, diodes, capacitors, etc., also digital circuitry)
• Command line driven interface
• Available in public domain (written in C) Has become de-facto the
industry standard
• Many spin-offs exist (use modified SPICE2 or SPICE3 as their engine),
such as HSPICE, PSPICE, Win SPICE (commercial)
LTspice IV

• A freeware circuit simulator (Windows or *nix/Wine)


• Mac users: install http://winebottler.kronenberg.org/
• LTspice has schematic capture and is much easier to use than traditional
text-based SPICE. The user can enter a circuit to be simulated via a
graphical user interface
• Has virtual scope, makes Bode plots, performs FFT, etc.
• Worth learning about
– It is fast, expandable, powerful, and free
– Most widely used noncommercial CAD electronics software
Software Installation
LTspice runs on Windows 10 and beyond.
LTspice can be downloaded from http://www.analog.com. A direct
link to the distribution file is

https://LTspice.analog.com/download/latest/LTspice64.msi
• To begin drawing the circuit, click New Schematic,
or Ctrl+N
• Enable grid if not shown by clicking Ctrl+G

5
Place Diode
Place Inductor
Toolbar Summary
Place Capacitor
Place Resistor
Label Node Place Circuit Element
Place Ground
Draw Wire

Simulate
Move
Zoom In
Drag
Pan
Undo
Zoom Out Find
Auto Scale Redo
Delete Rotate
Copy Mirror
Paste Place Comment
6
Place SPICE Directive
wire
“Component”
ground
(required)

• To add a component, click on the corresponding icon


• Component button contains slew of predefined components: voltage and current sources;
transistors; opamps; gates; user-defined stuff
• You can Delete (F5 or Ctrl-X) and Move (F7) components, as well as Drag (F8) them
(keep the wires connected)
• Going to "Edit" and selecting "Component..."

7
To rotate the component prior To mirror the component prior
to placing press Ctrl-R to placing press Ctrl-E

8
Once this box is open, select a part that you want in your circuit. This can be done
by typing in the name or scrolling down the list until you find it.
Connecting the Circuit:
• Now that your parts are arranged well, you'll have to attach them with wires.
• Go up to the tool bar and
• select the "Draw Wire" button , or
• "F3" or
• go to "Edit" and select "Draw Wire".
• With the pencil looking pointer, click on one end of a part, when you move
your mouse around, you should see crossed lines appear. Attach the other
end of your wire to the next part in the circuit.
• Repeat this until your circuit is completely wired.
• If you want to make a node (to make a wire go more then one place), click
somewhere on the wire and then click to the part (or the other wire). Or you
can go from the part to the wire. You should see a square block when 3 or
more wires connect at a point.
• Holding down CTRL while drawing lines allows you to make diagonal
connections in the editor.
• To get rid of the pencil, right click.
Right-click to enter
component value

11
Using Net Labels

• These are important if you want to user


your own identifiers for points in the
network where you want to determine
voltages rather than having to work with
the node numbers that LTspice assigns.
• To add net labels,
• press "F4", or
• click on the "Label Net" icon ,
or
• select "Edit/Label Net" from the
menu.
• When you do this, a window will pop up
where you assign the label you want to
use for the net.
Assigning Transistors and opamp

• Similarly, assign the transistors to be 2N3904 and 2N3906


• Note: you will find some familiar components missing (e.g. LM741 op-amp); you have
to add them to LTspice
• All major manufacturers will have SPICE model files online

13
How to add LM741
• Google for LM741, you will get to the
manufacturer’s web-site with link to Model file
LM741.MOD
• Download it, it is an ASCII file in SPICE format:
it comes from National
Semiconductor

component model
describes frequency
response, input and output
impedance, etc. can be a
subcircuit that includes
other elements

14
How to add LM741
• Place this file where LTspice will look for it, preferably in the
local directory (where you circuit file is saved)
• Add generic opamp (opamp2) to your circuit
• Right-click on the symbol to invoke
Component Attribute Editor
• Enter Value = LM741/NS (must match
the first line in LM741.MOD file, which is
not a comment, i.e. not preceded by *,
something like .SUBCKT LM741/NS
…)
• Add SPICE directive

15

You might also like