Version 4 SHEET 1 3144 760 WIRE 128 -560 -400 -560 WIRE 416 -560 128 -560 WIRE 1152 -560 416 -560 WIRE 1504 -560 1152 -560 WIRE 1776 -560 1504 -560 WIRE 1872 -560 1776 -560 WIRE 2080 -560 1872 -560 WIRE 2192 -560 2080 -560 WIRE 2432 -560 2192 -560 WIRE 2512 -560 2432 -560 WIRE 128 -512 128 -560 WIRE 416 -464 416 -560 WIRE 1776 -464 1776 -560 WIRE 1152 -448 1152 -560 WIRE 1504 -448 1504 -560 WIRE 1872 -448 1872 -560 WIRE 1776 -352 1776 -384 WIRE 1872 -352 1872 -384 WIRE 1872 -352 1776 -352 WIRE 416 -336 416 -384 WIRE 416 -336 -208 -336 WIRE 688 -336 416 -336 WIRE 768 -336 688 -336 WIRE 912 -336 768 -336 WIRE 1152 -336 1152 -368 WIRE 1280 -336 1152 -336 WIRE 1504 -336 1504 -368 WIRE 1504 -336 1392 -336 WIRE 1648 -336 1504 -336 WIRE 688 -304 688 -336 WIRE 768 -304 768 -336 WIRE 912 -304 912 -336 WIRE 1504 -256 1504 -336 WIRE 1648 -240 1648 -336 WIRE -64 -208 -128 -208 WIRE 0 -208 -64 -208 WIRE 128 -208 128 -432 WIRE 128 -208 0 -208 WIRE 1152 -208 1152 -336 WIRE 2240 -208 2128 -208 WIRE 2352 -208 2320 -208 WIRE 1280 -192 1280 -336 WIRE 1392 -192 1392 -336 WIRE 688 -160 688 -224 WIRE 976 -160 688 -160 WIRE 1088 -160 1056 -160 WIRE 1776 -160 1776 -352 WIRE -208 -144 -208 -336 WIRE -128 -144 -128 -208 WIRE 2192 -144 2192 -560 WIRE 1504 -128 1504 -176 WIRE 1648 -128 1648 -176 WIRE 1648 -128 1504 -128 WIRE 1952 -128 1856 -128 WIRE 2128 -128 2128 -208 WIRE 2128 -128 2032 -128 WIRE 2160 -128 2128 -128 WIRE 2352 -112 2352 -208 WIRE 2352 -112 2224 -112 WIRE 2784 -112 2352 -112 WIRE 2928 -112 2848 -112 WIRE 2160 -96 2128 -96 WIRE 288 -64 208 -64 WIRE 1152 -64 1152 -112 WIRE 1152 -64 288 -64 WIRE -64 -48 -64 -208 WIRE 0 -48 0 -208 WIRE 128 -48 128 -208 WIRE 1504 -48 1504 -128 WIRE 288 -32 288 -64 WIRE 1504 -32 1504 -48 WIRE 1776 -32 1776 -80 WIRE 208 -16 208 -64 WIRE 1152 16 1152 -64 WIRE 1440 16 1152 16 WIRE 1648 16 1648 -128 WIRE 1712 16 1648 16 WIRE 2128 16 2128 -96 WIRE 2272 16 2128 16 WIRE 416 32 416 -336 WIRE 688 32 688 -160 WIRE 2720 64 2624 64 WIRE 2832 64 2720 64 WIRE 2880 64 2832 64 WIRE 2944 64 2880 64 WIRE 3040 64 3024 64 WIRE 2272 80 2272 16 WIRE 2272 80 1984 80 WIRE -64 96 -64 32 WIRE 0 96 0 16 WIRE 0 96 -64 96 WIRE 128 96 128 16 WIRE 128 96 0 96 WIRE 208 96 208 48 WIRE 208 96 128 96 WIRE 288 96 288 48 WIRE 288 96 208 96 WIRE 368 96 288 96 WIRE 912 96 912 -224 WIRE 912 96 736 96 WIRE 1008 96 912 96 WIRE -400 128 -400 -560 WIRE 2080 128 2080 -560 WIRE 2624 128 2624 64 WIRE 1504 144 1504 64 WIRE 1984 144 1984 80 WIRE 2048 144 1984 144 WIRE 2720 144 2720 64 WIRE 2272 160 2272 80 WIRE 2272 160 2112 160 WIRE 1776 176 1776 64 WIRE 1856 176 1856 -128 WIRE 1856 176 1776 176 WIRE 1872 176 1856 176 WIRE 1984 176 1952 176 WIRE 2048 176 1984 176 WIRE 2272 176 2272 160 WIRE 2880 176 2880 64 WIRE 416 192 416 128 WIRE 688 192 688 128 WIRE 688 192 416 192 WIRE 2832 192 2832 64 WIRE 2432 272 2432 -560 WIRE 1776 288 1776 176 WIRE 1856 288 1776 288 WIRE 2208 288 1856 288 WIRE 2352 288 2208 288 WIRE 2400 288 2352 288 WIRE 2720 288 2720 224 WIRE 2624 304 2624 208 WIRE 2624 304 2464 304 WIRE 416 320 416 192 WIRE 2272 320 2272 256 WIRE 2368 320 2272 320 WIRE 2400 320 2368 320 WIRE 2272 336 2272 320 WIRE 624 368 480 368 WIRE 656 368 624 368 WIRE 768 368 768 -224 WIRE 768 368 736 368 WIRE 1504 368 1504 224 WIRE 1600 368 1504 368 WIRE 768 384 768 368 WIRE 2720 416 2720 352 WIRE 2832 416 2832 256 WIRE 2832 416 2720 416 WIRE 2880 416 2880 256 WIRE 2880 416 2832 416 WIRE 624 432 624 368 WIRE 1504 432 1504 368 WIRE 1776 432 1776 288 WIRE 416 448 416 416 WIRE 912 448 912 96 WIRE 1152 448 1152 16 WIRE 1600 448 1600 368 WIRE 1856 448 1856 288 WIRE 2512 448 2512 -560 WIRE 1008 464 1008 96 WIRE 1984 464 1984 176 WIRE 2368 464 2368 320 WIRE 2480 464 2368 464 WIRE 2720 480 2720 416 WIRE 2720 480 2544 480 WIRE 2928 480 2928 -112 WIRE 768 496 768 448 WIRE 2272 496 2272 416 WIRE 2352 496 2352 288 WIRE 2480 496 2352 496 WIRE 3040 496 3040 64 WIRE -400 592 -400 208 WIRE -208 592 -208 -80 WIRE -208 592 -400 592 WIRE -128 592 -128 -80 WIRE -128 592 -208 592 WIRE 416 592 416 528 WIRE 416 592 -128 592 WIRE 624 592 624 496 WIRE 624 592 416 592 WIRE 768 592 768 560 WIRE 768 592 624 592 WIRE 912 592 912 528 WIRE 912 592 768 592 WIRE 1008 592 1008 528 WIRE 1008 592 912 592 WIRE 1152 592 1152 528 WIRE 1152 592 1008 592 WIRE 1280 592 1280 -128 WIRE 1280 592 1152 592 WIRE 1392 592 1392 -128 WIRE 1392 592 1280 592 WIRE 1504 592 1504 512 WIRE 1504 592 1392 592 WIRE 1600 592 1600 512 WIRE 1600 592 1504 592 WIRE 1776 592 1776 512 WIRE 1776 592 1600 592 WIRE 1856 592 1856 512 WIRE 1856 592 1776 592 WIRE 1984 592 1984 528 WIRE 1984 592 1856 592 WIRE 2080 592 2080 192 WIRE 2080 592 1984 592 WIRE 2192 592 2192 -80 WIRE 2192 592 2080 592 WIRE 2272 592 2272 576 WIRE 2272 592 2192 592 WIRE 2432 592 2432 336 WIRE 2432 592 2272 592 WIRE 2512 592 2512 512 WIRE 2512 592 2432 592 WIRE 2928 592 2928 560 WIRE 2928 592 2512 592 WIRE 3040 592 3040 576 WIRE 3040 592 2928 592 WIRE -400 656 -400 592 FLAG -400 656 0 FLAG 128 96 Vsense FLAG 288 96 Vin FLAG 1152 -64 Vout FLAG 1008 96 Vbias FLAG 1504 -48 Vout1 FLAG 2624 304 Vevent FLAG 2928 -112 Vpulse FLAG 2720 480 Vled FLAG 2208 288 Vcmpin FLAG 2272 320 Vcmpref SYMBOL Misc\\battery -400 112 R0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR InstName V1 SYMATTR Value 20 SYMBOL res 400 -368 M180 WINDOW 0 36 76 Left 0 WINDOW 3 36 40 Left 0 SYMATTR InstName R1 SYMATTR Value 1k SYMBOL njf 368 32 R0 SYMATTR InstName J1 SYMATTR Value 2SK30GR SYMBOL res 400 432 R0 SYMATTR InstName R3 SYMATTR Value 680 SYMBOL polcap -224 -144 R0 SYMATTR InstName C2 SYMATTR Value 100u SYMATTR SpiceLine Rser=0.5 SYMBOL res 672 -320 R0 SYMATTR InstName R4 SYMATTR Value 1.2k SYMBOL njf 736 32 M0 SYMATTR InstName J2 SYMATTR Value 2SK30GR SYMBOL diode 144 16 R180 WINDOW 0 24 72 Left 0 WINDOW 3 24 0 Left 0 SYMATTR InstName D1 SYMATTR Value 1N4148 SYMBOL current -64 -48 M0 WINDOW 0 24 88 Left 0 WINDOW 3 24 0 Left 0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR InstName I1 SYMATTR Value PULSE(0 1n 0 100n 100n 1u 0.1) SYMBOL diode 752 496 R0 SYMATTR InstName D2 SYMATTR Value 1N4148 SYMBOL diode 752 384 R0 SYMATTR InstName D7 SYMATTR Value 1N4148 SYMBOL npn 480 320 M0 SYMATTR InstName Q1 SYMATTR Value 2N3904 SYMBOL res 752 -320 R0 SYMATTR InstName R5 SYMATTR Value 22k SYMBOL cap 608 432 R0 SYMATTR InstName C1 SYMATTR Value 0.1u SYMBOL res 272 -48 R0 SYMATTR InstName R6 SYMATTR Value 10meg SYMBOL pnp 1088 -112 M180 SYMATTR InstName Q5 SYMATTR Value 2N3906 SYMBOL res 1072 -176 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R8 SYMATTR Value 100 SYMBOL res 896 -320 R0 SYMATTR InstName R12 SYMATTR Value 330k SYMBOL res 896 432 R0 SYMATTR InstName R17 SYMATTR Value 100k SYMBOL res 1136 432 R0 SYMATTR InstName R19 SYMATTR Value 4.7k SYMBOL polcap 992 464 R0 SYMATTR InstName C5 SYMATTR Value 1u SYMATTR SpiceLine Rser=2 SYMBOL npn 1440 -32 R0 SYMATTR InstName Q2 SYMATTR Value 2N3904 SYMBOL res 1488 416 R0 SYMATTR InstName R11 SYMATTR Value 4.7k SYMBOL polcap 1584 448 R0 SYMATTR InstName C3 SYMATTR Value 22u SYMBOL res 1488 -272 R0 SYMATTR InstName R13 SYMATTR Value 4.7k SYMBOL polcap 1376 -192 R0 SYMATTR InstName C6 SYMATTR Value 100u SYMBOL res 1488 128 R0 SYMATTR InstName R18 SYMATTR Value 330 SYMBOL res 1488 -464 R0 SYMATTR InstName R24 SYMATTR Value 1k SYMBOL pnp 1712 64 M180 SYMATTR InstName Q3 SYMATTR Value 2N3906 SYMBOL res 1760 -176 R0 SYMATTR InstName R7 SYMATTR Value 330 SYMBOL res 1760 -480 R0 SYMATTR InstName R9 SYMATTR Value 4.7k SYMBOL polcap 1856 -448 R0 SYMATTR InstName C7 SYMATTR Value 22u SYMBOL res 1760 416 R0 SYMATTR InstName R10 SYMATTR Value 6.8k SYMBOL res 1968 160 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R14 SYMATTR Value 100k SYMBOL polcap 1968 464 R0 SYMATTR InstName C8 SYMATTR Value 1u SYMBOL res 2256 160 R0 SYMATTR InstName R15 SYMATTR Value 3k SYMBOL res 2256 480 R0 SYMATTR InstName R16 SYMATTR Value 82k SYMBOL Comparators\\LM2901 2432 304 R0 SYMATTR InstName U2 SYMBOL res 2256 320 R0 SYMATTR InstName R20 SYMATTR Value 7k SYMBOL res 2608 112 R0 SYMATTR InstName R21 SYMATTR Value 3.3k SYMBOL res 2048 -144 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R22 SYMATTR Value 10k SYMBOL res 2336 -224 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R23 SYMATTR Value 94k SYMBOL polcap 2784 -96 R270 WINDOW 0 32 32 VTop 0 WINDOW 3 0 32 VBottom 0 SYMATTR InstName C9 SYMATTR Value 2.2u SYMBOL res 2912 464 R0 SYMATTR InstName R25 SYMATTR Value 10k SYMBOL Comparators\\LM2901 2512 480 R0 SYMATTR InstName U4 SYMBOL res 2704 128 R0 SYMATTR InstName R26 SYMATTR Value 220 SYMBOL LED 2704 288 R0 SYMATTR InstName D3 SYMATTR Value SML-P11VT_626n SYMATTR Description Diode SYMATTR Type diode SYMBOL schottky 2848 256 R180 WINDOW 0 24 72 Left 0 WINDOW 3 24 0 Left 0 SYMATTR InstName D4 SYMATTR Value 1N5819 SYMATTR Description Diode SYMATTR Type diode SYMBOL Misc\\battery 3040 480 R0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR InstName V2 SYMATTR Value 5 SYMBOL res 1136 -464 R0 SYMATTR InstName R27 SYMATTR Value 1k SYMBOL polcap 1264 -192 R0 SYMATTR InstName C10 SYMATTR Value 100u SYMBOL res 752 352 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R28 SYMATTR Value 1k SYMBOL cap -16 -48 R0 SYMATTR InstName C11 SYMATTR Value 20p SYMBOL res 112 -528 R0 SYMATTR InstName R2 SYMATTR Value 10k SYMBOL polcap -144 -144 R0 SYMATTR InstName C4 SYMATTR Value 47u SYMATTR SpiceLine Rser=0.5 SYMBOL res 2864 160 R0 SYMATTR InstName R29 SYMATTR Value 1k SYMBOL res 3040 48 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R30 SYMATTR Value 100 SYMBOL Opamps\\TL072 2080 160 R0 SYMATTR InstName U1 SYMBOL Opamps\\TL072 2192 -112 R0 SYMATTR InstName U3 SYMBOL cap 1632 -240 R0 SYMATTR InstName C12 SYMATTR Value 330p SYMBOL cap 1840 448 R0 SYMATTR InstName C13 SYMATTR Value 440p SYMBOL cap 192 -16 R0 SYMATTR InstName C14 SYMATTR Value 2p TEXT -432 680 Left 0 !.tran 1 TEXT 2248 -280 Left 0 ;47Kohm x 2 TEXT 1520 72 Left 0 ;2SC1815GR TEXT 1176 -216 Left 0 ;2SA1015GR TEXT 1792 -32 Left 0 ;2SA1015GR TEXT 808 416 Left 0 ;Unknown Sw.Diode TEXT 808 544 Left 0 ;Unknown Sw.Diode TEXT 240 344 Left 0 ;2SC1815GR TEXT 408 632 Left 0 ;use model from:\n2SK30GR, 2SA1015GR, 2SC1815GR: http://www.madlabo.com/mad/edat/spice/model/index.htm\nKSA1015GR, KSC1815GR: ON Semiconductor\nOpamps, Comparators: TI\nLEDs: ROHM TEXT 2224 -40 Left 0 ;NJM072D TEXT 2088 224 Left 0 ;NJM072D TEXT 2440 368 Left 0 ;NJM2903 TEXT 2528 536 Left 0 ;NJM2903 TEXT -120 -112 Left 0 ;............................. TEXT -96 -128 Left 0 ;Test signal circuit. TEXT -120 56 Left 0 ;............................. TEXT -368 256 Left 0 ;LM317 reg. In=24V, Out=20V TEXT 144 -56 Left 0 ;S6775 TEXT 2288 168 Left 0 ;{R15,R20}=VR10K-B TEXT 2816 -48 Left 0 ;R30: Power Line protect\nUnder debugging. TEXT 2784 616 Left 0 ;Draw: FTechWorks 2011.8.20 TEXT 2696 520 Left 0 ;To Pi.SP TEXT 2712 40 Left 0 ;To Pi.SP TEXT 1656 -280 Left 0 ;Fc=100KHz TEXT 1784 264 Left 0 ;Fc=100KHz: (C13=393pF) TEXT 1888 312 Left 0 ;In real circuit.\nVcmpofs-Vcompin=-60.8mV