| 1 |
.PS |
| 2 |
# ex18.m4 |
| 3 |
cct_init |
| 4 |
|
| 5 |
[ |
| 6 |
"$v_i$" rjust; dot |
| 7 |
resistor(right_ dimen_) ; llabel(,R_i) |
| 8 |
T: dot |
| 9 |
line right_ linewid/4 |
| 10 |
A: opamp with .In1 at Here |
| 11 |
|
| 12 |
line from A.In2 to (T,A.In2) |
| 13 |
resistor(down_ dimen_) ; rlabel(,R_g) |
| 14 |
ground(,T) |
| 15 |
|
| 16 |
line right_ dimen_ from A.Out |
| 17 |
diode(up_ dimen_); dot |
| 18 |
{line right_ linewid/2; dot; "$v_o$" ljust } |
| 19 |
resistor(left_ to (A.Out,Here)) ; rlabel(,R_o); dot |
| 20 |
{ diode(down_ to A.Out); dot } |
| 21 |
line to (T,Here) then to T |
| 22 |
] |
| 23 |
|
| 24 |
[ |
| 25 |
define(`dimen_',dimen_*1.25) |
| 26 |
|
| 27 |
B: battery(up_ dimen_*2/3); rlabel(,V^o) |
| 28 |
move down dimen_/4 |
| 29 |
resistor(up_ dimen_); rlabel(,R,) |
| 30 |
inductor(right_ elen_); b_current(i\mathstrut); rlabel(,L) |
| 31 |
{ capacitor(down_ to (Here,B.start)); rlabel(,C); llabel(+,v,-) } |
| 32 |
line right_ dimen_ |
| 33 |
diode(down_ to (Here,B.start),T); b_current(h(v)) |
| 34 |
line to B.start |
| 35 |
] with .nw at last [].ne+(20bp__,0) |
| 36 |
|
| 37 |
.PE |