| 1 |
.PS |
| 2 |
# `PPA.m4 Push-pull amplifier' |
| 3 |
cct_init |
| 4 |
|
| 5 |
Vs: source(up_ elen_,"$V_S$") |
| 6 |
line right elen_/2 |
| 7 |
T1: transformer(down_ elen_,,,W,10) with .P1 at Here |
| 8 |
{ dot(at T1.TP+(-dimen_/8,dimen_/3)) } |
| 9 |
{ dot(at T1.TS+(dimen_/8,dimen_*2/3))} |
| 10 |
{ dot(at T1.TS+(dimen_/8,-dimen_/8)) } |
| 11 |
line from T1.P2 to Vs.start |
| 12 |
|
| 13 |
line up_ dimen_*3/4 from T1.S1 then right_ dimen_*3/4 |
| 14 |
up_ |
| 15 |
Q1: bi_tr(,L,,E) with .B at Here |
| 16 |
line down_ dimen_*3/4 from T1.S2 then right_ dimen_*3/4 |
| 17 |
down_ |
| 18 |
Q2: bi_tr(,R,,E) with .B at Here |
| 19 |
line from Q1.E to Q2.E |
| 20 |
R2: resistor(left_ dimen_ from last line); llabel(,R_2) |
| 21 |
dot; {dot(at R2.start) } |
| 22 |
line to T1.TS |
| 23 |
line down_ dimen_/2 right_ dimen_/2 from R2.start |
| 24 |
ground |
| 25 |
|
| 26 |
line right_ dimen_/6 from R2.start |
| 27 |
Vcc: battery(right_ elen_,2); rlabel(,V_{cc}) |
| 28 |
dot |
| 29 |
line up dimen_*2/3 then to (R2.start.x,Here.y+dimen_*2/3) |
| 30 |
resistor(to (R2.end,Here)); rlabel(,R_1); line to R2.end |
| 31 |
line right_ dimen_/2 from Vcc.end |
| 32 |
T2: transformer(up_ elen_,,,W,10) with .TS at Here |
| 33 |
line from T2.S2 to (T2.S2,Q1.C) then to Q1.C |
| 34 |
line from T2.S1 to (T2.S1,Q2.C) then to Q2.C |
| 35 |
|
| 36 |
line right elen_/2 from T2.P2 |
| 37 |
resistor(down_ to (Here,T2.P1)); llabel(,R_L) |
| 38 |
line to T2.P1 |
| 39 |
|
| 40 |
.PE |