You are on page 1of 53

LTspice IV Getting Started Guide

Copyright © 2011 Linear Technology. All rights reserved.


2

Benefits of Using LTspice IV


‹ Stable SPICE circuit simulation with Outperforms pay-for options
Š Unlimited number of nodes
Š Schematic/symbol editor LTspice is also a great
schematic capture
Š Waveform viewer
Š Library of passive devices
‹ Fast simulation of switching mode power supplies (SMPS)
Š Steady state detection Š Over 1100 macromodels of
Š Turn on transient Linear Technology products
Š Stepp response
p Š 500+ SMPS

Š Efficiency / power computations


‹ Advanced analysis and simulation options
Š Not covered in this presentation

© 2011 Linear Technology


3

How Do You Get LTspice IV


‹ Go to http://www.linear.com/LTspice
‹ Left click on Download LTspice IV
‹ Register for a new MyLinear account to receive updates if you have not done so
already

© 2011 Linear Technology


Getting Started

Copyright © 2011 Linear Technology. All rights reserved.


5

Getting Started using LTspice IV


‹ Use one of the 100s of demo circuits available on linear.com
Š Reviewed by Linear Technology’s
Technology s Factory Applications Group
‹ Use a pre-drafted test fixture (JIG)
Š Provides a good starting point
‹ Use the schematic editor to create your own design
Š LTspice
p contains macromodels for most LTC p
power devices

© 2011 Linear Technology


6

Demo Circuits on linear


linear.com
com
‹ Go to http://www.linear.com
‹ Enter
te root
oot pa
partt number
u be in the
t e search
sea c
box (e.g. 3411)
‹ Select Simulate Tab on the left side
‹ Follo the instructions
Follow instr ctions pro
provided
ided

If you do not find a demo circuit of


interest,, use a pre-drafted
p test
fixture – covered next

Download LTspice

Download Demo Circuit

Complete
C l lilist off d
demo circuits
i i available
il bl
at www.linear.com/democircuits
© 2011 Linear Technology
7

Demo Circuit
9 Designed and Reviewed by Factory Apps Group

To run a demo circuit jump


to the Run and Probe a
Circuit in LTspice section

What if I cannot find


a demo circuit?

Š It remains the customer's responsibility to verify proper and reliable operation in the
actual application
Š Printed circuit board layout may significantly affect circuit performance or reliability
© 2011 Linear Technology
8

Getting Started using LTspice IV


‹ Use one of the 100s of demo circuits available on linear.com
Š Reviewed by Linear Technology’s
Technology s Factory Applications Group
‹ Use a pre-drafted test fixture (JIG)
Š Provides a good starting point
‹ Use the schematic editor to create your own design
Š LTspice
p contains macromodels for most LTC p
power devices

© 2011 Linear Technology


9

Pre-Drafted
Pre Drafted Test Fixture (JIG)
‹ Used for testing models during development
‹ Provides a draft starting point
Š Not reviewed by Linear Technology’s factory applications team

Š It remains the customer's responsibility to verify proper and reliable operation in the
actual application
Š Printed circuit board layout may significantly affect circuit performance or reliability
© 2011 Linear Technology
10

Start with a New Schematic


New Schematic

‹ Left click on the New Schematic symbol in the Schematic Editor Toolbar

© 2011 Linear Technology


11

Add a Macromodel & Opening Test Fixture


Add Component

‹ Left click on the Component symbol in


the Schematic Editor Toolbar
‹ E t “root”
Enter “ t” partt to
t search
h for
f the
th model
d l
(e.g. 3411)
‹ Left click on Open this macromodel’s
test fixture

To run a test fixture, jump to the Run and


Probe a Circuit in LTspice
p section

© 2011 Linear Technology


12

Getting Started using LTspice IV


‹ Use one of the 100s of demo circuits available on linear.com
Š Reviewed by Linear Technology’s
Technology s Factory Applications Group
‹ Use a pre-drafted test fixture (JIG)
Š Provides a good starting point
‹ Use the schematic editor to create your own design
Š LTspice
p contains macromodels for most LTC p
power devices

© 2011 Linear Technology


Draft a Design Using the
Schematic Editor

Copyright © 2011 Linear Technology. All rights reserved.


14

Start with a New Schematic


New Schematic

‹ Left click on the New Schematic symbol in the Schematic Editor Toolbar

