| 1 |
.PS |
| 2 |
# LT3757DPV.m4 |
| 3 |
# https://html.alldatasheet.com/html-pdf/349964/LINER/LT3757/1234/8/LT3757.html |
| 4 |
# https://en.wikipedia.org/wiki/Single-ended_primary-inductor_converter |
| 5 |
# https://www.analog.com/media/en/technical-documentation/data-sheets/lt3757-3757a.pdf |
| 6 |
# |
| 7 |
# This diagram does not contain much repetitive structure so the code is long |
| 8 |
# but straightforward. |
| 9 |
cct_init |
| 10 |
include(icsDPV.m4) |
| 11 |
linethick = 1.2 |
| 12 |
|
| 13 |
ifelse(1,1,` |
| 14 |
# This draws the symbolic chip with external circuitry |
| 15 |
svg_font(sans-serif,9bp__) |
| 16 |
|
| 17 |
Q1: LT3757 |
| 18 |
|
| 19 |
resistor(down_ dimen_*3/4 from Q1.VC); llabel(,22 k) |
| 20 |
capacitor(down_ dimen_/2); llabel(6.8 nF); GNDL: dot |
| 21 |
line from Q1.SS left_ dimen_/2; continue down_ to (Here,Q1.VC) |
| 22 |
capacitor(to (Here,GNDL)); llabel(0.1 svg_micro`'F); dot |
| 23 |
up_; M1: mosfet(,,TEDSQuB) with .G at Q1.GATE |
| 24 |
dot(at (M1.S,Q1.SENSE)); {line to Q1.SENSE}; line from M1.S to (M1.S,Q1.VC) |
| 25 |
resistor(down_ to (Here,GNDL)); llabel(,0.01 svg_ohm); dot |
| 26 |
line from Q1.GND to (Q1.GND,GNDL); dot |
| 27 |
capacitor(down_ from Q1.INTVCC to (Q1.INTVCC,GNDL)) |
| 28 |
llabel(,"4.7 svg_micro(F)" ljust "10 V" ljust "X5R" ljust); dot |
| 29 |
ground |
| 30 |
line up_ dimen_/3 from M1.D; DD: dot |
| 31 |
diode(right_ dimen_,Z); DE: dot |
| 32 |
{ resistor(down_ to (Here,Q1.FBX)); llabel(,"226 k") |
| 33 |
line to(Here,Q1.VC); resistor(to (Here,GNDL)); llabel(,"16.2 k"); dot } |
| 34 |
dot(at Here+(dimen_,0)) |
| 35 |
{ capacitor(down_ to (Here,GNDL),C+); |
| 36 |
llabel(,"47 svg_micro(F)" ljust "35 V" ljust "x2"); dot } |
| 37 |
dot(at Here+(dimen_,0)) |
| 38 |
{ capacitor(down_ to (Here,GNDL)); |
| 39 |
llabel(,"10 svg_micro(F)" ljust "25 V" ljust "X5R"); GG: dot; ground } |
| 40 |
line from DE to Here+(dimen_/2,0); {line invis right dimen_} |
| 41 |
"V`'svg_sub(OUT)" ljust at Here+(2bp__,5bp__) "24 V" ljust "2 A" ljust |
| 42 |
line from Q1.RT left_ dimen_; continue down_ to (Here,Q1.VC) |
| 43 |
resistor(to (Here,GNDL)); rlabel(,"41.2 k" rjust "300 kHz" rjust) |
| 44 |
line to GG |
| 45 |
line from Q1.VIN up_ dimen_/3; dot |
| 46 |
dot(at (Q1.w,Here)-(dimen_,0)) |
| 47 |
{resistor(down_ to (Here,Q1.SHU)); llabel(,"200 k"); dot; {line to Q1.SHU} |
| 48 |
resistor(down_ to (Here,Q1.SYNC)); llabel(,"43.2 k"); dot |
| 49 |
{line to Q1.SYNC}; ground } |
| 50 |
dot(at Here-(dimen_,0)) |
| 51 |
{capacitor(down_ to (Here,Q1.SHU)) |
| 52 |
llabel(,"10 svg_micro(F)" ljust "25 V" ljust "X5R" ljust); ground } |
| 53 |
VIN: Here+(-dimen_/2,0); {line invis left_ 70bp__} |
| 54 |
{"V`'svg_sub(IN)" at VIN rjust "8 V TO 16 V" rjust} |
| 55 |
line from VIN to (DD,VIN); inductor(down_ to DD); llabel(,"10 svg_micro(H)") |
| 56 |
|
| 57 |
"High efficiency" ljust below at (DE,Q1.n) "boost converter" ljust |
| 58 |
|
| 59 |
command "</g>" # end font |
| 60 |
',` |
| 61 |
# The operational diagram of the chip interior with external circuitry |
| 62 |
maxpswid = 10 |
| 63 |
|
| 64 |
textht = 5bp__ |
| 65 |
lw = dimen_/4 |
| 66 |
|
| 67 |
define(`Pin',`P`'in`$1': box wid dimen_/3 ht dimen_/3 "`$1'" fill_(1)') |
| 68 |
|
| 69 |
boardw = 13.5 |
| 70 |
boardh = 14 |
| 71 |
Board: box thick 2 wid boardw*dimen_ ht boardh*dimen_ |
| 72 |
define(`coord',`Board.sw+(`$1',`$2')*dimen_') |
| 73 |
A11: opamp at coord(2.5,boardh-5) |
| 74 |
LH_symbol(,wdth=0.5) at A11.C; "A11" at A11.NE above ljust |
| 75 |
A12: opamp at A11+(0,-A11.ht*5/4); LH_symbol(,wdth=0.5) at A12.C |
| 76 |
"A12" at A12.NE above ljust |
| 77 |
D1112: dot(at (A11.In2.x-lw,(A11.y+A12.y)/2)) |
| 78 |
line from A11.In2 to (D1112,A11.In2) then to (D1112,A12.In1) then to A12.In1 |
| 79 |
G6: OR_gate with .w at (A11.Out.x+3*L_unit,(A11.y+A12.y)/2); {"G6" at G6} |
| 80 |
line from G6.In1 left_ lw*5/4 then up A11.Out.y-G6.In1.y then to A11.Out |
| 81 |
line from G6.In2 left_ lw*5/4 then up A12.Out.y-G6.In2.y then to A12.Out |
| 82 |
line left_ lw from A11.In1; { "1.72 V" rjust } |
| 83 |
line left_ lw from A12.In2; { "-0.88 V" rjust } |
| 84 |
|
| 85 |
up_; Q3: bi_tr(,R) with .C at G6.Out+(3*lw,A11.ht*2) |
| 86 |
"Q3" at Q3.ne above rjust |
| 87 |
ground(at Q3.E); line up_ lw then left_ lw from Q3.C; Q3C: dot |
| 88 |
S2: source(down_ elen_ with .end at Q3C,G); "2.5 V" at S2.n above |
| 89 |
rlabel(,"S2"); larrow; "10 svg_micro(A)" at last arrow ljust |
| 90 |
left_; G4: OR_gate(3) with .Out at Q3.B+(lw,0); line from G4.Out to Q3.B |
| 91 |
G3: NAND_gate with .Out at G4.In2+(lw*3/2,0); line from G3.Out to G4.In2 |
| 92 |
line from G3.In2 right_ lw then up_ A11.Out.y-G6.In1.y # then right_ lw |
| 93 |
left_; A9: opamp with .Out at Here |
| 94 |
left_; A8: opamp at A9-(0,A9.ht*5/4); LH_symbol(,wdth=0.5) at A8.C |
| 95 |
"A8" at A8.SE above rjust |
| 96 |
line from G3.In1 to (A8.Out,G3.In1) then to A8.Out |
| 97 |
D89: dot(at (A9.In2.x+lw,(A9.y+A8.y)/2)) |
| 98 |
line from A9.In1 to (D89,A9.In1) then to (D89,A8.In2) then to A8.In2 |
| 99 |
line from A9.In2 right_ lw; "17.5 V" ljust above at A9.In2 |
| 100 |
line from A8.In1 right_ lw;"2.7 V UP" ljust "2.6 V DOWN" ljust |
| 101 |
|
| 102 |
line from G4.In1 right_ lw then down_ 3/2*G3.ht then right_ lw |
| 103 |
box wid boxwid*2/3 ht boxht*2/3 "TSD" "165 svg_deg`'C" |
| 104 |
|
| 105 |
D8: dot(at D89+(boxwid*1.75,0)) |
| 106 |
down_; INTVcc: mosfet(,R,TEDSQdB) with .D at D8+(0,lw) |
| 107 |
B72: box ht boxht/3 "7.2 V LDO" with .e at INTVcc.G |
| 108 |
dot(at (B72,D89)); line to B72.s; line from D8 to INTVcc.D |
| 109 |
Pin(8) at (Board.e,D8); "INTV`'svg_sub(CC)" at Pin8.n+(0,2bp__) above rjust |
| 110 |
line from D89 to Pin8.w |
| 111 |
line from B72.n up_ lw/2 |
| 112 |
CL: box ht boxht*2/3 "CURRENT" "LIMIT" with .s at Here |
| 113 |
line from CL.e to (INTVcc.S,CL); dot |
| 114 |
|
| 115 |
line from G4.In3 right_ lw then up_ CL.n.y-G4.In3.y-boxht/2+lw |
| 116 |
UVLO: box "INTERNAL" "REGULATOR" "AND UVLO" with .s at Here |
| 117 |
"UVLO" at UVLO.sw below ljust |
| 118 |
line from UVLO.e to (D8,UVLO.e); dot |
| 119 |
Pin(10) at (Here,Board.n); "V`'svg_sub(IN)" at Pin10.se below ljust |
| 120 |
line from INTVcc.S to Pin10.s |
| 121 |
|
| 122 |
line up_ 2*lw from UVLO.n; DUV: dot; left_ |
| 123 |
A10: opamp(,,,,R) at (UVLO.e,Here); LH_symbol at A10.C |
| 124 |
"A10" at A10.SE above rjust |
| 125 |
line from A10.In1 right_ lw; "1.22 V" ljust |
| 126 |
arrow from A10.Out left A10.Out.x-UVLO.w.x+lw |
| 127 |
S1: source(down_ elen_ with .c at Here+(-dimen_/6,0),G) |
| 128 |
rarrow; "I`'svg_sub(S1)" rjust at last arrow above "2 svg_micro(A)" rjust |
| 129 |
ground(at S1.end,T) |
| 130 |
line from A10.In2 right_ lw then up_ S1.start.y-A10.In2.y |
| 131 |
dot; { "SHDN/UVLO" at last [].e ljust } |
| 132 |
{ line from last [].e+(textoffset,3bp__) right_ 16bp__ } |
| 133 |
{ line to S1.start } |
| 134 |
{ Pin(9) at (Here,Board.n)}; line to Pin9.s |
| 135 |
|
| 136 |
right_; A7: opamp with .n at (UVLO.x,G6.y-lw); "VC" at A7.nw rjust |
| 137 |
line from A7.Out right_ A8.Out.x-A7.Out.x+lw |
| 138 |
G5: OR_gate(3) with .In2 at Here |
| 139 |
line from G5.In1 left_ lw then up G6.Out.y-G5.In1.y then to G6.Out; right_ |
| 140 |
G2: opamp(right_ dimen_,"","") with .NE at (D8.x,G5.y+A9.ht/4) |
| 141 |
ground(at G2.SE) |
| 142 |
Pin(7) at (Board.e,G2); "GATE" at Pin7.n above rjust |
| 143 |
line from G2.E to Pin7.w; line from D8 to G2.NE |
| 144 |
line from G2.w left_ dimen_*2/3 |
| 145 |
SR1: box ht G2.ht wid boxwid*2/3; "SR1" at SR1.n above |
| 146 |
"R" at SR1.w ljust; "O" at SR1.e rjust; "S" at SR1.s above |
| 147 |
line right_ from G5.Out to SR1.w |
| 148 |
|
| 149 |
Pin(3) at (Q3C,Board.s); line from Q3C to Pin3.n; "SS" at Pin3.ne above ljust |
| 150 |
D67: dot(at (G6.Out+(lw,0),A7.In1)); line to A7.In1 |
| 151 |
dot(at (Q3C.x,D67.y-dimen_)); down_ |
| 152 |
Q2: bi_tr(,R,P) with .B at Here; ground(at Q2.C); "Q2" at Q2.e ljust |
| 153 |
line from Q2.E to (Q2.E,A7.In1); dot |
| 154 |
|
| 155 |
A1: opamp(right_ dimen_,,,,R) at A12+(0,-3/2*dimen_); T1: dot(at (D67,A1)) |
| 156 |
A2: opamp(right_ dimen_,,,,R) at A1+(0,-A1.ht*5/4) |
| 157 |
D12: dot(at (A1.w.x-lw,(A1.y+A2.y)/2)) |
| 158 |
Pin(2) at (Board.w,D12); line from Pin2.e to D12; "FBX" at Pin2.ne above ljust |
| 159 |
line from A1.In2 to (D12,A1.In2) then to (D12,A2.In1) then to A2.In1 |
| 160 |
line from A1.In1 left_ lw; "1.6 V" rjust |
| 161 |
line from A2.In2 left_ lw; "-0.8 V" rjust |
| 162 |
|
| 163 |
Pin(1) at (Board.w,Q3C); "V`'svg_sub(CC)" at Pin1.ne above ljust |
| 164 |
S3: source(down_ elen_ at ((Board.w+Pin3)/2,S2),G);rlabel(,"S3") |
| 165 |
larrow("I`'svg_sub(S3)") |
| 166 |
"2.5 V" at S3.start above; line from S3.end to (S3,Pin1); dot |
| 167 |
|
| 168 |
diode(from T1 to A1.Out) |
| 169 |
D2: diode(from (T1,A2) to A2.Out) |
| 170 |
line from D2.start to (D2.start,Pin1) then to Pin1.e |
| 171 |
|
| 172 |
left_; A6: opamp(,,,,R) with .Out at (SR1,A1) |
| 173 |
A5: opamp at (A6,A6+(0,-A6.ht*5/4)) |
| 174 |
line from A6.In2 right_ lw; "108 mV" ljust |
| 175 |
line from A5.In2 right_ lw; { dot; line to (Here,A6.In1) then to A6.In1 } |
| 176 |
{Pin(6) at (Board.e,Here)}; line to Pin6.w; "SENSE" at Pin6.n above rjust |
| 177 |
line from A5.In1 right_ lw then down_ dimen_ |
| 178 |
dot; ground; {Pin(11) at (Board.e,Here)}; line to Pin11.w |
| 179 |
"GND" at Pin11.n above rjust |
| 180 |
line from G5.In3 left_ lw then down G5.In3.y-A6.y then to A6.Out |
| 181 |
|
| 182 |
Summer: circle rad 0.15 "svg_Sigma" with .w at (G5.Out,A5) |
| 183 |
line from A7.In2 left lw then down_ A7.In2.y-Summer.y then to Summer.w |
| 184 |
line from Summer.e to A5.Out |
| 185 |
"V`'svg_sub(ISENSE)" at Summer.ne above ljust; "SLOPE" at Summer.nw above rjust |
| 186 |
"RAMP" at Summer.sw below rjust |
| 187 |
line down_ 2*lw from Summer.s |
| 188 |
box ht boxht*2/3 with .n at Here "RAMP" "GENERATOR" |
| 189 |
{[ line for_(1,3,1,`up_ dimen_/4 right_ dimen_/6 then down_ dimen_/4 then') \ |
| 190 |
up_ dimen_/4 right_ dimen_/6 ] with .sw at last box.n+(lw/2,lw/2)} |
| 191 |
line down_ lw*3/2 |
| 192 |
OSC: box ht boxht*2/3 \ |
| 193 |
"100 kHZ-1 MHZ" "OSCILLATOR" |
| 194 |
{[line right_ dimen_/2; [for_(1,4,1,`line from (m4x*dimen_/10,0) \ |
| 195 |
up_ dimen_/4')] with .s at last line ] with .sw at OSC.n+(lw/2,2bp__)} |
| 196 |
line right_ from OSC.e to (SR1,OSC.e) then to SR1.s |
| 197 |
G1: OR_gate with .Out at OSC.w+(-2*lw,0); line from G1.Out to OSC.w |
| 198 |
A3: opamp with .Out at G1.In1+(-lw,0); line from A3.Out to G1.In1 |
| 199 |
line left_ lw from A3.In1; "1.25 V" rjust |
| 200 |
|
| 201 |
line from OSC.s down_ A2.ht*3/4; up_ |
| 202 |
Q1: bi_tr with .C at Here; right_ |
| 203 |
A4: opamp(,,,,R) with .E at Q1.B; "+" at A4.w +(4pt__,0) |
| 204 |
"FREQ" at A4.SE+(0,-lw) below ljust "PROG" ljust |
| 205 |
line from A4.In2 left lw then down_ A4.ht/2; continue to (Q1.E,Here); dot |
| 206 |
{Pin(4) at (Here,Board.s); "R`'svg_sub(T)" at Pin4.ne above ljust}; |
| 207 |
line from Q1.E to Pin4.n |
| 208 |
line from A4.In1 left_ lw; "1.25 V " above |
| 209 |
Pin(5) at (A4.w.x-3*lw,Board.s.y); "SYNC" at Pin5.ne above ljust |
| 210 |
line from Pin5.n to (Pin5,G1.In2) then to G1.In2 |
| 211 |
line from A3.In2 left_ lw; continue to (Here,A4.w) then to A4.w |
| 212 |
"FREQ" at (A3.In2.x-lw,A4.w.y+dimen_/2) ljust above "FOLD" ljust "BACK" ljust |
| 213 |
|
| 214 |
D3: dot(at A3.In2-(lw,0)); right_ |
| 215 |
FFB: box ht boxht*2/3 "FREQUENCY" "FOLDBACK" at (A2,D3); line to D3 |
| 216 |
DFFB: dot(at Pin2.e+(2*lw,0)) |
| 217 |
line from FFB.w to (DFFB,FFB); continue to (Here,D1112) then to D1112 |
| 218 |
DF: dot(at (DFFB,FFB)); line down_ boxht |
| 219 |
resistor(right_ elen_); llabel(,"R5") rlabel(,"8 k") |
| 220 |
diode(right_ dimen_/3); llabel(,"D2") |
| 221 |
reversed(`diode',right_ dimen_*2/3,Z); llabel(,"D3"); ground |
| 222 |
|
| 223 |
foreach_(`gate',`"gate" at gate.C',A1,A2,A3,A4,A5,A6,A7,A9,G1,G2,G3,G4,G5) |
| 224 |
|
| 225 |
line from Pin9.n up_ dimen_*2/3; dot |
| 226 |
{resistor(left_ dimen_); rlabel(,"R4"); ground} |
| 227 |
resistor(right_ dimen_); llabel(,"R3"); line up_ dimen_/2; VCC: dot |
| 228 |
dot(at Here+(dimen_/2,0)); {capacitor(down_ dimen_/2,C+) |
| 229 |
llabel(,"C`'svg_sub(IN)"); ground(,T)} |
| 230 |
L1D: dot(at (Pin10,Here)); {line to Pin10.n}; {line to (Board.n,Here) |
| 231 |
"V`'svg_sub(IN)" rjust} |
| 232 |
|
| 233 |
line from Pin8.e right_ dimen_/4; capacitor(down_ dimen_/3) |
| 234 |
{"C`'svg_sub(VCC)" at Pin8.ne ljust above}; ground |
| 235 |
up_; M1: mosfet(,,TEDSQuB) with .G at Pin7.e; "M1" at M1.n above |
| 236 |
inductor(right_ from L1D to (Board.e.x+lw,L1D.y),,,M); llabel(,"L1"); DL1: dot |
| 237 |
line down_ 3*dimen_; continue to (M1.D,Here) then to M1.D |
| 238 |
line from M1.S to (M1.S,Pin6); dot; {line to Pin6.e} |
| 239 |
resistor(down_ to (Here,Pin11)); llabel(,"R`'svg_sub(SENSE)"); dot |
| 240 |
ground; line to Pin11.e |
| 241 |
|
| 242 |
capacitor(from DL1 right_ dimen_/2); llabel(,"C`'svg_sub(DC)"); T2: dot |
| 243 |
diode(right_ dimen_,Z); { line right_ dimen_; "V`'svg_sub(OUT)" above} |
| 244 |
dot(at Here+(dimen_/2,0)); line down_ lw; dot; |
| 245 |
P3: parallel_(`Sep=dimen_*2/3; capacitor(down_ elen_) |
| 246 |
rlabel("C`'svg_sub(OUT2)"); line down_ elen_/3', |
| 247 |
`line down_ elen_/3; capacitor(down_ elen_*2/3,C) |
| 248 |
llabel("C`'svg_sub(OUT1)")', |
| 249 |
`resistor(down_ elen_*2/3); llabel(,"R2"); dot |
| 250 |
{ line left_ lw; "FBX" above } |
| 251 |
R1: resistor(down_ elen_*2/3); llabel(,"R1"); dot') |
| 252 |
dot; ground |
| 253 |
inductor(from T2 to (T2,P3.E3.R1.end),,,M); rlabel(,"L2") |
| 254 |
line to P3.E3.R1.end |
| 255 |
|
| 256 |
resistor(from Pin4.s down_ dimen_*2/3); llabel(,"R`'svg_sub(T)"); ground(,T) |
| 257 |
capacitor(from Pin3.s down_ dimen_*2/3); llabel(,"C`'svg_sub(SS)"); ground(,T) |
| 258 |
line from Pin2.w left_ lw; "FBX" rjust |
| 259 |
TV: dot(at Pin1-(dimen_/2,0)) |
| 260 |
resistor(down_ dimen_*2/3); llabel(,"R`'svg_sub(C)") |
| 261 |
capacitor(down_ dimen_*2/3); llabel("C`'svg_sub(C1)"); dot; ground |
| 262 |
line left_ dimen_*0.6 |
| 263 |
capacitor(down_ from (Here,TV) to Here); llabel("C`'svg_sub(C2)") |
| 264 |
line from Pin1.w to last line.start |
| 265 |
|
| 266 |
move to Board.se+(5bp__,20bp__) |
| 267 |
"LT3757 block diagram" ljust "working as a" ljust "SEPIC converter" ljust |
| 268 |
') |
| 269 |
|
| 270 |
.PE |