* SPICE netlist
V1 IN 0 PWL(0 0 100u 16)
R2 IN N004 499K
R3 N004 0 97.6K
C2 N010 0 .1
C3 N016 N019 22n
R4 N017 0 31.6K
C4 N018 0 .05
C5 N013 0 4.7
MQ1 N001 N005 N008 N008 BSH114
R5 N008 0 15m
R6 OUT N011 500m
MQ2 N014 N012 N011 N011 IRF9640
D1 N014 0 LXHL-BW02 N=9
R7 OUT N006 1Meg
R8 N006 0 22.6K
C6 OUT 0 2.2 x4 Rser=10m
L1 IN N001 22 Rser=20m
D2 N001 OUT PDS5100
R9 N019 0 1K
XU1 OUT N011 N012 0 N010 N009 N006 N016 N007 N007 N018 N017 N007 N007 NC_01 NC_02 MP_03 N008 N005 N013 MP_04 MP_05 IN N004 OUT N003 N002 N009 LT3796-1 ;pnba Isp)Isn)TG)GND)Ismon)FB2)FB1)Vc)CTRL)Vref)SS)RT)TGEN)PWM)_Fault)_Vmode))Sense)Gate)INTVcc)))Vin)EN/UVLO)Vs)Csn)Csp)Csout
R1 N009 0 40.2K
MQ3 N015 N012 N003 N003 IRF9640
D3 N015 0 LXHL-BW02 N=9
R10 OUT N003 500m
R11 OUT N002 10K
.tran 2m startup

