* 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-1 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 784
WIRE 688 -392 -320 -392
WIRE 272 -344 -848 -344
WIRE 464 -344 368 -344
WIRE 608 -344 464 -344
WIRE 688 -344 688 -392
WIRE 688 -344 608 -344
WIRE 848 -344 688 -344
WIRE 688 -328 688 -344
WIRE 848 -328 848 -344
WIRE 352 -248 352 -296
WIRE 368 -248 352 -248
WIRE 464 -248 464 -344
WIRE 464 -248 448 -248
WIRE 608 -248 608 -344
WIRE 688 -232 688 -264
WIRE 848 -232 848 -248
WIRE -464 -200 -800 -200
WIRE -304 -200 -464 -200
WIRE 320 -200 144 -200
WIRE -800 -184 -800 -200
WIRE 464 -136 464 -248
WIRE -320 -120 -320 -392
WIRE -304 -120 -320 -120
WIRE 416 -120 144 -120
WIRE 608 -120 608 -168
WIRE -800 -88 -800 -104
WIRE -400 -40 -416 -40
WIRE -304 -40 -320 -40
WIRE 160 -40 144 -40
WIRE 256 -40 240 -40
WIRE 320 -8 320 -200
WIRE 464 -8 464 -40
WIRE 464 -8 320 -8
WIRE -464 40 -464 -200
WIRE -432 40 -464 40
WIRE -304 40 -352 40
WIRE 608 40 608 -56
WIRE 608 40 144 40
WIRE 464 72 464 -8
WIRE 352 120 352 -248
WIRE 352 120 144 120
WIRE 464 168 464 136
WIRE -384 200 -416 200
WIRE -304 200 -320 200
WIRE 160 200 144 200
WIRE 256 200 240 200
WIRE -848 280 -848 -344
WIRE -304 280 -848 280
WIRE 256 280 256 200
WIRE 256 280 144 280
WIRE -848 296 -848 280
WIRE 256 296 256 280
WIRE -80 360 -80 328
WIRE -848 392 -848 376
WIRE 256 392 256 376
FLAG -80 360 0
FLAG 688 -232 0
FLAG -848 392 0
FLAG -800 -88 0
FLAG 464 168 0
FLAG -416 200 0
FLAG 256 392 0
FLAG 256 -40 0
FLAG -416 -40 0
FLAG 848 -232 0
FLAG 848 -344 OUT
SYMBOL pmos 272 -296 R270
SYMATTR InstName Q1
SYMATTR Value FDS4685
SYMBOL cap 672 -328 R0
SYMATTR Value 4.7
SYMATTR SpiceLine Rser=5m
SYMATTR InstName C1
SYMBOL res 592 -264 R0
SYMATTR InstName R1
SYMATTR Value 1K
SYMBOL LED 592 -120 R0
SYMATTR InstName D1
SYMATTR Value LXHL-BW02
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 464 -264 R90
SYMATTR InstName R2
SYMATTR Value 5.1K
SYMBOL pmos 416 -40 M180
SYMATTR InstName Q2
SYMATTR Value FDS4685
SYMBOL cap 448 72 R0
SYMATTR Value 2.5
SYMATTR Value2 ic=2.78
SYMATTR SpiceLine Rser=200m
SYMATTR InstName C2
SYMBOL res 144 216 R270
SYMATTR InstName R3
SYMATTR Value 10K
SYMBOL voltage -848 280 R0
SYMATTR InstName V1
SYMATTR Value PWL(0 0 7 0 +10u 5)
SYMBOL voltage -800 -200 R0
SYMATTR InstName V2
SYMATTR Value PWL(0 0 1m 0 +1u 5)
SYMBOL cap -320 184 R90
SYMATTR InstName C3
SYMATTR Value 0.1
SYMBOL res 240 280 R0
SYMATTR InstName R4
SYMATTR Value 10K
SYMBOL res 256 -56 R90
SYMATTR InstName R5
SYMATTR Value 66.5K
SYMBOL res -304 -56 R90
SYMATTR InstName R6
SYMATTR Value 2K
SYMBOL res -448 24 M90
SYMATTR InstName R7
SYMATTR Value 10K
SYMBOL res 832 -344 R0
SYMATTR InstName Rload
SYMATTR Value 250
SYMBOL LTC4085-1 -80 40 R0
SYMATTR InstName U1