| 1 |
.PS |
| 2 |
# `bistable.m4' |
| 3 |
cct_init # Default initialization |
| 4 |
|
| 5 |
up_ |
| 6 |
rgbdraw(1,0,0, |
| 7 |
Q1: bi_tr(,R) # Q1 upward with base to the right |
| 8 |
llabel(,Q_1) ) # Label to left of last [] |
| 9 |
rgbdraw(0,0,1, |
| 10 |
Q2: bi_tr with .C at Q1.C+(elen_*7/4,0) # Q2 with base to left |
| 11 |
rlabel(,Q_2) ) |
| 12 |
|
| 13 |
ground(at Q1.E) |
| 14 |
ground(at Q2.E) |
| 15 |
|
| 16 |
line right_ dimen_/3 from Q1.B # Extend the base conductors |
| 17 |
B1: Here |
| 18 |
line left_ dimen_/3 from Q2.B |
| 19 |
B2: Here |
| 20 |
|
| 21 |
resistor(up_ elen_*0.75 from Q1.C); llabel(,"$R_L$" wid 0.16) # Load resistors |
| 22 |
line to (Q2.C,Here) "$V_{\hbox{cc}}$" below |
| 23 |
resistor(down_ to Q2.C); llabel(,R_L) |
| 24 |
|
| 25 |
move to Q1.C+(0,dimen_/5) |
| 26 |
{ resistor(right_ to (B1,Here)); llabel(,R_1) |
| 27 |
X: line to B2 } # Label the line to be jumped |
| 28 |
resistor(from (Q2.C,Here) left_ to (B2,Here)); rlabel(,R_1) |
| 29 |
crossover(to B1,R,X) |
| 30 |
|
| 31 |
resistor(down_ elen_*0.75); rlabel(,R_2) # Bias resistors |
| 32 |
{"$-V_{\hbox{cc}}$" rjust} |
| 33 |
line to (B2,Here) |
| 34 |
resistor(up_ to B2); rlabel(,R_2) |
| 35 |
.PE |