* SPICE netlist
L1 N002 N001 7
L2 OUT N003 .98
MQ1 N002 N011 N012 N012 Si7852DP
R1 N012 0 .006
C1 0 N023 .002 Rser=2K
C2 N016 N015 .1 Rser=330
C3 N007 N017 2200p
R3 N007 0 10K
D1 0 N007 BAT54
Q2 0 N007 N009 0 2N2907
MQ3 N003 N009 0 0 HAT2166H
Q4 N006 N007 N009 0 2N2222
C4 N006 0 1
D2 N003 N005 BAT54
R4 N005 N006 30
L3 0 N016 1500
L4 0 N017 1500
V1 N001 0 15
R5 N019 0 1.2K
C5 N021 0 .1
C6 N014 0 47p
R6 N020 0 150K
R7 N022 0 100K
R8 N018 0 20K
C7 OUT 0 330 Rser=5m
Q5 N010 N001 N004 0 2N3906
D3 N001 N004 1N4148
R9 N004 N002 20K
R10 0 N010 3K
R11 0 N008 40.2K
R12 N008 N001 287K
Rload OUT 0 1
XU1 N015 N001 N022 N020 0 N013 N014 N010 N023 N008 0 N012 N021 N019 N018 N011 0 LT3837 ;pnba SG)Vcc)Ton)ENDLY)SYNC)SFST)OSC)FB)Vc)UVLO)Sense-)Sense+)Ccmp)Rcmp)PGDLY)PG)GND
K1 L1 L2 1
K2 L3 L4 1
.tran 1m startup

