| 1 |
.PS |
| 2 |
# `PushPullDPV.m4' |
| 3 |
cct_init(svg_font(sans-serif,9bp__,1bp__)) |
| 4 |
|
| 5 |
linewid = 1.2*linewid |
| 6 |
|
| 7 |
# Transformer as for Mixer.m4 |
| 8 |
define(`Xform21', |
| 9 |
`[ L1: inductor(to rvec_(dimen_*0.5,0),,,M) |
| 10 |
Core1E: M4Core1.end; Core2E: M4Core2.end |
| 11 |
D: (0.5 between M4Core1 and M4Core2) - L1 |
| 12 |
T: line to rvec_(dimen_/3,0); { dot(at T.c) } |
| 13 |
L2: inductor(to rvec_(L1.len,0),,,M) |
| 14 |
line from M4Core1.start to Core1E |
| 15 |
line from M4Core2.start to Core2E |
| 16 |
L3: inductor(to rvec_(-L1.len,0) with .c at T+(D.x*2,D.y*2),) ]') |
| 17 |
|
| 18 |
del = dimen_/3 |
| 19 |
up_ |
| 20 |
T1: Xform21 |
| 21 |
line left_ del from T1.L3.end; corner; ground(,,F) |
| 22 |
line left_ 2*del from T1.L3.start |
| 23 |
In: dot(,,1); { "RF" wid 12bp__ at In.n above } |
| 24 |
up_ |
| 25 |
Q1: mosfet(,,dBSDFQM1,E) with .G0 at T1.T+(2*dimen_+del/2,dimen_) |
| 26 |
{ "3N200" at last [].n above } |
| 27 |
line from T1.L2.end to (T1.L2.end,Q1.G0) then to Q1.G0 |
| 28 |
Q2: mosfet(,,dBSDFQM1,E) with .G0 at (Q1.G0.x,T1.T.y-dimen_) |
| 29 |
{ "3N200" at last [].n above } |
| 30 |
line from T1.L1.start to (T1.L1.start,Q2.G0) then to Q2.G0 |
| 31 |
|
| 32 |
resistor(right_ dimen_ from T1.T); llabel(,330`'svg_ohm); Tx:dot |
| 33 |
{ line right_ del*3/2; corner; ground(,,F) } |
| 34 |
dot(at (Tx,Q1.G0)) |
| 35 |
capacitor(down_ to Tx,C); llabel(5.6pF) |
| 36 |
dot(at (Tx,Q2.G0)) |
| 37 |
capacitor(up_ to Tx,C); rlabel(5.6pF) |
| 38 |
|
| 39 |
for_(1,2,1, |
| 40 |
`dot(at Q`'m4x.S+(dimen_+del/2,0)) |
| 41 |
{ resistor(down_ dimen_); G1:Here; |
| 42 |
{ "120" at last [].w rjust "svg_ohm" rjust } |
| 43 |
dot; ground(,,F) } |
| 44 |
line from Q`'m4x.S to (Here.x+dimen_*3/4,Q`'m4x.S.y); corner |
| 45 |
capacitor(down_ to (Here,G1),C) |
| 46 |
{ "1000" at last [].w rjust "pF" rjust } |
| 47 |
corner |
| 48 |
line left_ 2*dimen_*3/4; corner |
| 49 |
TG: dot(at (Here,Q`'m4x.S)) |
| 50 |
capacitor(down_ to (Here,G1),C); rlabel(,0.01 svg_micro(F)) |
| 51 |
') |
| 52 |
|
| 53 |
R: dot(at (Here.x+dimen_*2,(Q1.D.y+Q2.D.y)/2)) |
| 54 |
dot(at (R,Q1.D)); capacitor(down_ to R,C); llabel(20pF) |
| 55 |
dot(at (R,Q2.D)); capacitor(up_ to R,C); llabel(20pF) |
| 56 |
line right_ del*3/2 from R then down_ R.y-(Q1.S.y-dimen_); ground(,,F) |
| 57 |
|
| 58 |
Vc: dot(at (R+(dimen_,0),Q1.ne),,1); { "+Vc" rjust at Vc.w } |
| 59 |
dot(at (Vc,R)) |
| 60 |
inductor(right_ dimen_,); llabel(,1 svg_micro(H)) |
| 61 |
down_ |
| 62 |
T2: Xform21 with .T at Here |
| 63 |
arrow from T2.L2 to T2.L3 chop -dimen_/4 |
| 64 |
line right_ del from T2.L3.start; corner |
| 65 |
capacitor(down_ dimen_,C); llabel(1000 pF); ground(,T,F) |
| 66 |
line right_ 2*del from T2.L3.end |
| 67 |
Out: dot(,,1); { "IF" wid 12bp__ at Out.n above }; move right_ 0.3 |
| 68 |
|
| 69 |
line from T2.L1.start to (T2.L1,Q1.D) then to Q1.D |
| 70 |
line from T2.L2.end to (T2.L2.end,Q2.D) then to Q2.D |
| 71 |
|
| 72 |
line from Vc to (Vc,Q2.S) chop dotrad_/2 chop 0; dot |
| 73 |
{ line right_ del*2; corner |
| 74 |
capacitor(down_ dimen_,C); llabel(,1000 pF); ground(,,F) } |
| 75 |
reversed(`inductor',down_ dimen_,); rlabel(,1 svg_micro(H)) |
| 76 |
line down_ dimen_/2 |
| 77 |
|
| 78 |
TL: dot(at (Q1.G1.x-del/2,Here.y)) |
| 79 |
up_ |
| 80 |
Q3: bi_tr(,R,,E) with .C at (TG.x,TL.y-dimen_*2/3) |
| 81 |
resistor(right_ from TL to (Q3.C,TL)); llabel(,82 k`'svg_ohm) |
| 82 |
line to (Vc,Here); dot |
| 83 |
resistor(down_ to (Here,Q3.B)); rlabel(,8.2 k`'svg_ohm); dot |
| 84 |
dot(at Q3.B+(del,0)) |
| 85 |
line up_ (TL.y+Q3.C.y)/2 - Here.y+del/4 then left_ Here.x-TL.x |
| 86 |
reversed(`capacitor',left_ dimen_,C); llabel(,1500 pF) |
| 87 |
Osc: dot(,,1); { "Osc" above at Osc.n } |
| 88 |
|
| 89 |
line from Q3.B to (Vc,Q3.B) |
| 90 |
line from Q3.C to (Q3.C,TL); dot |
| 91 |
dot(at Q3.C+(0,del/2)) |
| 92 |
capacitor(left_ to (TL,Here),C); llabel(,1500 pF); dot |
| 93 |
line down_ del/2 from Q3.E; dot |
| 94 |
{ resistor(down_ dimen_*3/4); rlabel(,820`'svg_ohm) |
| 95 |
G: Here; ground(,T,F) } |
| 96 |
line right_ dimen_; corner |
| 97 |
capacitor(down_ to (Here,G),C); llabel(,1000 pF) |
| 98 |
ground(,T,F) |
| 99 |
ground(at (TL,G),T,F) |
| 100 |
resistor(up_ dimen_); llabel(,12 k`'svg_ohm) |
| 101 |
line to (Here,Q1.G1) then to Q1.G1 |
| 102 |
line from Q2.G1 to (TL,Q2.G1); dot |
| 103 |
|
| 104 |
ground(at (Vc,G),T,F) |
| 105 |
resistor(up_ dimen_); rlabel(,5.6 k`'svg_ohm); line to (Here,Q3.B) |
| 106 |
|
| 107 |
command "</g>" # end font |
| 108 |
.PE |