Pspice Slide - Electrical Engineering

Download Report

Transcript Pspice Slide - Electrical Engineering

EENG 2920:
Circuit Design and Analysis Using PSpice
Class 4: Transient Analysis (2)
Oluwayomi B. Adamo
Department of Electrical Engineering
College of Engineering, University of North Texas
Switches

PSpice allows the simulation of a special kind of switches,
whose resistance varies continuously depending on the
voltage or current.

When the switch is on, the resistance is RON, and when it is off,
the resistance is ROFF.
N
N
Ron
S
N
Switch
N
N
On state
EENG 2920, Class 4
Roff
N
Off state
2
Voltage-Controlled Switch

The symbol for a voltage-controlled switch is S. The name of this switch
must start with S, and the general form is:


Model parameters for voltage-controlled switch (Table 4.8, page 113)






S<name> N+ N- NC+ NC- SNAME
where N+ and N- are the two nodes of the switch. The current is assumed to flow
from N+ through the switch to node N-. NC+ and NC- are the positive and
negative nodes of the controlling voltage source. SNAME is the model name of
the switch.
VON: control voltage for ON state, unit: V, default: 1.
VOFF: control voltage for OFF state, unit: V, default: 0.
RON: ON state resistance, unit: Ohms, default: 1.
ROFF: OFF state resistance, unit: Ohms, default: 1E6.
Note: RON and ROFF must be greater than zero and less than 1/GMIN. The
default value for GMIN is 1E-12 mhos. The value of ROFF should be as high as
possible and that of RON should be as low as possible as compared to other
components in the circuit.
The voltage-controlled switch device from “breakout.olb” can be edited and
new models can be defined in the same way as resistor. For example,

.MODEL Smod1 VSWITCH (RON=0.5 ROFF=10E6 VON=0.7 VOFF=0)
EENG 2920, Class 4
3
Current-Controlled Switch

The symbol for a current-controlled switch is W. The name of this switch
must start with W, and the general form is:


Model parameters for voltage-controlled switch (Table 4.9, page 118)






W<name> N+ N- VN WNAME
where N+ and N- are the two nodes of the switch. The current is assumed to flow
from N+ through the switch to node N-. VN is the voltage source through which
the controlling current flows. WNAME is the model name of the switch.
ION: control current for ON state, unit: A, default: 1E-3.
IOFF: control current for OFF state, unit: A, default: 0.
RON: ON state resistance, unit: Ohms, default: 1.
ROFF: OFF state resistance, unit: Ohms, default: 1E6.
Note: The current through voltage source VN controls the switch. The voltage
source VN must be an independent source, and it can have a zero or a finite
value. Limitations on other parameters are similar to voltage-controlled switch.
The current-controlled switch device from “breakout.olb” can be edited and
new models can be defined in the same way as resistor. For example,

.MODEL Wmod1 ISWITCH (RON=0.5 ROFF=10E6 ION=0.07 IOFF=0)
EENG 2920, Class 4
4
Time-Dependent Switches

Time dependent close switch: Sw_tClose


Time dependent open switch: Sw_tOpen


This switch is normally closed; setting the closing time opens it.
From library:



This switch is normally open; setting the closing time closes it.
The devices Sw_tClose and Sw_tOpen are from the library “eval.olb” in the
lite version of Capture (the one you got with book)
The devices Sw_tClose and Sw_tOpen are from the library “ANL_MISC.olb”
in the Capture CIS, the version in the EE Labs
Model parameters for time-dependent switches
(Table 4.10, page 120)




TClose/TOpen: time at which switch begins to close/open. unit: s, default: 0.
ttran: time required to switch states from off state to on state (must be
realistic, not 0), unit: s, default: 1us.
Rclosed: closed state resistance, unit: Ohms, default: 10mOhm.
Ropen: open state resistance (Ropen/Rclosed < 1E10), unit: Ohms, default:
1MEGOhm.
EENG 2920, Class 4
5
GAI N = 0.1
E1
2
+
-
100
3
E
V

R2
100k

RL
2


0
Figure 4.7.1
.MODEL SMOD VSWITCH ROFF=10E9 RON=5M VOFF=0 VON=25M
Run simulation to obtain the result

I
0
Vs is VSIN from “source.olb”
Parameters for SMOD:

S1
SMO D
0
Draw circuit as shown
in the figure.


