* SPICE netlist
MQ1 N002 N005 N003 N003 Si4864DY
R1 N001 N002 5m
R2 N001 N007 34K
R3 N010 N007 1.74K
R4 N010 0 2.67K
R5 N003 N008 25.1K
R6 0 N008 3.57K
R7 N003 N011 24K
C1 N014 0 .068
C2 N015 0 .068
C3 N016 0 4
V1 N012 0 PWL(0 3.1 1 3.1 1.0001 3.1)
V2 N001 0 PWL(0 0 10u 0 100u 12 6 12)
C4 N003 0 2000
R8 0 N003 10
MQ2 N003 N006 N004 N004 Si4864DY
V3 N006 0 PWL(0 0 4 0 4.0001 12)
R9 N005 N009 10
R10 0 N004 .05
V4 N013 0 PWL(0 3.1 1 3.1 1.0001 0 1.2 0 1.20001 0)
XU1 N007 N010 N014 0 N012 N013 N016 N015 N011 N008 N003 N009 N002 N001 N001 LTC4215 uvautoretry=1 ovautoretry=1 ocautoretry=0 ;pnba UV)OV)SS)GND)ON)_EN)Timer)Vcc)GPIO)FB)Source)Gate)Sense-)Sense+)Vdd
.tran 16

* LTspice schematic (.asc)
Version 4
SHEET 1 1952 544
WIRE -576 -272 -976 -272
WIRE -288 -272 -576 -272
WIRE -176 -272 -288 -272
WIRE -160 -272 -176 -272
WIRE -64 -272 -80 -272
WIRE -32 -272 -64 -272
WIRE 160 -272 64 -272
WIRE 368 -272 160 -272
WIRE 496 -272 368 -272
WIRE 592 -272 496 -272
WIRE 704 -272 592 -272
WIRE 784 -272 704 -272
WIRE 976 -272 880 -272
WIRE -976 -256 -976 -272
WIRE 592 -256 592 -272
WIRE 704 -256 704 -272
WIRE 976 -256 976 -272
WIRE -576 -240 -576 -272
WIRE 368 -240 368 -272
WIRE 48 -192 48 -224
WIRE 864 -176 864 -224
WIRE -976 -160 -976 -176
WIRE 592 -160 592 -192
WIRE 704 -160 704 -176
WIRE 976 -160 976 -176
WIRE -576 -144 -576 -160
WIRE -464 -144 -576 -144
WIRE 368 -144 368 -160
WIRE 368 -144 304 -144
WIRE 368 -112 368 -144
WIRE -576 -96 -576 -144
WIRE -288 -96 -288 -272
WIRE -176 -96 -176 -272
WIRE -64 -96 -64 -272
WIRE 48 -96 48 -112
WIRE 160 -96 160 -272
WIRE 496 -96 496 -272
WIRE 864 -80 864 -96
WIRE -464 -32 -464 -144
WIRE -384 -32 -464 -32
WIRE 304 -32 304 -144
WIRE 304 -32 272 -32
WIRE 368 -16 368 -32
WIRE -576 32 -576 -16
WIRE -384 32 -576 32
WIRE 496 32 496 -16
WIRE 496 32 272 32
WIRE -576 48 -576 32
WIRE -384 96 -464 96
WIRE 352 96 272 96
WIRE 352 112 352 96
WIRE -576 144 -576 128
WIRE -464 176 -464 96
WIRE -304 192 -304 176
WIRE 16 192 16 176
WIRE 176 192 176 176
WIRE -144 208 -144 176
WIRE 352 208 352 192
WIRE -464 272 -464 256
WIRE -304 272 -304 256
WIRE 16 272 16 256
WIRE 176 272 176 256
FLAG -576 144 0
FLAG -144 208 0
FLAG 368 -16 0
FLAG -304 272 0
FLAG 16 272 0
FLAG 176 272 0
FLAG -464 272 0
FLAG -976 -160 0
FLAG 592 -160 0
FLAG 704 -160 0
FLAG 976 -160 0
FLAG 864 -80 0
FLAG 352 208 0
SYMBOL nmos -32 -224 R270
SYMATTR InstName Q1
SYMATTR Value Si4864DY
SYMBOL res -176 -256 R270
SYMATTR InstName R1
SYMATTR Value 5m
SYMBOL res -592 -256 R0
SYMATTR InstName R2
SYMATTR Value 34K
SYMBOL res -592 0 M180
SYMATTR InstName R3
SYMATTR Value 1.74K
SYMBOL res -592 32 R0
SYMATTR InstName R4
SYMATTR Value 2.67K
SYMBOL res 352 -256 R0
SYMATTR InstName R5
SYMATTR Value 25.1K
SYMBOL res 352 -16 M180
SYMATTR InstName R6
SYMATTR Value 3.57K
SYMBOL res 480 -112 R0
SYMATTR InstName R7
SYMATTR Value 24K
SYMBOL cap -320 192 R0
SYMATTR InstName C1
SYMATTR Value .068
SYMBOL cap 0 192 R0
SYMATTR InstName C2
SYMATTR Value .068
SYMBOL cap 160 192 R0
SYMATTR InstName C3
SYMATTR Value 4
SYMBOL voltage -464 160 M0
SYMATTR InstName V1
SYMATTR Value PWL(0 3.1 1 3.1 1.0001 3.1)
SYMBOL voltage -976 -272 R0
SYMATTR InstName V2
SYMATTR Value PWL(0 0 10u 0 100u 12 6 12)
SYMBOL cap 576 -256 R0
SYMATTR InstName C4
SYMATTR Value 2000
SYMBOL res 688 -160 M180
SYMATTR InstName R8
SYMATTR Value 10
SYMBOL nmos 784 -224 R270
SYMATTR InstName Q2
SYMATTR Value Si4864DY
SYMBOL voltage 864 -192 R0
SYMATTR InstName V3
SYMATTR Value PWL(0 0 4 0 4.0001 12)
SYMBOL res 32 -208 R0
SYMATTR InstName R9
SYMATTR Value 10
SYMBOL res 960 -160 M180
SYMATTR InstName R10
SYMATTR Value .05
SYMBOL voltage 352 96 R0
SYMATTR InstName V4
SYMATTR Value PWL(0 3.1 1 3.1 1.0001 0 1.2 0 1.20001 0)
SYMBOL LTC4215 -64 32 R0
SYMATTR InstName U1