* LTspice schematic (.asc)
Version 4
SHEET 1 1264 928
WIRE -216 -464 -360 -464
WIRE 56 -464 -216 -464
WIRE -360 -448 -360 -464
WIRE 56 -448 56 -464
WIRE 104 -448 56 -448
WIRE 536 -448 152 -448
WIRE 632 -448 536 -448
WIRE 104 -432 104 -448
WIRE 152 -432 152 -448
WIRE 536 -432 536 -448
WIRE 632 -432 632 -448
WIRE -360 -352 -360 -368
WIRE 104 -336 104 -352
WIRE 104 -336 56 -336
WIRE 152 -336 152 -352
WIRE 200 -336 152 -336
WIRE 536 -336 536 -368
WIRE 632 -336 632 -352
WIRE -488 -320 -616 -320
WIRE -120 -320 -488 -320
WIRE 56 -320 56 -336
WIRE 56 -320 -40 -320
WIRE -488 -304 -488 -320
WIRE 200 -304 200 -336
WIRE 232 -304 200 -304
WIRE 312 -304 296 -304
WIRE 408 -304 392 -304
WIRE 472 -304 408 -304
WIRE 472 -288 472 -304
WIRE -616 -272 -616 -320
WIRE 408 -272 408 -304
WIRE 200 -240 200 -304
WIRE 600 -240 536 -240
WIRE -488 -224 -488 -240
WIRE -488 -224 -552 -224
WIRE -216 -224 -216 -464
WIRE -216 -224 -488 -224
WIRE 408 -192 408 -208
WIRE -472 -176 -488 -176
WIRE -376 -176 -392 -176
WIRE -360 -176 -376 -176
WIRE -216 -176 -216 -224
WIRE -216 -176 -280 -176
WIRE 56 -160 56 -320
WIRE 472 -160 472 -192
WIRE 472 -160 248 -160
WIRE -376 -128 -376 -176
WIRE -216 -128 -216 -176
WIRE 200 -128 200 -144
WIRE 472 -128 472 -160
WIRE -616 -80 -616 -176
WIRE -472 -80 -616 -80
WIRE 8 -80 -120 -80
WIRE 600 -80 600 -240
WIRE 600 -80 536 -80
WIRE -616 -64 -616 -80
WIRE 472 -16 472 -32
WIRE -472 0 -488 0
WIRE 56 0 56 -64
WIRE 56 0 -120 0
WIRE -616 32 -616 16
WIRE -472 80 -488 80
WIRE 56 80 -120 80
WIRE 56 96 56 80
WIRE -552 160 -616 160
WIRE -472 160 -488 160
WIRE -8 160 -120 160
WIRE 200 160 56 160
WIRE 328 160 248 160
WIRE 440 160 392 160
WIRE 600 160 600 -80
WIRE 600 160 440 160
WIRE 200 176 200 160
WIRE 248 176 248 160
WIRE 440 176 440 160
WIRE 600 176 600 160
WIRE -600 240 -616 240
WIRE -472 240 -520 240
WIRE -104 240 -120 240
WIRE 24 240 -24 240
WIRE 200 272 200 256
WIRE 248 272 248 256
WIRE 440 272 440 256
WIRE 600 272 600 240
WIRE -568 320 -616 320
WIRE -472 320 -488 320
WIRE -56 320 -120 320
WIRE 24 320 8 320
WIRE -600 400 -616 400
WIRE -472 400 -520 400
WIRE -88 400 -120 400
WIRE 24 400 -24 400
WIRE -296 464 -296 448
FLAG 56 96 0
FLAG 24 400 0
FLAG 200 -128 0
FLAG 408 -192 0
FLAG 632 -336 0
FLAG 632 -448 OUT
FLAG 600 272 0
FLAG 440 272 0
FLAG 472 -16 0
FLAG 248 272 0
FLAG 200 272 0
FLAG -296 464 0
FLAG -360 -352 0
FLAG 24 240 0
FLAG 24 320 0
FLAG -616 160 0
FLAG -488 0 0
FLAG -616 320 0
FLAG -616 400 0
FLAG -616 240 0
FLAG 536 -336 0
FLAG -616 32 0
FLAG -488 -176 0
SYMBOL ind2 88 -336 M180
SYMATTR InstName L1
SYMATTR Value 7
SYMATTR Type ind
SYMBOL ind2 168 -448 M0
SYMATTR InstName L2
SYMATTR Value .98
SYMATTR Type ind
SYMBOL nmos 8 -160 R0
SYMATTR InstName Q1
SYMATTR Value Si7852DP
SYMBOL res 40 -16 R0
SYMATTR InstName R1
SYMATTR Value .006
SYMBOL cap -24 384 R90
SYMATTR InstName C1
SYMATTR Value .002
SYMATTR SpiceLine Rser=2K
SYMBOL cap 56 144 R90
SYMATTR InstName C2
SYMATTR Value .1
SYMATTR SpiceLine Rser=330
SYMBOL cap 392 144 R90
SYMATTR InstName C3
SYMATTR Value 2200p
SYMBOL res 424 160 R0
SYMATTR InstName R3
SYMATTR Value 10K
SYMBOL schottky 584 240 M180
SYMATTR InstName D1
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL pnp 536 -32 R180
SYMATTR InstName Q2
SYMATTR Value 2N2907
SYMBOL nmos 248 -240 M0
SYMATTR Value HAT2166H
SYMATTR InstName Q3
SYMBOL npn 536 -288 M0
SYMATTR InstName Q4
SYMATTR Value 2N2222
SYMBOL cap 392 -272 R0
SYMATTR Value 1
SYMATTR InstName C4
SYMBOL schottky 232 -288 R270
SYMATTR InstName D2
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 296 -288 R270
SYMATTR InstName R4
SYMATTR Value 30
SYMBOL ind2 184 272 M180
SYMATTR InstName L3
SYMATTR Value 1500
SYMATTR Type ind
SYMBOL ind2 264 272 R180
SYMATTR InstName L4
SYMATTR Value 1500
SYMATTR Type ind
SYMBOL voltage -360 -464 R0
SYMATTR InstName V1
SYMATTR Value 15
SYMBOL res -120 224 M90
SYMATTR InstName R5
SYMATTR Value 1.2K
SYMBOL cap -56 336 R270
SYMATTR InstName C5
SYMATTR Value .1
SYMBOL cap -488 144 R90
SYMATTR InstName C6
SYMATTR Value 47p
SYMBOL res -472 304 R90
SYMATTR InstName R6
SYMATTR Value 150K
SYMBOL res -504 384 R90
SYMATTR InstName R7
SYMATTR Value 100K
SYMBOL res -504 224 R90
SYMATTR InstName R8
SYMATTR Value 20K
SYMBOL cap 520 -432 R0
SYMATTR Value 330
SYMATTR InstName C7
SYMATTR SpiceLine Rser=5m
SYMBOL pnp -552 -176 R180
SYMATTR InstName Q5
SYMATTR Value 2N3906
SYMBOL diode -504 -240 M180
SYMATTR InstName D3
SYMATTR Value 1N4148
SYMBOL res -136 -304 R270
SYMATTR InstName R9
SYMATTR Value 20K
SYMBOL res -632 32 M180
SYMATTR InstName R10
SYMATTR Value 3K
SYMBOL res -488 -160 R270
SYMATTR InstName R11
SYMATTR Value 40.2K
SYMBOL res -376 -160 R270
SYMATTR InstName R12
SYMATTR Value 287K
SYMBOL res 616 -448 R0
SYMATTR InstName Rload
SYMATTR Value 1
SYMBOL LT3837 -296 160 R0
SYMATTR InstName U1