+
-
Vs
VOF F = 0
VAMPL = 20 0
FRE Q = 1k Hz
4
+
-
-
1
+
Example 4.7
R1
Analysis type is Time Domain (Transient)
Run to time: 1ms
Max step size: 5us
10.0A
5.0A
SEL>>
0A
-I(RL)
20V
0V
-20V
0s
0.5ms
1.0ms
V(E1:3)
Time
EENG 2920, Class 4
Figure 4.7.2
6
Example 4.8
R1
R3
1
2
4.7k
L1
3
1
2.5k
5H
R5
4
2
IC = 4mA
1k
I
R2
1.5k
S1
+
-
6
150
R4
5k
V1
200V dc
R6
5
R7
5k
GAI N = 0.5
F1
+
-
V
2
C1
0.1u F
1 IC = -10V
SMO D1
Vg
0

Draw circuits


0
TR = 1us
10V TF = 1us
5ms PW = 5ms
= 10.0 1ms
S1 is the Sbreak from “breakout.olb”
Model for SMOD:


V1 =
V2 =
TD =
PER
F
.model SMOD1 VSWITCH RON=0.01
ROFF=10E5 VON=0.1 VOFF=0
Figure 4.8.1
40V
20V
SEL>>
0V
V(6)
10mA
Run Simulation



Transient Analysis
Run to time: 20ms
Max step size: 5us
5mA
0A
0s
10ms
20ms
I(L1)
Time
EENG 2920, Class 4
Figure 4.8.2
7
Example 4.9
L2
1
25uH
1
3
2
2
IC = 1mA
2
1

Draw circuit


C1
40uF
IC = 200V


W1
ION = 1mA
IOFF = 0.0m A
RON = 0.01
ROF F = 1e6
2
I
L1
25uH
1
W1 is from “analog.olb”
Run simulation

+
-
V
0
Analysis type: Time Domain (Transient)
Run to time: 160us
200V
Max step size: 1us
Figure 4.9.1
0V
-200V
V(1)
400A
200A
SEL>>
0A
0s
100us
200us
-I(L1)
Time
EENG 2920, Class 4
Figure 4.9.2
8
Example 4.10
R1
1.5
TCL OSE = 5 0us
1
2
U1
TTR AN = 1u s
V
V1

Draw circuit



T1 =
T2 =
T3 =
V1 =
V2 =
V3 =
Sw_tClose is from “eval.olb” in the
Lite version of Capture.
Sw_tClose is from “ANL_MISC.olb”
in the Capture CIS version (the
version in the EE Labs).

C1
10uF
0
Figure 4.10.1
10V
Run simulation

0
1ns
10s
0
10
10
Run to time: 160us
Max step size: 1us
5V
0V
0s
100us
200us
V(C1:2)
Time
EENG 2920, Class 4
Figure 4.10.2
9
Example 4.11
TOP EN = 30 us
1
U1
2
V
V1

Draw circuit



T1 =
T2 =
T3 =
V1 =
V2 =
V3 =
Sw_tOpen is from “eval.olb” in the
Lite version of Capture.
Sw_tOpen is from “ANL_MISC.olb”
in the Capture CIS version (the
version in the EE Labs).

R1
10
0
C1
1uF
Figure 4.11.1
10V
Run simulation

0
1ns
10s
0
10
10
Run to time: 100us
Max step size: 1us
5V
0V
0s
50us
100us
V(U1:2)
Time
EENG 2920, Class 4
Figure 4.11.1
10
Problem 4.22 (page 129)

Please note that the following changes have been made to the original
problem



The control voltage of the voltage controlled switch S1 is Vc, i.e., the voltage
across the capacitor.
Simulate the circuit and obtain the following result for the voltage across the
capacitor C, i.e., Vc.
You need to include your final circuit
200V
schematics in your assignment report.
100V
(Your final circuit schematics)
Figure P4.22.1
0V
0s
10ms
20ms
V(S1:1)
Time
EENG 2920, Class 4
Figure P4.22.2
11
Assignment 4

Repeat and reproduce the results for Examples 4.7, 4.8, 4.9,
4.10, and 4.11, and Problem 4.22 on page 129 in the book.

Reproduce the figures on the previous slides and explain the
functionality and the behavior of each circuit:







Figures 4.7.1, 4.7.2
Figures 4.8.1, 4.8.2
Figures 4.9.1, 4.9.2
Figures 4.10.1, 4.10.2
Figures 4.11.1, 4.11.2
Figures P4.22.1, P4.22.2
Assignment is due next week before class.

Compile all your results in a report and turn in the print-out of
the document. See Class 1 notes for the report format.
EENG 2920, Class 4
12