Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/examples/dpv/Reg723DPV.m4

raw
1 .PS
2 # Reg723.m4
3 # see Horowitz and Hill p 600
4 cct_init
5 svg_font(sans-serif,10bp__)
6
7 R1: resistor(down_ dimen_*3/4)
8 rlabel(,"R`'svg_sub(1)" rjust "1.15k" rjust)
9 R2: potentiometer(down_ dimen_) with .Start at Here
10 rlabel(,"R`'svg_sub(2)" rjust "2.0k" rjust)
11 "V`'svg_sub(adj)" at R2.T1 below
12 R3: resistor(down_ dimen_ from R2.End)
13 rlabel(,"R`'svg_sub(3)" rjust "4.02k" wid 4*textht rjust)
14 ground
15
16 line right_ dimen_*4/3 from R2.T1
17 A: opamp(,,,,R) with .In1 at Here
18
19 line right_ dimen_*3/4 from A.Out
20 B1: dot
21 Q2: bi_tr(up_ dimen_) with .B at Here
22 line right_ dimen_ from Q2.E
23 Q1: bi_tr(up_ dimen_*3/2) with .B at Here; heatsink(at Q1.e+(dimen_/2,0),,D)
24 "heat" ljust at last [].e+(dimen_/5,0) "sink" ljust
25 dot(at Q1.E)
26 resistor(down_ dimen_*3/2)
27 llabel(,"0.25`'svg_Omega" ljust "3W" ljust)
28 P5: dot
29
30 Q3: bi_tr(up_ dimen_,R) with .B at (Q2.C.x,Q1.E.y); dot(at Q3.C)
31 { line to Q2.B }
32 resistor(left_ dimen_ from Q1.E); llabel(,"100")
33 line to Q3.B
34 line from Q3.E to (Q3.E,P5) then to P5+(dimen_,0)
35 Out: "+5V" ljust "2A" ljust
36 dot(at P5+(dimen_/2,0))
37 capacitor(down_ dimen_,C+); ground(,T)
38 rlabel(,"10`'svg_micro`'F" rjust "15V" rjust)
39
40 Vref: box wid boxwid/2 ht boxht/2 with .w at (A.E.x,A.n.y+dimen_/3) \
41 "V`'svg_sub(ref)"
42 Bx: box thick 0.4 wid Q2.C.x-A.w.x+dimen_/2 rad 0.1 \
43 ht Vref.n.y-Q3.E.y+dimen_/3 with .sw at (A.In1.x-dimen_/7,Q3.E.y) dashed
44 "723" at Bx.n above
45
46 line from Vref.w to (Bx.w,Vref.w)
47 { "V`'svg_sub(ref)" above rjust }
48 continue to ((R1.x+Here.x)/2,Here.y); continue to (Here,R1.start) \
49 then to R1.start
50 "+7.15V" above ljust
51
52 P6: dot(at P5-(dimen_*2/3,0))
53 line from Q3.C left_ dimen_/2 then down_ Q3.C.y-Bx.s.y
54 Cp: capacitor(down_ dimen_*3/2); rlabel(,"100pF"); dot
55 line from A.In2 left_ dimen_/2 then down_ A.In2.y-Cp.end.y then to Cp.end
56 R4: resistor(right_ to (P6,Here)); rlabel(,"R`'svg_sub(4) 1.5k"); line to P6
57
58 line from A.SE to (A.SE,Bx.s); ground
59 "COMP" at (Cp,Bx.s) below rjust
60 "CS" at (Q3.E,Bx.s) below ljust
61 "CL" at (Bx.e,Q1.E) below ljust
62 "NI" at (Bx.w,A.In1) rjust above
63 "V`'svg_sub(out)" at (Bx.e,Q1.B) above ljust
64 "INV" at (Bx.w,A.In2) rjust above
65
66 line from A.NE to (A.NE.x,Bx.n.y+dimen_/2)
67 { "V`'svg_sub(+)" at (Here,Bx.n) above rjust }
68 continue to (Out,Here)
69 {"+V`'svg_sub(in) (unreg)" wid 8*textht "+9.5V (min)" below}
70 {dot(at (Q2.C,Here)); line to Q2.C
71 "V`'svg_sub(C)" at (Here,Bx.n) above rjust }
72 dot(at (Q1.C,Here)); line to Q1.C
73 "Q`'svg_sub(1)" ljust "TIP41" ljust
74
75 command "</g>"
76 .PE