Lab0: Introduction To Ltspice For Electronics - I: by Naeem Maroof Venue: Electronics Lab Ee Department, Ciit Islamabad
Lab0: Introduction To Ltspice For Electronics - I: by Naeem Maroof Venue: Electronics Lab Ee Department, Ciit Islamabad
Lab0: Introduction To Ltspice For Electronics - I: by Naeem Maroof Venue: Electronics Lab Ee Department, Ciit Islamabad
for Electronics – I
By Naeem Maroof
Venue: Electronics Lab
EE Department, CIIT Islamabad
Why SPICE?
• It is: Simulation Program with Integrated Circuit
Emphasis
• z
Drawing the circuit
• Some common parts are:
– res - resistor
– cap - capacitor
– ind - inductor
– diode - diode
– voltage - any kind of power supply or battery
– Please note that if you double click on the part or its value, no box will
appear.
Drawing the circuit
• Changing the Value of the Part:
– If you only want to change the value of the part, you can right click on the
part, (not the name), and a box title by the part name (such as "Resistor") will
appear. The number of fields in the box will depend on the type of part it is.
Type in the new value and press OK. Use u for micro as in uF = microFarad.
z
Drawing the circuit
• Using Net (Node) Labels:
– These are important if you want to use 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
• select "Edit/Label Net" from the menu.
Drawing the circuit
– When you do this, a window will pop up where
you assign the label you want to use for the
net.
Drawing the circuit
• Saving:
– To save the circuit, use the save button on
the tool bar or any other method you would
normally use to save files.
• Printing:
– To print, you may use the menu or the print
icon
Simulation
• Before you do the simulation:
– Have your circuit properly drawn and saved.
– No floating parts on your page (i.e.
unattached devices).
– You should make sure that all parts have the
values that you want.
– There are no extra wires.
– It is essential that you have a ground in
your circuit.
Simulation
• Choosing a simulation:
– Click on the Simulate button on the tool bar
or use the "Simulate/Edit Simulation Cmd"
command.
Simulation
• Enable whatever type(s) of analysis you
want using the Edit Simulation Command
window. The last one you choose is the
one which will be done when you simulate.
• Waveform Arithmetic
– In Visible Traces, there are functions that can be performed,
these will add/subtract (or whatever you choose)
– Select the signal(s) that you wish to have displayed.
– There are many functions here that may or may not be useful. If
you want to know how to use them, you can use LTSpice's Help
Menu.
Simulation
• Labelling:
– Click on Text Label on top toolbar.
– Type in what you want to write and Click OK
– You can move this around by single clicking
and dragging.
• Finding Points:
– Click on the name of the trace you want to
look at and then a cursor window will appear,
showing information about the point currently
selected.
Simulation
Simulation
• -
Simulation Commands
• Transient
Simulation Commands
• The transient analysis is probably the most
important analysis you can run in LTSpice, and it
computes various values of your circuit over
time.
• Two very important parameters in the transient
analysis are:
– Stop Time.
– Time to Start Saving Data
– Maximum Timestep
– various other checkboxes....
Simulation Commands
• The ratio of Stop Time to Maximum Timestep
determines how many calculations LTSpice
must make to plot a wave form.
• LTSpice always defaults the start time to zero
seconds and going until it reaches the user
defined final time.
• It is incredibly important that you think about
what timestep you should use before running the
simulation
Simulation Commands
• If you make the timestep too small the probe
screen will be cluttered with unnecessary points
making it hard to read, and taking extreme
amounts of time for LTSpice to calculate.