LTspice is also a great


schematic capture

© 2011 Linear Technology


15

Add a Linear Technology Macromodel


Add Component

‹ Left click on the Component symbol in the Schematic Editor Toolbar


‹ Enter “root” part to search for the model (e.g. 3411)
‹ Left click on OK

© 2011 Linear Technology


16

Getting the Latest Datasheet


‹ Use the macromodel’s shortcuts to download the Datasheet
as a reference for yyour design
g
Š Hold Ctrl key and right click (Ctrl – right click) over the LT
macromodel’s symbol
Š Left click on Go to Linear website for datasheet on the dialog
box that appears
You can also open the macromodel's
macromodel s test fixture as a draft starting point

© 2011 Linear Technology


17

Adding Circuit Elements Place Diode


Pl Di d Rotate
Place Inductor Mirror
Place Capacitor
Place Resistor

‹ Left click on the desired component in the Schematic Editor Toolbar


‹ Left click on Rotate or Mirror to adjust orientation
Š Alternate you can also use Ctrl – R and Ctrl – M key shortcuts
‹ Move the mouse to the position you want to place it
‹ Left click to place it
To cancel or quit a component type,
click the right mouse button

© 2011 Linear Technology


18

Adding Sources,
Sources Loads & Additional Circuit Elements

‹ Left click on the Component symbol in


the Schematic Editor Toolbar
‹ Search directory structure for desired
circuit element (e.g. load and voltage)
‹ Left click on OK
‹ Move the mouse to the position you
want to place it
‹ Left click to place it

Additional Circuit Elements


Like Sources and Loads
© 2011 Linear Technology
19

Highlights of Additional Circuit Elements


‹ Left click on the Component symbol in the Schematic Editor Toolbar for a
directory of additional circuit elements:
Š Arbitrary behavioral source Š Lossy transmission line

Š Voltage dependent voltage Š Bipolar transistor

Š Current dependent current Š Voltage


g controlled switch
Š Voltage dependent current Š Lossless transmission line

Š Current dependent voltage Š Uniform RC-line

Š Independent current source Š Independent voltage source

Š JFET transistor Š Current controlled switch

Š Mutual inductance Š Subcircuit

Š MOSFET transistor Š MESFET transistor


Š …many more

© 2011 Linear Technology


20

Drawing Lines and Labeling Nodes

Draw Wire
Place Ground
Do not forget
g to pplace a
Label Node ground in your design, it is
required for simulation!
‹ Lines
Š Left click on the Draw Wire in the Schematic Editor Toolbar
Š Left click a blue box (terminal)
Š Define the line’s p
path with a left click over intermediate p
points
Š Left click on another blue box (terminal)

© 2011 Linear Technology


21

Editing Circuit Elements Delete


Duplicate

Move
Drag
ag
Undo
Redo

‹ Left click on the desired editing


g option
p
‹ Left click on the circuit element

To organize your layout


layout, use the Drag option to move circuit
elements around and to adjust lines between terminals

© 2011 Linear Technology


22

Editing Circuit Elements Attributes


‹ Right click on the component symbol to modify attributes

‹ Right click on the text next to the component to edit the


visible attribute and label
Š Pointer will turn into a text caret

© 2011 Linear Technology


23

Use Labels to Specify Units in Circuit Elements Attributes


‹ K = k = kilo = 103 ‹ m = M = milli = 10-3
‹ MEG = meg g = 106 ‹ u = U = micro = 10-6
‹ G = g = giga = 109 ‹ n = N = nano = 10-9
‹ T = t = terra = 1012 ‹ p = P = pico = 10-12
‹ f = F = femto = 10-15
15

Important
Š Use MEG to specify 106, not M
Š Enter 1 for 1 Farad, not 1F

© 2011 Linear Technology


24

Circuit Elements Database


‹ Some components have an available database of
manufacturers’ attributes
Š Resistors, capacitors, inductors, diodes,
Š Bipolar transistors, MOSFET transistors, JFET
transistors
Š Independent voltage and current sources
‹ To configure a component to a manufacture’s
attributes
Š Right click on the component symbol
Š Left click on Select… or Pick New…
Š Left click on a selected device
Š Left click on OK

© 2011 Linear Technology


25

Editing Voltage Sources and Loads


