Hp42s Adv Circuit Analysis
Hp42s Adv Circuit Analysis
Y
[X)
i 3R
(N
[}
D]
30
el
4
o“SNo
" 2R
AM—AMAMAAM-
2 nX N=
AN
1/4R
>
2R 31/2R
4
ZR% 9/32R
R
§15.’16R
I
One
O————ed shot |
vR A () Juvabrass
RPN SCIENTIFIC
AEEE 141,080
--fl}m-lfll
oo
e olololololo
COMPLE. S 0S
%@@fl@
MODES DISP_
O——ono shot
o3
L)‘- B
JATRIX
|
%
3
’
3
2
z
2
S
D>
B
E
S
EduCALC
27953 Cabot Rd.
Laguna Niguel, CA
ADVANCED CIRCUIT ANALYSIS
by Robert R. Boyd
Copyright 1989
Robert R. Boyd
NOTICE:
The author and/or EduCALC Mail Store makes no warranty of any kind
with regard to this material. The author and/or EduCALC Mail Store
shall not be llable for errors contained herein or for incidental
or consequential damages in connection with the furnishing,
performance, or use of this material.
EduCALC
27953 CABOT ROAD
LAGUNA NIGUEL, CA 92677
To my Wife LINDA: Prov 31:10-12
TITLE PAGE
b
Example - Lattice Network
s
O
Example - Twin-T Network
g
O
Example Collector Feedback
O
NV
|
Alternate Formulations 21
Section I1 - HP-42S Programs 22
References S7
SECTION I. Setting up The Circuit Matrices.
Vo
El Oo———NVVYV > AVAVAY O E2
24 2,
Z
3
Page 1
Since 22//23 = —=——=—=—===-- ,
1 1
-—— - + -— . —
2=z Za
E,
VO’ = ———mmmm oo
;o1 1
1 + 2, -——— 4+ ———)
22 2>
Ez 2:.//2a Ez
VO" =e = e
22 + 2://25 2=
1 + ——————-
2+//22
E=
Voll o e - - - - - - > - - - -
1 1
1 4 22 -== 4 -—-|
\ 2, Zs |
Vo
<
<
O-
N\
+
o
]
= E;K: + EzK=,
Page 2
We try a second example to see 1f there 18 a consistent
pattern occurring.
Vo
. O AVAVAN VWN\-—0O E_
~n
—~
By VYW& A ¢ E
4
U
Es 2://22//2a Ea 2://22//25
4 —mmm - +
E>
2=
1 + ————————-
21//23//2a
Ea
la
1 4+ ——--mm-
2:1//2=2//2
E=
———m 4 e .
1 1 1 1
+ —-—- 1 + 22| ——= + === 4 ——-
24 / Z! Z:B 24 l
Ea
—_—— 4 e=
1 /1 1 1
+ -—-) 1 + Za === + === 4 -——|
2a V2 2= 2a '
Vo = Ei1K:y + EzKz + EaKs + EaKa.
4
Vo =
/ 1 + impedance in Sum of remaining reciprocal
i=1 gseries with E, impedances (admittances)
connected to node Vo /
N
ZE.K..
i=1
As shown in the next example, the Ei’s can be a mix of Ei
and Vi.
Page 4
(2> V= = V.Ka, where Ka = -
(3
E: K Vi - VzK=
0 = V= - V,Ks.
1 -K= Vi Ei K.
-Ka 1 V2 0
Page 5
xample 4 Lattice network.
22
Z),
AN v,
24
Now we can be methodical and consisent.
Ks 1 V2 EiKa + EzKs
--------------------- = F4(A,B,C,D).
1 1 1
1 + A|-—-—— + === 4+ -=-
( B C D )
1
Note, for example, that F3(B,C,A) = -—-=--ccce-—-
1 1
1 + Bf--- + ——-
C A
= F3(B,A,C), l.e., after the first varliable, the order
is not important since the reciprocals can be summed in
any order.
K1 = F3(21,22,24>, K2 = F3(24,21,22)
K3 = F3(22,21,24>, K4 = F3(Z25,22,23)
KS = F3(23,22,25>, K6 = F3(22,23,25)>
Page 7
Example5 Twin-T Network
Step 1. =
Vi = E.:K: + VzsK=
V= = Ei1Ks + VzKa
Vo = V.Ks + VzK.
Step 2.
E:K, = V, - VsKz
0 = V3 - Vsz - V2K¢
Step 3.
1 0 -K= Vi E. K.
0 1 -Ka V2 = E.Ks
-K= -Ka 1 Vs 0
Step 4.
K1 = F3(21,22,23>, K2 F3(23,21,22>,
K3 = F3(24,25,26>, K4 F3(26,24,25),
KS = F3(23,26,27), K6 F3(26,23,27).
Page 8
At this point, we modify our basic star network by adding
current sources:
Z
E, 1 O AN P
oV 3
/’5
}®§
fié
Again, by superposition:
Step
Va = 2Z2ale
V2 Va = Vbe ( 0.6V)
Page 9
Step 2. (Express Ic and Ie in terms of Ib.)
Vbe = V= - Vs
Step 3.
-Ka 1 0 Pz \ EzK=z
0 0 1 -(1+B)2Z2% Va - 0
0 1 -1 0 Ib Vbe
Step 4.
K1 = F2(21,24>, K2 = F2(24,21),
K3 = F2(Z22,24>, K4 = F2(24,22)
Pl = 217724, P2 = 22//24
Page 10
Example 7 Common Emitter Hybrid Pi Transistor Model
co— At b2
Z Vv Z Vv
1 2
Z Z
‘J 2 LU gm\ll
| %
Step 1.
Vx = ExKx + V2K2
Step 2.
E:K: = Vx - V2K2
0 = V= - Vi(Ka - gMPx)
Step 3.
1 -K= l Vi | E. K. |
(gmpx'Ka) 1 V= 0
Step 4.
K1 = F321,22,23), K2 = F3(23,21,22>
K3 = F2(23,24>, P1 = 23//24
Page 11
Example8 Inverting op-amp
Jw
Aol (1 + ----
W=
Jw Jw
1 + ———- i + -———-
Wi Ws
For most op-amp circuits, the single pole rolloff will suffice.
Page 12
Again, steps 1 thru 4 are no different:
Step 1.
V: = ExK: + V2K2
V:(Ks - AKA)
Step 2.
0 = Vz - Vn(Ks - AK«)
Step 3.
1 -K= Vi E. K.
(AKa-K2) 1 V= | - | 0 |
Step 4
K1 = F2(21,22>, K2 = F2(22,21)
K3 = F3(22,23,24), K4 = F3(24,22,23)
—0 v,
Page 13
Step 1.
Vi = E«K: + VzKz
Va = A(Va - V)
Va = E2Ks + VsK->
V= = VaKe + VzKe
Step 2.
E:K: = V, - VzK=2
0 = Vo - AVa + AV,
Esz = V4 - VsK?
0 = Vs - V2K9 - VAKQ
Step 3.
1 -K= 0 0 0 Vi EiKi
A 0 1 -A 0 Va
0 0 0 1 -K» Va Ez=K«
0 -Ks 0 -Ke 1 Vs
Step 4.
K1 = F2(R1,R2>, K2 = F2(R2,R1)
K3 = F3(R2,R3,R4), K4 = F3(R3,R2,R4),
KS = F3(R4,R2,R3),
K6 F2(R5,R6), K7 = F2(R6,R5),
K8 F3(R6,R4,R7>, K9 = F3(R4,R6,R7)
Page 14
Example 10 Non-linear Circuits.
By ™ E> By
R3l D7A R5
Ezo__/\%/\.__i___ - E; o
Va ViK> + VzKe
Page 15
Step 2.
0 = Vs - V:Ke - ViK>
Page 16
L1 abeq
A
=A PRA- T 0 0
Bx_
vA °'y- 0 1 ex-
=Y -
€A
bx_
=A
ZX_
‘A
‘e daas
’A -
SAY + TAY
FENTA SA =
OFNTA - SASA - =N'A A =
“ATA - TA=A €A =
SCA - "X'A ZA =
SXbA - ZXZA
Atd
2 dais
(=A AV
!‘X,A
= =A
O!X9A + 6X€A + BX!A
= *A
+
“A%A TA=A = ©p
+ bx!A
=A€A = =p
CXPA + !XCA +
Ad = A
"1 de8ag
Step 4.
Ki = F4(21,22,23,24>, K2 = F4(23,21,22,24)
K3 = F4(24,21,22,23)
K6 = F3¢Z6,27,28>, K7 F3(27,26,28)
K8 = F3(24,27,29>, K9 F3(27,24,29)>
B, 0— ]
“1
L4
‘ o
J Vv
Page 18
Step 1.
V. E: - lez=2.
Va V= - Icils
Va Ibi2a
Vbe, Va - Vs
Vbe= V2
Step 2.
E. (1 + B2)Ibz2.:
E. K, V= - VaKz - IbzP.
V= + B:Ib:Zs
Es Va + Ib:2a
Vbe, Va - Vs
Vbe= Vi - V2
Page 19
1 0 0 0 0 0 0 (1+B=)>2. Vi
0 1 -K= 0 0 0 0 -P, V2
0 -1 1 0 0 0 Bis 0 Vs
0 0 0 1 0 0 Za 0 Va
0 0 0 0 1 -Ka -(1+4B,)P= 0 Vs
0 0 0 0 -Kas 1 0 -Bz2Ps Vo
0 0 0 1 -1 0 0 0 Ib,
1 -1 0 0 0 0 0 0 Ib=
Step 4.
K1 = F2¢22,23>, K2 = F2(23,22>
K3 = F2(25,27>, K4 = F2(27,25>
KS = F2(Z26,27>, K6 = F2(27,26>
Page 20
By now the astute reader has probably seen the similarity
of the F3 and F4 K factor functions with the parallel
impedance function. There are two alternate formulations
of these functions that may result in shorter HP-42S programs.
For example, if
K1 F4(21,22,23,24>, K2 Fa4¢z22,21,23,24,
K3 F4(23,21,22,24), K4 F4¢24,21,22,23),
K1 F4(21,22,23,24)>, K2 = (K1%21)/22,
K3 (K1%Z21>/23, K4 = (K1ix21)/24.
P1 21//722//723//724, then
Page 21
SECTION II. HP-42S Programs
Character
Y da (down arrow)
R¢ Rup
R Rdn
104 X 10X
- /
1 J
We will begln from the bottom and work up. That is, the following
subprograms with global labels will be used with main programs
"SETUP", "DCAP", and "ACAP", to be described later. They should
be keyed in now.
Stack must
contain:
Y-reg: any any R R
X-reg: C L C L
Page 22
Circuit Resistor in Resisgstor in Operational
element: parallel with parallel with amplifier
capacitor lnductor
Stack must
contain:
Y-reg: any
X-reg: any
Complex
expression: 1 + 21722 1721 + 1/22
Stack must
contain:
Y-reg: 21 21 or 2=z
X-reg: l=2 22 or 2.
Page 23
Function: 2:.//22//23 21//22//23//24
Complex 1 1
expression: ------=-----—---—--- s-e————ee——————————--—----
1/2:, + /22 + 1/2a 1/72: + 1/22 + 1/22 + 1/2a4
Stack must
contain:
T-reg: any 21
2-reg: YA 2=
Y—reg: 2= s
X-reg: Za Za
For "PZ23" and "PZ24", the 28 can be in any order in the stack.
Page 24
Listing Comments
01 LBL "SETUP"
02 WRAP
03 CF 01 Clear AC/DC selection flag
04 CLV "MATK" Clear old circuit matrices
05 CLV "MATE"
06 CLV "MATV"
07 " ACM
Begin menu setup
08 KEY 1 GTO 01
09 " DC"
10 KEY 4 GTO 02
11 MENU
12 STOP
13 LBL 02
14 SF 01 Set flag 01 for DC analysis
15 LBL 01
16 EXITALL
17 "Order?"
18 PROMPT
19 ENTER
20 DIM "MATK" Dimension K (coefficient) matrix
21 1
22 DIM "MATE" Dimension E (independent) column vector
23 DIM "MATV" Dimension V (node voltage) column vector
24 RECT
25 0
26 ENTER
27 COMPLEX
28 FS? 01 DC analysis?
29 GTO 01 Then do not create complex matrices
30 STOx "MATK" Create complex matrices for AC analysis
31 STOx "MATE"
32 STOx "MATV"
33 LBL 01 Begin creating MATK = I (Identity matrix)
34 INDEX "MATK"
35 Rup Place n in X-reg.
36 ENTER
37 ENTER Start in lower rh corner (element n,n)
38 LBL 00
39 STOIJ
40 1
41 STOEL Store 1 in element |, J = |
42 Rdn
43 DSE ST Y Decrement i and j pointers
44 DEG
45 DSE ST X
46 GTO 00 If 1,)J not O then repeat
47 FC? 01
48 GTO "ACAP" Go to AC Analysis Program
49 GTO "DCAP" Go to DC Analysis Program
50 END
Page 25
As an introduction, a DC analysis example will be glven first.
The ladder network on page 4 will be analyzed with resistors for
the impedances Z2: thru Za.
First, the main program "DCAP" will be listed so that the program
flow can be demonstrated.
Listing Comments
01 LBL "DCAP"
02 XEQ "SKF" Store K Factors subprogram. Creates and
gstores all the required K factors. For the
DC ladder network, this will be K., K=,
and Ks (see page 4).
04 LBL 01
05 INPUT "Vn" Choose which node voltage to display
Before going any further, the following resistor values for the
ladder network should be stored in the corresponding numbered
registers:
Page 26
The first subprogram encountered is "SKF", which is given below:
Listing Comments
01 LBL "SKF"
02 RCL 01
03 RCL 02
04 RCL 03 Create K,
05 XEQ "pPzZ3" Get P = R://Rz2//R>
06 ENTER
07 RCL/ 01 K: = P/Rx
08 STO "K1*
09 Rdn
10 RCL/ 03 K= P/Ras
11 STO "K2"
12 RCL 03
13 RCL 04
14 XEQ "F2" Cet Ka
15 STO "K3"
16 END
Now the HP-42S has created all three K factors and we are ready
to fill the 2 x 2 K-matrix, and the 2 x 1 E-vector shown on
page 5, with the subprogram "MAT":
Listing Comments
01 LBL "MAT"
02 INDEX "MATK" Pointers at i = §j = 1.
03 J+ Skip to element 1:2, since "SETUP" already
has put 1/s on the main diagonal.
04 RCL "K2"
0S5 +/-
06 ra Put -K=- at 1:2
07 RCL "K3"
08 +/-
09 ra Put -Ks at 2:1
10 INDEX "MATE"
i1 RCL "E1" Input voltage = 10 V
12 RCLx "K1*"
13 da Put E:K, at 1:1
14 RCL "MATE"
1S5 RCL/ "MATK" Get node voltage vector
16 STO "MATV"
17 END
Page 27
Note that lines 01, 02, 10, and 14 thru 17 must be included for every
circuit to be analyzed. Thus the general format for every "MAT"
subprogram is:
01 LBL "MAT"
02 INDEX "MATK"
(fill K matrix)
INDEX "MATE"
(fill E vector)
RCL "MATE"
RCL/ "MATK"
STO "MATV"
END
Listing Comments
01 LBL "GETV"
02 INDEX "MATV"
03 RCL "vVn" Vn = the selected node voltage, which is the
numbered column element of the node voltage
vector "MATV"
04 1
0S5 STOIJ Store Vn:1 pointer
06 RCLEL Get Vn
07 END
Page 28
Now the DCAP program is ready to run; but we must first execute
"SETUP" before analyzing any circuit:
XEQ "SETUP".
Y: [ 2x1 Matrix 1
vn? Cany)
Page 29
Listing Comments
01 LBL "ACAP"
02 " Log Fi"
Log:io beginning frequency in Hz
03 PROMPT
04 STO " Fll
37 ARCL ST X
38 AVIEW Set flag 21 to stop
39 RCL "PD"
40 1/X
41 STO+ " Fll
Increment frequency
42 RCL "FL"
43 RCL " Fll
44 X<LY?
45 GTO 00 Repeat if not done
46 FIX 03
47 END
Page 30
As an introduction to an AC analysis, the ladder network analyzed in
the DC analysis will have the components changed as fol lows:
Reference Stored in
Element Designator New AC value Register
21 R1 10 K ohms 01
22 c2 0.01 uF 02
23 R3 10 K ohms 03
24 C4 0.01 uF 04
E1 E1l 1 "E1"
Since the matrix on page 5 has the same form whether real or
complex (DC or AC), subprogram "MAT" does not have to be modified
from the DC analysis. Only "SKF" must be modified as shown below:
Listing Comments
01 LBL "SKF"
02 RCL 02
03 XEQ *"XC" Get 22 = 0 - j/wC=
04 STO "z2"
05 RCL 04 Do the same for Ca
06 XEQ "XC"
07 STO "24"
08 RCL 01 Z: = R,
09 RCL "z2"
10 RCL 03 2 = Ra
11 XEQ "PZ23" Get P = R.//22//R>
12 ENTER
13 RCL/ 01 K: = P/R;
14 STO "Ki*
15 Rdn
16 RCL/ 03 Kz = P/Re
17 STO "K2"
18 RCL 03
19 RCL "24"
20 XEQ "F2"
21 STO "K3" The K factors are now all complex
22 END
XEQ "SETUP"; choose AC from the menu, and the order is still 2.
Page 31
We will select a frequency sweep of from 100 Hz to 100 KHz at 10
points per the 3 decades: 1In response to the "Log F1" prompt,
key in 2 (log 100 = 2).
Page 32
Example5. Twin-T Network
Reference Stored in
Element Designator New AC value Register
21 C1 0.01 uF 01
22 R2 133 K 02
23 C3 0.01 uF 03
24 R4 267 K 04
25 CS 0.02 uF 05
26 R6 267 K 06
27 R7 10 Meg 07
E1l El 1 "E1"
Step 2. Clear the previous "SKF" and "MAT" programs, and key in the
following new ones given without comments: (see page 8)
Page 33
30 STO "K4"
31 RCL "23"
32 RCL 06
33 RCL 07
34 XEQ "PZ23"
35 ENTER
36 RCL/ "23"
37 STO "KS5"
38 Rdn
39 RCL/ 06
40 STO "Keé"
41 END
The given component values are for a 60 Hz notch filter. Hence we want
to look at one decade between 10 and 100 Hz. Twenty points should be
enough, therefore execute the following:
XEQ "SETUP"; choose AC; Order? 3, R/S, Log F1?, 1, (log 10 = 1), R/S,
pPD?, 20, R/S, ND?, 1, Vn?, 3, R/S. Output samples are:
2.00 -11.777 76
To see what the output is at exactly 60 Hz: XEQ "ACAP", Log F17?, 60,
LOG, (see 1.778>), R/S, PD?, 1, R/S, ND?, 0, Vn?, 3, will glve Just
one output at log 60 Hz = 1.778:
Page 34
Example7. Common Emitter Hybrid Pi Transistor Model
—=
u v, (Collector)
*
L |
gnv, §R7
(Emltter
Component storage:
Reference Stored in
Element Designator Value Register
Gm GM 0.025 00
21 R1 100 01
22 R2 1 K 02
22 C3 100 pF 03
23 R4 4 Meg 04
23 CS 3 pF 0S5
24 R6 80 K 06
24 R7 10 K 07
E1l E1l 1 Not stored
Page 35
11 RCL 07 11 INDEX "MATE"
12 XEQ "PpPzZ2" 12 RCL "Ki*
13 STO "Z24" 13 da
14 RCL 01 14 RCL "MATE"
15 RCL 22" 15 RCL/ "MATK"
16 RCL "2Z23" 16 STO "MATV"
17 XEQ "pZ3" 17 END
18 ENTER
19 RCL/ 01
20 STO "K1i*
21 Rdn
22 RCL/ "23"
23 STO "K2"
24 RCL "23"
25 RCL "Z24"
26 XEQ "Ppz2"
27 STO "p1"
28 RCL/ "23"
29 STO "K3"
30 END
Reference Stored in
Element Designator Value Register
21 R1 10 K RO1
22 R2 15 K RO2
23 R3 1 K RO3
23 C4 0.015 uF R0O4
24 RS 15 K ROS
E1l E1l 1 Not stored
Since we desire the output V=, the matrix gliven on page 13 |is
recreated without the substitution Vs = -AV,:
Page 36
1 -K=z 0 V. E: K,
-Ka 1 ‘K4 Vz = 0
A 0 1 Va 0
1.00 9.539 -180 (DC gain of 30K/10K in dBV. =180 since this
is an inverting opamp circuit.
6.00 28.094 -179 (Gain lncrease due to feedback T network.)
This gives an opamp pole of 100 Hz, which is more realistic. The
output at node 3 is now:
Page 37
Log F dBV Deg
Reference Stored in
El ement Desjgnator Val ue Register
21 R1 RO1
RRXRARRRR®
22 R2 RO2
23 R3 RO3
24 R4 RO4
25 RS ROS
26 R6 RO6
27 R7 RO7
E1 E1 " E1 "
E2 E2 " Ezn
11 RCL 04 11 +/-
12 XEQ "pP23" 12 ra
13 ENTER 13 J+
14 RCL/ 02 14 RCL NK4II
19 Rup 19 +/-
20 1 Using 20 ra
21 XY K3+K4+K5=1 21 RCL " A"
22 22 ra
23 XY 23 J+
24 24 J+
25 STO "K5" 25 RCL " All
Page 38
26 1 26 +/-
27 RCL 05 27 ra
28 RCL 06 28 J+
29 XEQ "F2" 29 J+
30 STO "Ke" 30 J+
31 - 31 J+
32 STO "K7" 32 J+
33 RCL 06 33 RCL "K7"
34 RCL 04 34 +/-
35 RCL 07 35 ra
36 XEQ "PZ3" 36 J+
37 ENTER 37 RCL "K9"
38 RCL/ 06 38 +/-
39 STO "K8" 39 ra
40 Rdn 40 J+
41 RCL/ 04 41 RCL "K8"
42 STO "K9" 42 +/-
43 XEQ " OPAMP" 43 ra
44 END 44 INDEX "MATE"
45 RCL "Ei"
46 RCLx "K1i"
47 da
48 1+
49 I+
S50 RCL "E2"
51 RCLx "Ke6"
52 da
53 RCL "MATE"
54 RCL/ MATK"
S5 STO "MATV"
S6 END
1 21.579 -180 1 K
1 16.476 180 3 K
Page 39
(Example 10, Non-linear circult, will be covered after example 12.)
Reference Stored in
Element Designator Value Register
21 C1 0.03 uF RO1
22 R2 2.0 K RO2
23 R3 70 K RO3
24 C4 0.02 uF RO 4
25 CS 1.9 nF ROS
26 R6 140 K RO6
27 c7? 0.01 uF RO7
28 R8 12 K RO8
28 co 0.4 nF RO9
29 R10 2.7 K R10
210 R11 3.2 K R11
211 R12 10 K R12
E1l E1l 1 Not stored
Page 40
28 RCL/ 03 28 RCL "K7"
29 STO "K2" 29 +/-
30 Rdn 30 ra
31 RCL/ "Z24" 31 J+
32 STO "K3" 32 J+
33 RCL 03 33 RCL "Kk8"
34 RCL 06 34 +/-
35 RCL "25" 35 ra
36 XEQ "PpPZ23" 36 J+
37 ENTER 37 RCL "Ko"
38 RCL/ 03 38 +/-
39 STO "K4" 39 ra
40 Rdn 40 J+
41 RCL/ 06 41 J+
42 STO "K5" 42 RCL "K1io0"
43 RCL 06 43 +/-
44 RCL “27" 44 ra
45 RCL "2Z8" 45 S
46 XEQ "PZ3" 46 6
47 ENTER 47 STOIJ
48 RCL/ 06 48 RCL "K1i1"
49 STO "Ke" 49 +/-
S50 Rdn S0 ra
51 RCL/ "Z27" 51 J+
52 STO "K7" 52 J+
53 RCL "24" 53 RCL "A"
54 RCL "27" 54 +/-
55 RCL 10 55 ra
56 XEQ "pPzZ3" 56 J+
57 ENTER 57 RCL "A"
58 ENTER 58 ra
59 RCL/ "24" 59 INDEX "MATE"
60 STO "K8" 60 RCL "K1i*
61 Rdn 61 da
62 RCL/ "27" 62 RCL "MATE"
63 STO "K9o" 63 RCL/ "MATK"
64 Rdn 64 STO "MATV"
65 RCL/ 10 65 END
66 STO "Ki10"
67 RCL 11
68 RCL 12
69 XEQ "F2"
70 STO "Ki1"
71 XEQ "OPAMP"“
72 END
In "OPAMP", be sure that line 06 is: 06 100; and line 09 is: 09 1E4.
From page 17, the order is 6, and from page 16 we want to look at
node 6. Some outputs at node 6 are:
Page 41
Log F dBV Deg
2.00 -51.890 84
3.60 2.553 64
The area between log F = 2.0 and log F = 3.6 should show an
elliptical response with a very steep climb to the peak value
at log F = 3.6. The slope between log F = 2.7 and log F = 2.8 is:
Reference Stored in
Element Designator Value Register
21 R1 200 RO1
22 R2 1 K RO2
23 R3 0.1 RO3
24 R4 10 K RO4
25 RS 1.5 K ROS
26 R6 300 RO6
27 R7 5.1 K RO7
E1l E1l + 15 V "E1"
E2 E2 - 15V "E2"
E3 E3 + 5V "E3*
B1 Bi 100 “Bi"
B2 B2 100 "B2"
Page 42
Listing for "SKF" and " MAT " :
41 +/- 89 da
42 STOEL 90 RCL "E1"
43 1+ 91 RCLx “K1*
44 J_
92 da
45 RCL " Ksu 93 I+
46 +/- 94 RCL " Eall
47 STOEL 95 da
48 J+ 96 RCL " Ezn
Page 43
Listing for "MAT" Cont’:
97 RCLx "K3"
98 da
99 RCL "E2"
100 RCLx "K5"
101 da
102 0.6
103 da
104 0.6
105 da
106 RCL "MATE"
107 RCL/ "MATK"
108 STO "MATV"
109 END
Using STOIJ and STOEL function names for large, sSparse matrices
will result in a shorter listing for "MAT".
Execute "SETUP", DC, Order? = 8. The node voltages and currents are
given below in FIX 03 format:
Vi = 3.860 V6 = 3.171
vz = 3.260 Vé = 1.636
V3 = 3.258 Ibl = 1.229E-4 (7:1)
V4 = 3.771 Ib2 = 0.001 (8:1)
Reference Stored in
Element Designator Value Register
21 R1 3 K 01
22 R2 2 K 02
23 R3 2 K 03
24 R4 3 K 04
25 RS 10 K 05
26 R6 10 Meg 06 (Initial value)
27 R7 10 Meg 07 " "
Ei El +5 "E1"
E2 E2 -5 "E2"
Page 44
01 LBL "SKF* 01 LBL "MAT"
02 RCL 01 02 INDEX "MATK"
03 RCL 02 03 J+
04 RCL 06 04 J+
05 XEQ "pPz23" 05 RCL "K3"
06 ENTER 06 +/-
07 ENTER 07 ra
08 RCL/ 01 08 J+
09 STO "Ki" 09 J+
10 Rdn 10 RCL "Ke"
11 RCL/ 02 11 +/-
12 STO "K2" 12 ra
13 Rdn 13 RCL "K7"
14 RCL/ 06 14 +/-
15 STO "K3" 15 ra
16 RCL 04 16 RCL "K8"
17 RCL 03 17 +/-
18 RCL 07 18 ra
19 XEQ "pzZ3" 19 INDEX "MATE"
20 ENTER 20 RCL "E1"
21 ENTER 21 RCLx "Ki1*"
22 RCL/ 04 22 RCL "E3"
23 STO "K4" 23 RCLx "K2"
24 Rdn 24 +
25 RCL/ 03 25 da
26 STO "KS5" 26 RCL "E2"
27 Rdn 27 RCLx "K4"
28 RCL/ 07 28 RCL "E3"
29 STO "Ké" 29 RCLx "KS"
30 RCL 06 30 +
31 RCL 07 31 da
32 RCL 05 32 RCL "MATE"
33 XEQ "pzZ3" 33 RCL/ "MATK"
34 ENTER 34 STO "MATV"
35 RCL/ 06 35 END
36 STO "K7"
37 Rdn
38 RCL/ 07
39 STO "K8"
40 END
Page 45
01 LBL "“VSwP"
02 CF 01 (Diode ON/OFF flag)
03 10E6
04 STO 06 (Initial values)
05 STO 07
06 -16 (Sweep starts from -16 V)
07 STO "EL" (Left voltage)
08 LBL 00
09 STO "E3" (Varying input voltage)
10 XEQ " SKF"
11 XEQ "MAT"
12 1
13 STO "vn"
14 XEQ "GETV" (Get V1)
15 STO 11
16 3
17 STO *“vn"
18 XEQ "GETV" (Get V3)
19 STO 13
20 CLA (Display setup)
21 FIX 00
22 ARCL "E3"
23 I_ll "
(Append space)
24 FIX 03
25 ARCL 13
26 AVIEW (E3 V3)
27 RCL 11
28 XY
29
30 X<0? (V3 - V1 < 0 => D6 is OND
31 SF 01
32 10 (ON resistance)
33 10E6 (OFF resistance)
34 FS?C 01
35 XY
36 STO 06
37 2
38 STO "vn"
39 XEQ "GETV" (Get V2)
40 RCL- 13
41 X<07? (V2 - V3) < 0 => D7 is OFF
42 SF 01
43 10E6
44 10
45 FS?C 01
XY
47 STO 07
48 1
49 STO+ "“EL" (Increment input voltage)
S0 16
Page 46
51 RCL "EL"
52 X#AY? (Stop at +15 W
S3 GTO 00 (Repeat)
54 END
The output from -15 V to +15 V |s shown below: <(Ignore the first
out put at E3 = -16 V, since this step determines which diode
sho uld be turned on.)
E3 V3
-6.245
-5.710
-5.174
-4.639
-4.104
-3.569
-3.033
-2.498
-1.963
-1.428
-0.893
-0.357 Begin dead zone
0.178 i.e., both diodes OFF
-0.002
-0.001
0.000
0.001
0.002
0.004
0.005 End dead zone
0.893
1.428
1.963
2.498
3.033
3.569
4.104
4.639
5.174
5.710
6.245
Page 47
The "glitch" at E3 = -3 V, is due to the discrete 1 V steps in ES3.
Ideally, the program should be structured so that smaller steps
such as 0.1 V, are applied to the circuit and the output displayed
only at 1 V or 2 V intervals. The "glitch" would then disappear
since the program would more closely simulate the actual circuit
where E3 is continuous. However, this i1s not necessary Ssince
the actual circuit operation can be understood using 1 V
increments.
Page 48
APPENDIX
Let Be = 1/2¢
Then
Vi/Va =1 + 2.:B=
V2/Va = 1 + Z23Ba
Va/Va = 1 + Z2sBs
Va/Vs = 1 + 25Be
Finally V./Vs =
Page 49
For output Iimpedance Zo:
Or by chained fractions:
Z1 Z3
f——/;_\ A ~ /-
R R L R
Vf} VNV 2 ”VV%. - -3 a ‘JQV
\_V__/ —— ——
Page 50
Although "SKF" and "MAT" may now be lnappropriately named,
they are retained for the sake of consistency. The high
frequency transformer model can be analyzed faster with
the followlng routines than the matrix format used previously.
Reference Stored in
Element Designator New AC value Register
21 R1 10 01
22 Cc2 20 pF 02
23 R3 1.5 03
23 L4 1 uH 04
24 RS 20 K 05
24 L6 2 mH 06
25 R7 1.5 07
Z5 L8 1 uH 08
26 R9 1 K 09
26 C10 20 pF 10
Page 51
29 X
30 1/X
31 END
The program "ACAP" must be modified sllghtly since we are not lookling
for an element of the "MATV" vector. Delete or flag around
l1ine 20 XEQ "GETV", and lgnore the Vn? prompt. Some outputs
of the transformer model are given below:
Page 52
II. Bullding Branch Impedances with the HP-42S
MW
R3 Cu
4’-—’\/\/\a———* (—-———-0
p R L ( »—J@KAr——4(£§—flo
152
"
RCL 01 RCL 02 XEQ "PRC" RCL 03 RCL 04 XEQ "SRC" XEQ "pz2"
RCL 05 RCL 06 XEQ "SRL" XEQ "PZ2* RCL 07 RCL 08 XEQ "SRC"
+ STO "21"
(Insure that the stack does not fill up and an impedance lost
into the T-register.)
Vv
1
Ef%———figrw
Z),
Z
E3 ei 3
EO- NV &
2 Z2 V2
Page 53
Step 1.
+
V. = E:1K, Va(Kz + Ka) - EzKa
+
V= = EzKa + VK= 4+ (V. + Ez)K« or
Step 3.
Page 54
I1V. Designing with K Factors
Page 55
For an N = 3 branch, assume the design requirements are:
Ka =1 - 0.6 =0.4.
Page 56
References:
1. Switchina Waveforms,
Millman & Taub, 1965, p. 7.
2. OperationalAmplifiers.DesiqgnandApplications,
Graeme, Tobey, & Huelsman, 1971, p. 202.
3. IntroductiontoOperationalAmplifierTheory
and Applications, Wait, Huelsman, & Korn,
1975, p. 147.
Page 57