* SPICE netlist
MQ1 N001 N002 OUT OUT FDS4685
C1 OUT 0 4.7 Rser=5m
R1 OUT N006 1K
D1 N006 N010 LXHL-BW02
R2 OUT N002 5.1K
MQ2 N004 N005 OUT OUT FDS4685
C2 N004 0 2.5 ic=2.78 Rser=200m
R3 N012 N013 10K
V1 N001 0 PWL(0 0 7 0 +10u 5)
V2 N003 0 PWL(0 0 1m 0 +1u 5)
C3 N011 0 0.1
R4 N013 0 10K
R5 0 N008 66.5K
R6 N007 0 2K
R7 N003 N009 10K
Rload OUT 0 250
XU1 N003 OUT N007 N009 NC_01 N011 N001 N013 N012 N002 N010 N008 N005 N004 0 LTC4085-3 TerminationCycles=392 ;pnba IN)OUT)CLPROG)HPWR)SUSP)Timer)Wall)NTC)Vntc)_ACPR)_CHRG)PROG)Gate)BAT)GND
.tran 10

* LTspice schematic (.asc)
Version 4
SHEET 1 1696 768
WIRE 688 -384 -320 -384
WIRE 272 -336 -848 -336
WIRE 464 -336 368 -336
WIRE 608 -336 464 -336
WIRE 688 -336 688 -384
WIRE 688 -336 608 -336
WIRE 848 -336 688 -336
WIRE 688 -320 688 -336
WIRE 848 -320 848 -336
WIRE 608 -256 608 -336
WIRE 352 -240 352 -288
WIRE 368 -240 352 -240
WIRE 464 -240 464 -336
WIRE 464 -240 448 -240
WIRE 688 -224 688 -256
WIRE 848 -224 848 -240
WIRE -464 -208 -800 -208
WIRE -304 -208 -464 -208
WIRE 320 -208 144 -208
WIRE -800 -192 -800 -208
WIRE 464 -144 464 -240
WIRE -320 -128 -320 -384
WIRE -304 -128 -320 -128
WIRE 416 -128 144 -128
WIRE 608 -128 608 -176
WIRE -800 -96 -800 -112
WIRE -400 -48 -416 -48
WIRE -304 -48 -320 -48
WIRE 160 -48 144 -48
WIRE 256 -48 240 -48
WIRE 320 -16 320 -208
WIRE 464 -16 464 -48
WIRE 464 -16 320 -16
WIRE -464 32 -464 -208
WIRE -432 32 -464 32
WIRE -304 32 -352 32
WIRE 608 32 608 -64
WIRE 608 32 144 32
WIRE 464 64 464 -16
WIRE 352 112 352 -240
WIRE 352 112 144 112
WIRE 464 160 464 128
WIRE -384 192 -416 192
WIRE -304 192 -320 192
WIRE 160 192 144 192
WIRE 256 192 240 192
WIRE -848 272 -848 -336
WIRE -304 272 -848 272
WIRE 256 272 256 192
WIRE 256 272 144 272
WIRE -848 288 -848 272
WIRE 256 288 256 272
WIRE -80 352 -80 320
WIRE -848 384 -848 368
WIRE 256 384 256 368
FLAG -80 352 0
FLAG 688 -224 0
FLAG -848 384 0
FLAG -800 -96 0
FLAG 464 160 0
FLAG -416 192 0
FLAG 256 384 0
FLAG 256 -48 0
FLAG -416 -48 0
FLAG 848 -224 0
FLAG 848 -336 OUT
SYMBOL pmos 272 -288 R270
SYMATTR InstName Q1
SYMATTR Value FDS4685
SYMBOL cap 672 -320 R0
SYMATTR Value 4.7
SYMATTR SpiceLine Rser=5m
SYMATTR InstName C1
SYMBOL res 592 -272 R0
SYMATTR InstName R1
SYMATTR Value 1K
SYMBOL LED 592 -128 R0
SYMATTR InstName D1
SYMATTR Value LXHL-BW02
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 464 -256 R90
SYMATTR InstName R2
SYMATTR Value 5.1K
SYMBOL pmos 416 -48 M180
SYMATTR InstName Q2
SYMATTR Value FDS4685
SYMBOL cap 448 64 R0
SYMATTR Value 2.5
SYMATTR Value2 ic=2.78
SYMATTR SpiceLine Rser=200m
SYMATTR InstName C2
SYMBOL res 144 208 R270
SYMATTR InstName R3
SYMATTR Value 10K
SYMBOL voltage -848 272 R0
SYMATTR InstName V1
SYMATTR Value PWL(0 0 7 0 +10u 5)
SYMBOL voltage -800 -208 R0
SYMATTR InstName V2
SYMATTR Value PWL(0 0 1m 0 +1u 5)
SYMBOL cap -320 176 R90
SYMATTR InstName C3
SYMATTR Value 0.1
SYMBOL res 240 272 R0
SYMATTR InstName R4
SYMATTR Value 10K
SYMBOL res 256 -64 R90
SYMATTR InstName R5
SYMATTR Value 66.5K
SYMBOL res -304 -64 R90
SYMATTR InstName R6
SYMATTR Value 2K
SYMBOL res -448 16 M90
SYMATTR InstName R7
SYMATTR Value 10K
SYMBOL res 832 -336 R0
SYMATTR InstName Rload
SYMATTR Value 250
SYMBOL LTC4085-3 -80 32 R0
SYMATTR InstName U1