Debian Codegraph @

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

raw
1 .PS
2 # SchottkyDPV.m4
3 # 4-input positive NAND: the Schottky option for transistors (TI TTL data book)
4 cct_init(svg_font(sans-serif,11bp__,1bp__))
5
6 tic = dimen_/4
7 rlen = dimen_*3/4
8
9 E1: dot; line up_ tic
10 Q1: bi_trans(,,dEBCBUS) with .E at Here; line left tic from Q1.B; B1: Here
11 resistor(up_ rlen from Q1.C); llabel(,3 k`'svg_ohm); B2: dot; line right_ tic
12 Q2: bi_trans(up_ dimen_,,dEBCBUS) with .B at Here
13 line from Q2.E to (Q2.E,E1); dot
14 Gnd: "GND" ljust at Here+(dimen_/2,0)
15 dot(at Q2.C)
16 { line to (Gnd,Here); "Y" wid 0.3 ljust }
17 line to (Q1.C,Here); dot
18 resistor(up_ rlen); llabel(,4 k`'svg_ohm); B4: dot; line right_ tic; up_
19 Q4: bi_tr with .B at Here
20 line from Q4.E to Q2.C
21 line up_ tic from B4
22 Q5: bi_trans(,,dEBCBUS) with .E at Here; line left_ tic from Q5.B; B5: dot
23 line from Q5.C to (Q4.C,Q5.C); dot
24 { line to Q4.C }
25 resistor(up_ rlen); llabel(,120 svg_ohm); dot
26 Vcc: "Vcc" ljust at (Gnd,Here)
27 dot(at (B5,Vcc))
28 resistor(to (Here,Q5.C)); llabel(,8 k`'svg_ohm)
29 diode(from (B4,Q2.C) to (B5,Q2.C),Z)
30 line to (Here,Q5.C)
31 diode(from B4 to (Here,B4),Z); dot
32 line left_ tic; up_
33 Q3: bi_trans(,,dEBCBUS) with .C at Here; line left_ tic from Q3.B; B3: Here
34 line from Q3.E to (Q3.E,B2); dot
35 dot(at (B1,Here)); resistor(down_ to (Here,Q1.C)); rlabel(,1.5 k`'svg_ohm)
36 line to B1
37 resistor(down_ from B3 to (B3,B2)); rlabel(,12 k`'svg_ohm); line to B2
38 line from Vcc to (B3,Vcc); resistor(down_ to (Here,Q5.C))
39 rlabel(,20 k`'svg_ohm)
40 line to B3
41 ground(at (Q3.C,Gnd),,F); dot
42
43 for_(0,3,1,
44 `dot(at (B3+(0,tic*m4x)))
45 line left_ tic*m4x; diode(left_ dimen_,Z); dot
46 {line down_ dimen_; reversed(`diode',down_ dimen_,Z); line to (Here,Gnd) \
47 ifelse(m4x,3,`then to Gnd',`; dot') }
48 line left_ tic*eval(4-m4x)
49 "ifelse(m4x,3,D,m4x,2,C,m4x,1,B,m4x,0,A)" wid 0.15 rjust
50 ')
51
52 command "</g>" # end font
53 .PE
54