electric testing -pspice
TRANSCRIPT
-
8/2/2019 Electric Testing -PSpice
1/79
PSpice
-
8/2/2019 Electric Testing -PSpice
2/79
Introduction
PSPICE is a circuit analysis tool that allows theuser to simulate a circuit and extract keyvoltages and currents.
Information is entered into PSPICE via one of
two methods Net List
Schematic
-
8/2/2019 Electric Testing -PSpice
3/79
Net List
-
8/2/2019 Electric Testing -PSpice
4/79
Net List FormatNet List is list of components and the nets (or nodes) thatconnect them together.
The net list consists of:
The Title Line: This should contain information to thecircuit and your name ( you can live it blank).
The Circuit Parameters (R1, C1, VS) as many as needed. The Output Control statements.
statement, to close the file.
* & ; are comments ignored by the program
-
8/2/2019 Electric Testing -PSpice
5/79
Net List Circuit ParametersLetter Circuit Element
R Resistor
C Capacitor
L Inductor
K Mutual InductorV Independent voltage source
I Independent current source
M MOSFET
D Diode
Q Bipolar transistor
W transmission lineX Subcircuit
E Voltage-controlled voltage source
G Voltage-controlled current source
H Current-controlled voltage source
F Current-controlled current source
-
8/2/2019 Electric Testing -PSpice
6/79
Units
-
8/2/2019 Electric Testing -PSpice
7/79
Parameter Syntax
Resistor:
R [+ node] [- node] [value]
Capacitor:
C[+ node][- node][value] [IC=, optional]
Inductor
L[+ node][- node][value] [IC=, optional]
Independent Sources
I [- node] [+ node] [value] [type] [transient spec]
V [+ node] [- node] [value] [type] [transient spec]
-
8/2/2019 Electric Testing -PSpice
8/79
Example 1
1. Determine and number the nodes2. The ground is always node 03. Write the program
*Circuit nameCircuit element
R, V, I, L, C , D, Tr,etc
. analysis type
.end
-
8/2/2019 Electric Testing -PSpice
9/79
Node 3
Node 1Node 2
*node voltages V 1 0 DC 10VR3 1 2 4OHM
R1 2 3 7OHMR2 2 3 10OHMR4 3 0 9OHM.op
.end
-
8/2/2019 Electric Testing -PSpice
10/79
Start >> Orcad >> PSPICE AD
-
8/2/2019 Electric Testing -PSpice
11/79
-
8/2/2019 Electric Testing -PSpice
12/79
First close and reopen the file
-
8/2/2019 Electric Testing -PSpice
13/79
-
8/2/2019 Electric Testing -PSpice
14/79
-
8/2/2019 Electric Testing -PSpice
15/79
-
8/2/2019 Electric Testing -PSpice
16/79
Type of analysis
1. DC analysis
a. DC Bias Point Detailsb. DC Sweep
c. Transfer Function
2. AC analysis
3. Transient analysis : Time Domain Analysis
-
8/2/2019 Electric Testing -PSpice
17/79
DC Analysis
1. DC operating point
Measure all the voltage nodes Measure the current being supplied by thepower supply
Measure the circuit consuming power
-
8/2/2019 Electric Testing -PSpice
18/79
Example 2
-
8/2/2019 Electric Testing -PSpice
19/79
DC analysis
2. DC sweep
.DC [LIN] {varname} {start} {end} {incr}
.DC [OCT][DEC] {varname} {start} {end} {points}
Examples:.DC VIN -.25 .25 .05
.DC V1 list 5 9 12
-
8/2/2019 Electric Testing -PSpice
20/79
*DC sweep1
V1 1 0 10
R1 1 0 1k
.DC V1 0 12 1
.end
-
8/2/2019 Electric Testing -PSpice
21/79
-
8/2/2019 Electric Testing -PSpice
22/79
Output !!
-
8/2/2019 Electric Testing -PSpice
23/79
Output:
1. Printing any value
.PRINT [DC][AC][NOISE][TRAN] [{output variable}*]
.PRINT DC V(3) V(2,3) V(R1) IB(Q13)
2. Plot any relation
.PLOT [DC][AC][NOISE][TRAN] [ [{output variable}*]
.PLOT DC V(3) V(2,3) V(R1) I(VIN)
.PROBE [output variable]*
.PROBE
.PROBE V(3) VM(2) I(VIN)
-
8/2/2019 Electric Testing -PSpice
24/79
DC sweep
*DC sweep1
V1 1 0 10
R1 1 0 1k.DC V1 0 12 1
.print DC V(R1)
.end
-
8/2/2019 Electric Testing -PSpice
25/79
DC sweep
*DC sweep2
V1 1 0 10R1 1 2 1k
Vy 2 0 0
.DC V1 0 12 1
.Plot DC I(vy)
.end
-
8/2/2019 Electric Testing -PSpice
26/79
DC sweep
-
8/2/2019 Electric Testing -PSpice
27/79
DC sweep
*DC sweep3
V1 1 0 10
R1 1 2 1k Vy 2 0 0
.DC V1 0 12 1
.Probe
.end
-
8/2/2019 Electric Testing -PSpice
28/79
DC sweep
-
8/2/2019 Electric Testing -PSpice
29/79
DC sweep
-
8/2/2019 Electric Testing -PSpice
30/79
DC sweep
-
8/2/2019 Electric Testing -PSpice
31/79
DC sweep
-
8/2/2019 Electric Testing -PSpice
32/79
DC sweep
-
8/2/2019 Electric Testing -PSpice
33/79
DC sweep
-
8/2/2019 Electric Testing -PSpice
34/79
DC sweep
-
8/2/2019 Electric Testing -PSpice
35/79
DC sweep
-
8/2/2019 Electric Testing -PSpice
36/79
DC sweep
-
8/2/2019 Electric Testing -PSpice
37/79
DC sweep
Plot V(R2) V(1,2) I(R2) I(V1)
-
8/2/2019 Electric Testing -PSpice
38/79
* V1 1 0 20R1 1 2 1kR2 2 3 1kR3 3 0 1kI1 2 3 20m
.DC V1 list 5 9 12 I1 list 4 8.probe DC V(R2) V(1,2) I(R2) I(V1)
.end
DC sweep
-
8/2/2019 Electric Testing -PSpice
39/79
Example
Find
1. All node voltages2. The current and the power dissipation of the
voltage sources
3. The current through all resistors
-
8/2/2019 Electric Testing -PSpice
40/79
Repeat the above problem for V1=100,120 and150V
Repeat the above problem for V1=100,120 and150V and V2=80,110 and 140V
Example
-
8/2/2019 Electric Testing -PSpice
41/79
Schematic
-
8/2/2019 Electric Testing -PSpice
42/79
Capture sessionframe.You do all yourschematic designand processing
within this window
Session log lists theevents that haveoccurred during thecurrent Capturesession, includingmessages resultingfrom using
Captures tools
Start >> Orcad >> Capture CIS
-
8/2/2019 Electric Testing -PSpice
43/79
Analog or Mixed-SignalA/D is used to simulateanalog and/or digital circuitsusing PSpice.
PC Board Wizardwhilewe focus on designing PCBs.
Programmable Logic
Wizardis for working withprogrammable devices
Schematic is basically just
a design file.
-
8/2/2019 Electric Testing -PSpice
44/79
Project : .OlbDesign: .DSNOnly one in project
-
8/2/2019 Electric Testing -PSpice
45/79
The schematic page editor
-
8/2/2019 Electric Testing -PSpice
46/79
Schematic
-
8/2/2019 Electric Testing -PSpice
47/79
Schematic Pages
Component used in design
Libraries used in design
Output Files
Project Manager
-
8/2/2019 Electric Testing -PSpice
48/79
Design steps
1) Draw the circuit
a) Place components and define its values.b) Place Wires
c) Place Ground
2) Specify the type of analysis
3) Simulation
-
8/2/2019 Electric Testing -PSpice
49/79
-
8/2/2019 Electric Testing -PSpice
50/79
Use only Libraries inPSPICE folder [its onlycan be simulated], otherlibraries only for
schematic and layout
-
8/2/2019 Electric Testing -PSpice
51/79
-
8/2/2019 Electric Testing -PSpice
52/79
-
8/2/2019 Electric Testing -PSpice
53/79
DC analysis
1. DC Bias Point Details
2. DC Sweep
AC analysis
Transient analysis :
Time Domain Analysis
-
8/2/2019 Electric Testing -PSpice
54/79
Bias Point
Bias Point
-
8/2/2019 Electric Testing -PSpice
55/79
-
8/2/2019 Electric Testing -PSpice
56/79
-
8/2/2019 Electric Testing -PSpice
57/79
-
8/2/2019 Electric Testing -PSpice
58/79
Or you can choose the markers from hereAnd place it on the point you want to measure
-
8/2/2019 Electric Testing -PSpice
59/79
Exercise 1
-
8/2/2019 Electric Testing -PSpice
60/79
-
8/2/2019 Electric Testing -PSpice
61/79
Plot Axis SettingsX-axis >>6.0 to 10.0 voltsY-axis >>3.0 to 5.0
-
8/2/2019 Electric Testing -PSpice
62/79
Param Part
In this circuit we select RL as a circuit parameter :
Replace RL default value it by a name e.g. {Rvar}
Note thatThe variable resistance name must be enclosed in curly brackets{}.
The PARAM part, from the SPECIAL.OLB library, is very useful forinvestigating circuit behavior for a range of part values.
-
8/2/2019 Electric Testing -PSpice
63/79
-
8/2/2019 Electric Testing -PSpice
64/79
Simulation Settings
Create a simulation profile Select DC Sweep Select Global parameter Enter Rvar in the parameter name Make Rvar is varied Linearly from 1 to 300 in increments of 1 .
Plot the output on RL
Modify the simulation profile bychoosing secondary sweep too and varythe voltage source
Plot the output on RL
-
8/2/2019 Electric Testing -PSpice
65/79
Transient Analysis
-
8/2/2019 Electric Testing -PSpice
66/79
-
8/2/2019 Electric Testing -PSpice
67/79
-
8/2/2019 Electric Testing -PSpice
68/79
-
8/2/2019 Electric Testing -PSpice
69/79
-
8/2/2019 Electric Testing -PSpice
70/79
Change time to 10 us, then
simulation >> run
-
8/2/2019 Electric Testing -PSpice
71/79
-
8/2/2019 Electric Testing -PSpice
72/79
V1 = 0 For the pulse, the beginning voltage level V2 = 1 For the pulse, the ending voltage levelTD = 0 The delay time of the pulse, from the simulation starting point(0 sec)
TR = 0 The risetimeTF = 0 The falltimePW = 3u The pulse widthPER = 6u The period of the pulse
-
8/2/2019 Electric Testing -PSpice
73/79
-
8/2/2019 Electric Testing -PSpice
74/79
AC Analysis
-
8/2/2019 Electric Testing -PSpice
75/79
-Transient analysis for 3ms- Add markers at R1, R2 and L1
-
8/2/2019 Electric Testing -PSpice
76/79
-
8/2/2019 Electric Testing -PSpice
77/79
-
8/2/2019 Electric Testing -PSpice
78/79
-
8/2/2019 Electric Testing -PSpice
79/79