* LTspice schematic (.asc)
Version 4
SHEET 1 1456 1088
WIRE 552 -544 -184 -544
WIRE -456 -496 -728 -496
WIRE -280 -496 -456 -496
WIRE 136 -496 -280 -496
WIRE 232 -496 216 -496
WIRE 312 -496 232 -496
WIRE 440 -496 376 -496
WIRE 552 -496 552 -544
WIRE 552 -496 440 -496
WIRE 600 -496 552 -496
WIRE -728 -480 -728 -496
WIRE -456 -480 -456 -496
WIRE 136 -480 -88 -480
WIRE 440 -480 440 -496
WIRE 600 -480 600 -496
WIRE 120 -464 8 -464
WIRE 232 -464 232 -496
WIRE -280 -448 -280 -496
WIRE -184 -448 -184 -544
WIRE -88 -448 -88 -480
WIRE 8 -448 8 -464
WIRE 600 -400 600 -416
WIRE -728 -384 -728 -400
WIRE -456 -384 -456 -400
WIRE -344 -384 -456 -384
WIRE 184 -384 72 -384
WIRE 440 -384 440 -400
WIRE 440 -384 392 -384
WIRE -456 -368 -456 -384
WIRE 440 -368 440 -384
WIRE -344 -288 -360 -288
WIRE 232 -288 232 -368
WIRE 232 -288 72 -288
WIRE -456 -272 -456 -288
WIRE 232 -272 232 -288
WIRE 440 -272 440 -288
WIRE -360 -192 -360 -288
WIRE -344 -192 -360 -192
WIRE 88 -192 72 -192
WIRE 232 -176 232 -192
WIRE 552 -144 552 -496
WIRE 728 -144 552 -144
WIRE -360 -96 -360 -192
WIRE -344 -96 -360 -96
WIRE 392 -96 392 -384
WIRE 392 -96 72 -96
WIRE 136 -64 136 -480
WIRE 616 -64 136 -64
WIRE 728 -64 728 -144
WIRE 728 -64 696 -64
WIRE -472 0 -488 0
WIRE -376 0 -392 0
WIRE -344 0 -376 0
WIRE 552 0 552 -144
WIRE 552 0 72 0
WIRE 728 16 728 -64
WIRE -456 96 -472 96
WIRE -344 96 -392 96
WIRE 552 96 552 80
WIRE 552 96 72 96
WIRE 120 128 120 -464
WIRE 728 128 728 96
WIRE 728 128 120 128
WIRE 648 160 440 160
WIRE 552 176 552 96
WIRE 728 176 728 128
WIRE 440 192 440 160
WIRE 440 192 72 192
WIRE 504 192 440 192
WIRE 648 192 648 160
WIRE 680 192 648 192
WIRE 88 288 72 288
WIRE 168 288 152 288
WIRE 552 304 552 272
WIRE 728 304 728 272
WIRE -360 368 -360 -96
WIRE -296 368 -296 352
WIRE -296 368 -360 368
WIRE -136 368 -136 352
WIRE -56 368 -56 352
WIRE -376 384 -376 0
WIRE -216 384 -216 352
WIRE -216 384 -376 384
WIRE 24 384 24 352
WIRE 72 384 24 384
WIRE 552 384 552 368
WIRE 728 384 728 368
WIRE 72 400 72 384
WIRE -136 448 -136 432
WIRE -56 464 -56 448
WIRE 72 480 72 464
WIRE -136 544 -136 528
FLAG -728 -384 0
FLAG -456 -272 0
FLAG -488 0 0
FLAG -472 96 0
FLAG -136 544 0
FLAG -56 464 0
FLAG 72 480 0
FLAG 168 288 0
FLAG 88 -192 0
FLAG 232 -176 0
FLAG 552 384 0
FLAG 440 -272 0
FLAG 600 -400 0
FLAG 600 -496 OUT
FLAG -728 -496 IN
FLAG 728 384 0
SYMBOL voltage -728 -496 R0
SYMATTR Value PWL(0 0 100u 16)
SYMATTR InstName V1
SYMBOL res -472 -496 R0
SYMATTR InstName R2
SYMATTR Value 499K
SYMBOL res -472 -384 R0
SYMATTR InstName R3
SYMATTR Value 97.6K
SYMBOL cap -392 80 R90
SYMATTR InstName C2
SYMATTR Value .1
SYMBOL cap -152 368 R0
SYMATTR InstName C3
SYMATTR Value 22n
SYMBOL res -72 352 R0
SYMATTR InstName R4
SYMATTR Value 31.6K
SYMBOL cap 56 400 R0
SYMATTR InstName C4
SYMATTR Value .05
SYMBOL cap 88 304 R270
SYMATTR InstName C5
SYMATTR Value 4.7
SYMBOL nmos 184 -464 R0
SYMATTR InstName Q1
SYMATTR Value BSH114
SYMBOL res 216 -288 R0
SYMATTR InstName R5
SYMATTR Value 15m
SYMBOL res 536 -16 R0
SYMATTR InstName R6
SYMATTR Value 500m
SYMBOL pmos 504 272 M180
SYMATTR InstName Q2
SYMATTR Value IRF9640
SYMBOL LED 536 304 R0
SYMATTR Value2 N=9
SYMATTR InstName D1
SYMATTR Value LXHL-BW02
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 424 -496 R0
SYMATTR InstName R7
SYMATTR Value 1Meg
SYMBOL res 424 -384 R0
SYMATTR InstName R8
SYMATTR Value 22.6K
SYMBOL cap 584 -480 R0
SYMATTR Value2 x4
SYMATTR Value 2.2
SYMATTR InstName C6
SYMATTR SpiceLine Rser=10m
SYMBOL ind 120 -480 R270
SYMATTR InstName L1
SYMATTR Value 22
SYMATTR SpiceLine Rser=20m
SYMBOL schottky 312 -480 R270
SYMATTR InstName D2
SYMATTR Value PDS5100
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res -152 432 R0
SYMATTR InstName R9
SYMATTR Value 1K
SYMBOL PowerProducts\\LT3796-1 -136 -48 R0
SYMATTR InstName U1
SYMBOL res -376 -16 R90
SYMATTR InstName R1
SYMATTR Value 40.2K
SYMBOL pmos 680 272 M180
SYMATTR InstName Q3
SYMATTR Value IRF9640
SYMBOL LED 712 304 R0
SYMATTR Value2 N=9
SYMATTR InstName D3
SYMATTR Value LXHL-BW02
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 712 0 R0
SYMATTR InstName R10
SYMATTR Value 500m
SYMBOL res 712 -80 R90
SYMATTR InstName R11
SYMATTR Value 10K