summaryrefslogtreecommitdiff
path: root/graphics/circuit_macros/examples/PushPull.m4
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/circuit_macros/examples/PushPull.m4')
-rw-r--r--graphics/circuit_macros/examples/PushPull.m440
1 files changed, 20 insertions, 20 deletions
diff --git a/graphics/circuit_macros/examples/PushPull.m4 b/graphics/circuit_macros/examples/PushPull.m4
index f071103307..24669faf29 100644
--- a/graphics/circuit_macros/examples/PushPull.m4
+++ b/graphics/circuit_macros/examples/PushPull.m4
@@ -30,38 +30,38 @@ define(`Xform21',
{ "3N200" at last [].n above }
line from T1.L1.start to (T1.L1.start,Q2.G0) then to Q2.G0
- resistor(right_ dimen_ from T1.T); llabel(,\unit{330}{\ohm}); Tx:dot
+ resistor(right_ dimen_ from T1.T); llabel(,\SI{330}{\Omega}); Tx:dot
{ line right_ del*3/2; corner; ground(,,F) }
dot(at (Tx,Q1.G0))
- capacitor(down_ to Tx,C); llabel(\unit{5.6}{\pico\farad})
+ capacitor(down_ to Tx,C); llabel(\SI{5.6}{pF})
dot(at (Tx,Q2.G0))
- capacitor(up_ to Tx,C); rlabel(\unit{5.6}{\pico\farad})
+ capacitor(up_ to Tx,C); rlabel(\SI{5.6}{pF})
for_(1,2,1,
`dot(at Q`'m4x.S+(dimen_+del/2,0))
{ resistor(down_ dimen_); G1:Here; { "$120$" at last [].nw rjust }
- rlabel(,\ohm); dot; ground(,,F) }
+ rlabel(,\Omega\;); dot; ground(,,F) }
line from Q`'m4x.S to (Here.x+dimen_*3/4,Q`'m4x.S.y); corner
- capacitor(down_ to (Here,G1),C); rlabel(\raisebox{2pt}{1000},{\pico\farad});
+ capacitor(down_ to (Here,G1),C); rlabel(\raisebox{2pt}{\num{1000}},\si{pF});
corner
line left_ 2*dimen_*3/4; corner
TG: dot(at (Here,Q`'m4x.S))
- capacitor(down_ to (Here,G1),C); rlabel(,,\unit{0.01}{\micro\farad})
+ capacitor(down_ to (Here,G1),C); rlabel(,,\SI{0.01}{\micro F})
')
R: dot(at (Here.x+dimen_*2,(Q1.D.y+Q2.D.y)/2))
- dot(at (R,Q1.D)); capacitor(down_ to R,C); llabel(\unit{20}{\pico\farad})
- dot(at (R,Q2.D)); capacitor(up_ to R,C); llabel(\unit{20}{\pico\farad})
+ dot(at (R,Q1.D)); capacitor(down_ to R,C); llabel(\SI{20}{pF})
+ dot(at (R,Q2.D)); capacitor(up_ to R,C); llabel(\SI{20}{pF})
line right_ del*3/2 from R then down_ R.y-(Q1.S.y-dimen_); ground(,,F)
Vc: dot(at (R+(dimen_,0),Q1.ne),,1); { "$+V_{\hbox{c}}$" rjust at Vc.w }
dot(at (Vc,R))
- inductor(right_ dimen_,); llabel(,\unit{1}{\micro\henry})
+ inductor(right_ dimen_,); llabel(,\SI{1}{\micro\henry})
down_
T2: Xform21 with .T at Here
arrow from T2.L2 to T2.L3 chop -dimen_/4
line right_ del from T2.L3.start; corner
- capacitor(down_ dimen_,C); llabel(\unit{1000}{\pico\farad}); ground(,T,F)
+ capacitor(down_ dimen_,C); llabel(\SI{1000}{pF}); ground(,T,F)
line right_ 2*del from T2.L3.end
Out: dot(,,1); { "IF" wid 12bp__ at Out.n above }; move right_ 0.3
@@ -70,38 +70,38 @@ define(`Xform21',
line from Vc to (Vc,Q2.S) chop dotrad_/2 chop 0; dot
{ line right_ del*2; corner
- capacitor(down_ dimen_,C); llabel(,,\unit{1000}{\pico\farad}); ground(,,F) }
- reversed(`inductor',down_ dimen_,); rlabel(,\unit{1}{\micro\henry})
+ capacitor(down_ dimen_,C); llabel(,,\SI{1000}{pF}); ground(,,F) }
+ reversed(`inductor',down_ dimen_,); rlabel(,\SI{1}{\micro\henry})
line down_ dimen_/2
TL: dot(at (Q1.G1.x-del/2,Here.y))
up_
Q3: bi_tr(,R,,E) with .C at (TG.x,TL.y-dimen_*2/3)
- resistor(right_ from TL to (Q3.C,TL)); llabel(,\unit{82}{\kilo\ohm})
+ resistor(right_ from TL to (Q3.C,TL)); llabel(,\SI{82}{\kilo\Omega})
line to (Vc,Here); dot
- resistor(down_ to (Here,Q3.B)); rlabel(,\unit{8.2}{\kilo\ohm}); dot
+ resistor(down_ to (Here,Q3.B)); rlabel(,\SI{8.2}{\kilo\Omega}); dot
dot(at Q3.B+(del,0))
line up_ (TL.y+Q3.C.y)/2 - Here.y+del/4 then left_ Here.x-TL.x
- reversed(`capacitor',left_ dimen_,C); llabel(,\unit{1500}{\pico\farad})
+ reversed(`capacitor',left_ dimen_,C); llabel(,\SI{1500}{pF})
Osc: dot(,,1); { "Osc" above at Osc.n }
line from Q3.B to (Vc,Q3.B)
line from Q3.C to (Q3.C,TL); dot
dot(at Q3.C+(0,del/2))
- capacitor(left_ to (TL,Here),C); llabel(,\unit{1500}{\pico\farad}); dot
+ capacitor(left_ to (TL,Here),C); llabel(,\SI{1500}{pF}); dot
line down_ del/2 from Q3.E; dot
- { resistor(down_ dimen_*3/4); rlabel(,\unit{820}{\ohm})
+ { resistor(down_ dimen_*3/4); rlabel(,\SI{820}{\Omega})
G: Here; ground(,T,F) }
line right_ dimen_; corner
- capacitor(down_ to (Here,G),C); llabel(,\unit{1000}{\pico\farad})
+ capacitor(down_ to (Here,G),C); llabel(,\SI{1000}{pF})
ground(,T,F)
ground(at (TL,G),T,F)
- resistor(up_ dimen_); llabel(,\unit{12}{\kilo\ohm})
+ resistor(up_ dimen_); llabel(,\SI{12}{\kilo\Omega})
line to (Here,Q1.G1) then to Q1.G1
line from Q2.G1 to (TL,Q2.G1); dot
ground(at (Vc,G),T,F)
- resistor(up_ dimen_); rlabel(,\unit{5.6}{\kilo\ohm}); line to (Here,Q3.B)
+ resistor(up_ dimen_); rlabel(,\SI{5.6}{\kilo\Omega}); line to (Here,Q3.B)
iflatex(`ifpsfrag(,`latexcommand(})')')
.PE