Professional Documents
Culture Documents
Toolbar
Click: Place>>Part OR use the “Place Part” button from the toolbar
LUMS, EE-241 Introductory Electronics Lab, Fall 2009 8
Addi
Adding Libraries
Lib i
If no parts are visible in the “Place Part” dialog, simply click on the “Add Library” button
Default library location folder is
C:\OrCAD\OrCAD_15.7_Demo\tools\pspice\library
Inside the Browse File dialog, click on any *.olb file then press Ctrl+A to select all the files
and hit the “Open File” button
LUMS, EE-241 Introductory Electronics Lab, Fall 2009 9
COMMONLY USED SOURCES
Source Library
VDC DC S Sweep AAnalysis
l i
VAC AC sweep Analysis
VSIN
S Transient
a s e t Analysis
a ys s
VPULSE Transient Analysis
-Warning: Do not confuse “Meg” & “M” SPICE will interpret “M” as “m” or “milli”
-Becareful!! writing just “1F” will mean “1 femto” and not “1 Farad”
-Unit suffixes are optional, SPICE does not need them, e.g. If you need 10 kilo Hertz frequency,
for SPICE you only need to write 10k but for your own convenience you may write 10k Hz
LUMS, EE-241 Introductory Electronics Lab, Fall 2009 12
S h
Schematic
ti
Place>>Wire
- Use
U wirei ttooll tto complete
l t
your schematic
Place>>Ground
Pl G d
- Remember we always
need a ground in the
circuit.
circuit
- The ground we will use is
the “0/SOURCE” - It’s a good practice to label
identified by the symbol your nodes
d b by clicking
li ki
shown in the schematic Place>>Net Alias
- It helps to plot results
Click: Trace>> Add Trace LUMS, EE-241 Introductory Electronics Lab, Fall 2009 16
V lt
Voltage/Level
/L l Marker
M k
- With time you will Click to display
find it tedious to bias point results
- Set
S t the
th cursor to
t the
th
X value
desired point and click
Y value
“Mark Label”
”Sweep
Sweep Type”
Type can be a linear sweep (LIN)
(LIN),
logarithmic (DEC)
**SPICE has a peculiar omission… it does not give REMEMBER!! To run any analysis type
you every branch current, only currents through make sure you have connected its
g sources, to g
voltage get around this, if yyou need a corresponding sources, refer to slide 10
branch current, just add a dummy 0V voltage source!
1
1. Setup the diode circuit as
shown (refer to Lab 2)
2. Run DC Sweep Analysis
from -10
10 to +10 V and
plot Vout vs. Vin
3. Build the circuit to limit
voltage
lt b t
between -2
2 & +2 2
volts
4. Run Transient analysisy
and plot the output
5. Display Bias Points on
the schematic
Place a new part on the drawing called “PARAM” (from the SPECIAL
library.). Double-click its body to open its property sheet.
Within the property sheet editor,
· Select the “OrCAD-PSpice” Filter to make it easier to see the
important fields.
· Click the “New
New Column
Column” button and add a column called R R_var.
var Set
its value to 1k
Make sure to set R_var visible by highlighting it and clicking the
“Display” button
Under display format, select “Name and Value”
· Close the property sheet.
LUMS, EE-241 Introductory Electronics Lab, Fall 2009 26
P
Parametric
t i Sweep
S Contd.
C td
Your drawing should now look like this
this…
As you can observe there are two slopes, this phenomenon is called
hysteresis. It is added to the circuit to retain the voltage level within
the designed threshold.
For more details look for it online also search for “Schmitt Trigger”
LUMS, EE-241 Introductory Electronics Lab, Fall 2009 35