‹ Voltage Source
Š Right
g click the voltage
g
symbol
Š Enter DC voltage value and
(optional) Series Resistance
Š Left click on OK
‹ Load (current)
Š Right click on the load
symbol
Š Enter DC current value
Š Left click on OK

© 2011 Linear Technology


26

Summary of Schematic Editor Toolbar


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

Move
Drag
Undo
Redo
Delete Rotate
p
Duplicate Mirror
Paste b/t Schematics Place Comment
Find Place SPICE directive
© 2011 Linear Technology
Run and Probe a Circuit

Copyright © 2011 Linear Technology. All rights reserved.


28

Simulation Commands
‹ To run a simulation, specify the type of analysis to be
p
performed
‹ There are six different types of analyses:
Š Transient analysis
Š Small signal AC More information on simulation and dot
commands are available in
Š DC sweep LTspice IV User Guide
Š Noise
Š DC transfer function
Š DC operating point
‹ Simulation commands are placed on the schematic as text
Š Called dot commands

© 2011 Linear Technology


29

Editing Simulation Commands


‹ Left click on Simulation menu Demo Circuits and Test Fixtures
have predefined Simulations
‹ Left click on Edit Simulation Cmd C
Commands d
‹ As a starting point in a simulation
Š Left click on Transient tab
Š Enter a Stop Time
Š You may need to adjust this
again later
‹ Select OK

© 2011 Linear Technology


30

Running a Circuit
Run

If model is not found p


please Sync
y Release
under Help menu to update LTspice

© 2011 Linear Technology


31

Probing a Circuit & Waveform Viewer


‹ Left click on any wire to plot the voltage
on the waveform viewer

Voltage
g probe
p cursor

‹ Left click on the body of the component


to plot the current on the waveform
viewer
Š Convention of p positive current is in
the direction into the pin

Current probe cursor


© 2011 Linear Technology
32

Probing a Demo Circuit and Test Fixture


‹ Demo Circuits and Test Fixtures have INs and OUTs clearly
p yyou q
labeled to help quickly
y select them
‹ To view the waveform left click on IN and OUT

Left Click Left


L ft Click
Cli k
Here for Here for
Input Output
Waveform Waveform

© 2011 Linear Technology


33

Voltage Differences Across Nodes


‹ Left click and hold on one
node and drag g the mouse
to another node
Š Red voltage probe at the first
node
Š Black probe on the second

Differential voltages are


displayed in the waveform
viewer

© 2011 Linear Technology


34

Plot Planes
‹ Multiple plot panes can be displayed on one window to allow better
separation between traces permitting different traces to be
i d
independently
d tl autoscaled
t l d
Š Right click in the waveform pane
Š Select Add Plot Pane
Š Left click and hold to drag a label to a new plot pane

© 2011 Linear Technology


35

Zooming In and Out in the Waveform Viewer


‹ To zoom in
Š Left click and hold as you
drag a box about the region
you wish to zoom in then
release
‹ To zoom out
Š Right click and select Zoom
to Fit or Zoom Back

Zoom In
Pan
Zoom Out
Autoscale
© 2011 Linear Technology
36

Measuring VRipple
Ri l , IRipple
Ri l and Time (Frequency)
‹ Drag a box about the region you wish to measure (peak to peak
over a period)
Š Left click and hold to drag a box over the portion of interest
‹ View the lower left hand side of the screen
Š To avoid resizing
resizing, shrink your box before you let go of the left mouse
click or use the Undo command in the Edit menu

To view
T i SMPS voltage
lt ripple
i l you will
ill
need to zoom into a narrow section
since waveform is initially
compressed
co p essed to full
u range
a ge

© 2011 Linear Technology


37

Average/RMS Current or Voltage Calculations


‹ Hold down Ctrl and left click on the I or V trace label in the
waveform viewer

© 2011 Linear Technology


38

Instantaneous & Average Power Dissipation


‹ Instantaneous Power Dissipation
Š Hold down the ALT key y and
left click on the symbol of the
component
Š Pointer will change to a
thermometer
Š Plotted in units of Watts

‹ Average Power Dissipation


Š Hold down the Ctrl key and
left click on the trace label
power dissipation waveform

© 2011 Linear Technology


Generating a BOM and
Efficiency Report

Copyright © 2011 Linear Technology. All rights reserved.


