quite complete

master
Alessandro Mauri 2 years ago
parent 2d4669f14f
commit 802b21269b
  1. 164
      ccm_model.asc

@ -1,5 +1,5 @@
Version 4
SHEET 1 2212 2260
SHEET 1 3096 2280
WIRE -544 48 -592 48
WIRE -416 48 -464 48
WIRE -368 48 -416 48
@ -12,10 +12,8 @@ WIRE 368 48 256 48
WIRE 624 48 368 48
WIRE 832 48 688 48
WIRE 944 48 832 48
WIRE 1200 48 944 48
WIRE 1440 48 1200 48
WIRE 1440 48 944 48
WIRE 1488 48 1440 48
WIRE 1200 80 1200 48
WIRE 944 96 944 48
WIRE 368 112 368 48
WIRE 240 192 224 192
@ -23,7 +21,6 @@ WIRE 320 192 240 192
WIRE 832 192 832 48
WIRE 1488 192 1488 48
WIRE -592 208 -592 48
WIRE 1200 208 1200 160
WIRE -368 224 -368 48
WIRE -288 224 -288 48
WIRE -48 224 -48 48
@ -36,7 +33,6 @@ WIRE 416 256 368 256
WIRE 448 256 416 256
WIRE 944 272 944 224
WIRE 368 304 368 256
WIRE 1200 336 1200 272
WIRE -592 432 -592 288
WIRE -368 432 -368 288
WIRE -368 432 -592 432
@ -52,10 +48,8 @@ WIRE 832 432 832 256
WIRE 832 432 368 432
WIRE 944 432 944 352
WIRE 944 432 832 432
WIRE 1200 432 1200 400
WIRE 1200 432 944 432
WIRE 1488 432 1488 272
WIRE 1488 432 1200 432
WIRE 1488 432 944 432
WIRE -592 464 -592 432
WIRE -784 752 -784 704
WIRE -640 752 -784 752
@ -74,7 +68,8 @@ WIRE -1040 1008 -1216 1008
WIRE -784 1008 -816 1008
WIRE -704 1008 -784 1008
WIRE -1280 1072 -1488 1072
WIRE -1040 1072 -1216 1072
WIRE -1168 1072 -1216 1072
WIRE -1040 1072 -1168 1072
WIRE -752 1072 -816 1072
WIRE -704 1072 -704 1008
WIRE -640 1072 -640 1040
@ -85,11 +80,11 @@ WIRE -1488 1104 -1488 1072
WIRE -1280 1104 -1280 1088
WIRE -752 1104 -752 1072
WIRE -640 1104 -640 1072
WIRE 1840 1104 1840 1024
WIRE 1872 1104 1872 1024
WIRE -1072 1136 -1072 944
WIRE -784 1136 -784 1008
WIRE -784 1136 -1072 1136
WIRE 1776 1152 1744 1152
WIRE 1808 1152 1776 1152
WIRE -1104 1200 -1104 880
WIRE -752 1200 -752 1168
WIRE -752 1200 -1104 1200
@ -98,42 +93,42 @@ WIRE -640 1200 -752 1200
WIRE 608 1200 448 1200
WIRE 704 1200 688 1200
WIRE -1104 1216 -1104 1200
WIRE 1376 1232 1360 1232
WIRE 1440 1232 1376 1232
WIRE 1648 1232 1536 1232
WIRE 1744 1232 1744 1152
WIRE 1744 1232 1728 1232
WIRE 1840 1232 1840 1200
WIRE 1968 1232 1840 1232
WIRE 2096 1232 2048 1232
WIRE 880 1248 880 1104
WIRE 1408 1232 1392 1232
WIRE 1472 1232 1408 1232
WIRE 1680 1232 1568 1232
WIRE 1776 1232 1776 1152
WIRE 1776 1232 1760 1232
WIRE 1872 1232 1872 1200
WIRE 2000 1232 1872 1232
WIRE 2128 1232 2080 1232
WIRE 1072 1248 1072 1104
WIRE -1488 1264 -1488 1184
WIRE 576 1264 576 1056
WIRE 800 1264 784 1264
WIRE 848 1264 800 1264
WIRE 1840 1264 1840 1232
WIRE 992 1264 976 1264
WIRE 1040 1264 992 1264
WIRE 1872 1264 1872 1232
WIRE 448 1280 448 1200
WIRE 544 1280 448 1280
WIRE 976 1280 912 1280
WIRE 1008 1280 976 1280
WIRE 1376 1280 1360 1280
WIRE 1440 1280 1376 1280
WIRE 2096 1280 2096 1232
WIRE 1168 1280 1104 1280
WIRE 1200 1280 1168 1280
WIRE 1408 1280 1392 1280
WIRE 1472 1280 1408 1280
WIRE 2128 1280 2128 1232
WIRE 704 1296 704 1200
WIRE 704 1296 608 1296
WIRE 848 1296 704 1296
WIRE 1040 1296 704 1296
WIRE 256 1312 224 1312
WIRE 384 1312 336 1312
WIRE 544 1312 384 1312
WIRE 1744 1312 1744 1232
WIRE 1776 1312 1744 1312
WIRE 1776 1312 1776 1232
WIRE 1808 1312 1776 1312
WIRE 384 1344 384 1312
WIRE 448 1344 448 1280
WIRE 880 1360 880 1312
WIRE 1440 1360 1440 1312
WIRE 1072 1360 1072 1312
WIRE 1472 1360 1472 1312
WIRE 576 1376 576 1328
WIRE 1840 1424 1840 1360
WIRE 2096 1424 2096 1344
WIRE 1872 1424 1872 1360
WIRE 2128 1424 2128 1344
WIRE 384 1456 384 1424
WIRE 448 1456 448 1424
WIRE -592 1488 -592 1440
@ -178,10 +173,15 @@ WIRE -464 2048 -464 1984
WIRE -464 2048 -528 2048
WIRE -848 2064 -896 2064
WIRE -720 2064 -768 2064
WIRE -592 2064 -720 2064
WIRE -640 2064 -720 2064
WIRE -592 2064 -640 2064
WIRE -720 2096 -720 2064
WIRE -640 2112 -640 2064
WIRE -560 2128 -560 2080
WIRE -720 2240 -720 2176
WIRE -720 2208 -720 2176
WIRE -640 2208 -640 2176
WIRE -640 2208 -720 2208
WIRE -720 2240 -720 2208
FLAG 992 224 vfeed
FLAG 416 256 ifeed
FLAG 240 192 vg
@ -191,25 +191,24 @@ FLAG 576 1376 0
FLAG 576 1056 vcc
FLAG 448 1456 0
FLAG 224 1312 ifeed
FLAG 880 1360 0
FLAG 880 1104 vcc
FLAG 1440 1360 0
FLAG 1376 1232 vsq
FLAG 2096 1232 vg
FLAG 1072 1360 0
FLAG 1072 1104 vcc
FLAG 1472 1360 0
FLAG 1408 1232 vsq
FLAG 2128 1232 vg
FLAG -896 1872 0
FLAG -896 1552 vcc
FLAG -1120 1776 vfeed
FLAG 800 1264 verr
FLAG 1840 1424 0
FLAG 1840 1024 vcc
FLAG 2096 1424 0
FLAG 992 1264 verr
FLAG 1872 1424 0
FLAG 1872 1024 vcc
FLAG 2128 1424 0
FLAG -784 704 vcc
FLAG -1216 1008 vsq
FLAG 1440 48 out
FLAG 384 1456 0
FLAG -1264 2032 0
FLAG -1376 2032 0
FLAG -1264 1616 vcc
FLAG -1120 1808 vref
FLAG -592 1440 vcc
FLAG -896 2064 vref
@ -218,15 +217,18 @@ FLAG -720 2240 0
FLAG -560 2128 0
FLAG -560 1872 vcc
FLAG -1488 1264 0
FLAG 976 1280 res
FLAG 1376 1280 res
FLAG 1168 1280 res
FLAG 1408 1280 res
FLAG -1104 1216 0
FLAG -1280 1104 0
FLAG -640 2064 vsoft
FLAG -1168 1072 ven
FLAG -1264 1616 ven
SYMBOL voltage -592 192 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
SYMATTR InstName V1
SYMATTR Value 5
SYMATTR Value 9
SYMBOL cap -64 224 R0
SYMATTR InstName C1
SYMATTR Value 100ľ
@ -263,7 +265,7 @@ SYMATTR Value {Ra}
SYMBOL res 432 1328 R0
SYMATTR InstName R7
SYMATTR Value {Rb}
SYMBOL Digital\\srflop 1488 1184 R0
SYMBOL Digital\\srflop 1520 1184 R0
SYMATTR InstName A2
SYMATTR SpiceLine Vhigh=5 Vlow=0
SYMBOL nmos 320 112 R0
@ -273,34 +275,34 @@ SYMBOL cap -768 1584 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C3
SYMATTR Value 3.3p
SYMATTR Value 5.2p
SYMBOL cap -768 1680 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C4
SYMATTR Value 10n
SYMATTR Value 5.2n
SYMBOL res -912 1680 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R9
SYMATTR Value 33k
SYMBOL npn 1776 1104 R0
SYMBOL npn 1808 1104 R0
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL pnp 1776 1360 M180
SYMBOL pnp 1808 1360 M180
SYMATTR InstName Q2
SYMATTR Value 2N3906
SYMBOL res 1744 1216 R90
SYMBOL res 1776 1216 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R10
SYMATTR Value 1.8k
SYMBOL res 2064 1216 R90
SYMBOL res 2096 1216 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R11
SYMATTR Value 10
SYMBOL cap 2080 1280 R0
SYMBOL cap 2112 1280 R0
SYMATTR InstName C5
SYMATTR Value 10n
SYMBOL current 1488 192 R0
@ -308,25 +310,6 @@ WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName I1
SYMATTR Value {Il}
SYMBOL zener 1216 400 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D2
SYMATTR Value 1N5378B
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 1216 176 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R1
SYMATTR Value 3.3k
SYMBOL zener 1216 272 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D3
SYMATTR Value 1N5378B
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL Misc\\NE555 -928 976 R0
SYMATTR InstName U4
SYMBOL cap -768 1104 R0
@ -364,7 +347,7 @@ SYMBOL res -448 32 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R17
SYMATTR Value 0
SYMATTR Value 2
SYMBOL res -1280 1648 R0
SYMATTR InstName R19
SYMATTR Value 3.3k
@ -386,7 +369,7 @@ SYMATTR Value 140n
SYMATTR SpiceLine Ipk=0.5 Rser=0.056 Rpar=90 Cpar=640f mfg="Würth Elektronik" pn="782632620 WE-CBA 0603"
SYMBOL References\\LT1634-2.5 -1264 1936 R0
SYMATTR InstName U5
SYMBOL OpAmps\\AD8565 880 1216 R0
SYMBOL OpAmps\\AD8565 1072 1216 R0
SYMATTR InstName U6
SYMBOL OpAmps\\AD8565 576 1232 R0
SYMATTR InstName U1
@ -409,20 +392,24 @@ SYMBOL res -864 2080 R270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R5
SYMATTR Value 1.8k
SYMATTR Value 2.2k
SYMBOL res -736 2080 R0
SYMATTR InstName R8
SYMATTR Value 10k
SYMATTR Value 8.2k
SYMBOL OpAmps\\AD8565 -560 1984 R0
SYMATTR InstName U3
SYMBOL voltage -1488 1088 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 3 24 44 Left 2
SYMATTR Value PWL(0 0 1m 0 1.1m 5)
SYMATTR InstName V2
SYMATTR Value PWL(0 0 0.8m 0 1m 5)
SYMBOL Digital\\buf1 -1280 1008 R0
SYMATTR InstName A1
SYMATTR SpiceLine Vhigh=5 Vlow=0
SYMBOL cap -656 2112 R0
SYMATTR InstName C8
SYMATTR Value 100n
TEXT 1600 328 Left 2 !.tran 0 16m 0
TEXT 520 280 Left 2 ;snubber here
TEXT 1592 184 Left 2 !*.step param Il list 10u 2m 4m 6m 8m 10m 12m 14m
@ -431,12 +418,13 @@ TEXT 1592 256 Left 2 !.meas Pout AVG V(OUT)*I(I1)
TEXT 1592 280 Left 2 !.meas Eff param Pout/Pin
TEXT 1576 160 Left 2 !.param Il=6m
TEXT -296 -24 Left 2 !.ic V(vcc)=5 I(L1)=0
TEXT 552 1432 Left 2 !.param Ra=98k
TEXT 552 1456 Left 2 !.param Rb=520
TEXT 136 1488 Left 2 !.param Ra=120k
TEXT 136 1512 Left 2 !.param Rb=1k
TEXT -296 -56 Left 2 ;Ferrite Bead, approx. CBM321609U600T
TEXT 560 1488 Left 2 ;The AP8567 is the quad version
TEXT 560 1512 Left 2 ;AP8648 for battery-powered and-or low voltage <5V
TEXT 560 1536 Left 2 ;The OP462 is the better version of the AP8567
TEXT 144 1544 Left 2 ;The AP8567 is the quad version
TEXT 144 1568 Left 2 ;AP8648 for battery-powered and-or low voltage <5V
TEXT 144 1592 Left 2 ;The OP462 is the better version of the AP8567
TEXT -1608 2080 Left 2 ;Any 2.5V zener-voltage reference would do
TEXT -496 1520 Left 2 ;makeshift minimum voltage selector, \nuse a set maximum voltage as a soft start
TEXT -1360 1128 Left 2 ;made with two nors
TEXT -600 2216 Left 2 !.ic V(vsoft)=0