40

Bill of Materials (BOM)


‹ Left click on View menu
‹ Left click on Bill of Materials

© 2011 Linear Technology


41

Computing Efficiency of SMPS Circuits


‹ Left click on Simulate menu
‹ Left click on Edit Simulation Cmd
‹ Left click on Stop simulating if steady state is detected
Š Automaticallyy detect the steadyy state byy checking
g the internal
state of the macromodels
Automatic detection of steady state
‹ Rerun simulation
may not work – steady state detection
may be too strict or lenient

© 2011 Linear Technology


42

Viewing Efficiency Report


‹ Left click on Simulate menu
‹ Left click on Efficiency Report

© 2011 Linear Technology


Simulate a Transient Response
in a SMPS
Advanced Topic

Copyright © 2011 Linear Technology. All rights reserved.


44

Use a Pulsed Function as a Transient Response Load


‹ Insert a current source load
Š Left click on the Component
p symbol
y in the Schematic Editor Toolbar
Š Select load (or load2) circuit element and configure as pulsed
Š Left click on OK
‹ Configure load as a pulsed function (covered next)
Š Steps current from initial to pulsed value and back
‹ Run and review results

© 2011 Linear Technology


45

Configuring Load as a Pulse Function


‹ Right click on the load (or load2) component
‹ Select Pulse
‹ Modify the Attributes
Š I1 = Initial value
Š I2 = Pulsed Value
Š Tdelay = Delay
Š Tr = Rise time
Š Tf = Fall time
Š Ton = On time
Š Tperiod = Period
Tdelay needs to be adequate so that
the device is in steady state and out
Š Ncycles = Number of cycles of startup before the load step occurs
Š Omit for free running
You may need to un
un-click
click Stop simulating if steady state is detected
and specify an end time in Edit Simulation Cmd under the Simulate menu
© 2011 Linear Technology
Simulate a Transformer
Advanced Topic

Copyright © 2011 Linear Technology. All rights reserved.


47

Simulating a Transformer
‹ Draw each winding of the transformer as an individual inductor
‹ Couple inductors with a mutual inductance statement
Š Add a SPICE directive of the form K1 L1 L2 L3 ... 1 to the schematic
Š Left Click on Edit then SPICE Directive
Š Inductors in a mutual inductance will be drawn with a phasing dot
Š Start initially with a mutual coupling coefficient equal to 1

K statement coupling
p g
the windings

For more information check out LTC1871


d
demo circuit
i it andd page 23
23-24
24 off S
September
t b
2006 LT Magazine at www.linear.com

1:3 turns ration g


gives g inductance ratio is
Note: winding
a 1:9 inductance ratio the square of the turns ratio

© 2011 Linear Technology


Additional Information and
Support

Copyright © 2011 Linear Technology. All rights reserved.


49

Reminder to Periodically Sync Release


‹ Update your release of LTspice to get the latest
Š Software updates
Š Models and examples Sign up for Linear Insider via
MyLinear (www.linear.com) for
email news and updates

List of changes are available in the changelog.txt that is located in


your LTspice root directory (C:\Program Files\LTC\SwCADIII)
© 2011 Linear Technology
50

Built-in
Built in Help System
‹ Left Click on Help menu and then Help Topics

To print out a hardcopy


hardcopy, download user guide at
http://LTspice.linear.com/software/scad3.pdf
© 2011 Linear Technology
51

Emailing Comments and Signing up for Linear Insider

© 2011 Linear Technology


52

Customer Support
‹ Linear Technology customers can obtain support by
Š Calling your local field applications engineer
Š http://www.linear.com/contact/
Š Calling +1 (408) 432 – 1900 for factory application support
‹ Additional support (not related to Linear Technology circuits
or models support)
Š Built in help topics & User Manual
Built-in
Š Independent LTspice users’ group (search messages)

Simulation with the supplied models is fully supported


All bug
g reports
p are appreciated
pp and will be resolved

© 2011 Linear Technology


53

Independent LTspice Users’


Users Group
‹ The group has a section of files and messages with
additional tutorials,, libraries,, and examples
p
Š http://groups.yahoo.com/group/LTspice/
‹ Join LTspice Users’ Group
Š Email LTspice-subscribe@yahoogroups.com
Š Subject=Subscribe

© 2011 Linear Technology

You might also like