* SPICE netlist
C1 OUT 0 4.7 Rser=5m
M2 N010 N008 OUT OUT FDS4685
Cbat N010 0 2.5 ic=2.78 Rser=200m
R3 N012 N013 10K
V2 IN 0 PWL(1m 0 +1u 5)
C4 N009 0 0.1
R4 N013 0 10K
R5 0 N015 66.5K
R6 N011 0 2K
R7 OUT 0 100
R8 IN N006 10K
R2 N005 OUT 1K
L1 N002 N003 6.8
C2 N003 0 22
M1 N003 N005 OUT OUT FDS4685
R9 N016 0 40.2K
C3 N007 0 270p Rser=59K
V4 N001 0 PWL(7 0 +10u 12)
R1 N004 N001 499K
C5 N004 0 200p
R10 OUT N014 1K
D1 N014 N017 LXHL-BW02
XU1 MP_01 NC_02 N016 N007 N013 N012 N005 N017 N015 N008 N010 IN OUT N011 N006 NC_03 N009 N003 MP_04 N002 N001 N004 0 LTC4090 L1=6.8uH TerminationCycles=400 ;pnba )PG)Rt)Vc)NTC)Vntc)_HVPR)_CHRG)PROG)Gate)BAT)IN)OUT)CLPROG)HPWR)SUSP)Timer)HVout))SW)HVin)HVen)GND
.tran 11

* LTspice schematic (.asc)
Version 4
SHEET 1 1696 832
WIRE -544 -416 -848 -416
WIRE -224 -416 -544 -416
WIRE 272 -416 224 -416
WIRE 448 -416 352 -416
WIRE 544 -416 448 -416
WIRE -848 -400 -848 -416
WIRE 544 -400 544 -416
WIRE -544 -336 -544 -416
WIRE -528 -336 -544 -336
WIRE -432 -336 -448 -336
WIRE -224 -336 -432 -336
WIRE -432 -320 -432 -336
WIRE 544 -320 544 -336
WIRE -848 -304 -848 -320
WIRE 448 -304 448 -416
WIRE 448 -304 224 -304
WIRE 448 -288 448 -304
WIRE -224 -256 -352 -256
WIRE -432 -240 -432 -256
WIRE 304 -208 224 -208
WIRE 400 -208 304 -208
WIRE 304 -192 304 -208
WIRE -352 -176 -352 -256
WIRE -352 -176 -848 -176
WIRE -320 -176 -352 -176
WIRE -224 -176 -240 -176
WIRE -848 -160 -848 -176
WIRE -336 -96 -352 -96
WIRE -224 -96 -272 -96
WIRE 304 -96 304 -112
WIRE 304 -96 224 -96
WIRE 448 -96 448 -192
WIRE 448 -96 304 -96
WIRE 656 -96 448 -96
WIRE 704 -96 656 -96
WIRE 848 -96 704 -96
WIRE 704 -80 704 -96
WIRE 848 -80 848 -96
WIRE -848 -64 -848 -80
WIRE 448 -32 448 -96
WIRE 400 -16 224 -16
WIRE 704 16 704 -16
WIRE 848 16 848 0
WIRE -336 80 -352 80
WIRE -224 80 -272 80
WIRE 448 80 448 64
WIRE 448 80 224 80
WIRE 448 96 448 80
WIRE 656 96 656 -96
WIRE -336 176 -368 176
WIRE -224 176 -256 176
WIRE 256 176 224 176
WIRE 368 176 336 176
WIRE 448 176 448 160
WIRE 656 224 656 176
WIRE -336 256 -368 256
WIRE -224 256 -256 256
WIRE 368 256 368 176
WIRE 368 256 224 256
WIRE 400 256 368 256
WIRE 496 256 480 256
WIRE -336 336 -368 336
WIRE -224 336 -256 336
WIRE 656 336 656 288
WIRE 656 336 224 336
WIRE 256 416 224 416
FLAG 256 416 0
FLAG 704 16 0
FLAG -848 -64 0
FLAG 448 176 0
FLAG -352 80 0
FLAG 496 256 0
FLAG -368 256 0
FLAG -368 176 0
FLAG 848 16 0
FLAG -848 -176 IN
FLAG 848 -96 OUT
FLAG 544 -320 0
FLAG -368 336 0
FLAG -352 -96 0
FLAG -848 -304 0
FLAG -432 -240 0
SYMBOL cap 688 -80 R0
SYMATTR Value 4.7
SYMATTR SpiceLine Rser=5m
SYMATTR InstName C1
SYMBOL pmos 400 64 M180
SYMATTR InstName M2
SYMATTR Value FDS4685
SYMBOL cap 432 96 R0
SYMATTR Value 2.5
SYMATTR Value2 ic=2.78
SYMATTR SpiceLine Rser=200m
SYMATTR InstName Cbat
SYMBOL res 240 192 R270
SYMATTR InstName R3
SYMATTR Value 10K
SYMBOL voltage -848 -176 R0
SYMATTR InstName V2
SYMATTR Value PWL(1m 0 +1u 5)
SYMBOL cap -272 64 R90
SYMATTR InstName C4
SYMATTR Value 0.1
SYMBOL res 384 272 R270
SYMATTR InstName R4
SYMATTR Value 10K
SYMBOL res -352 240 M90
SYMATTR InstName R5
SYMATTR Value 66.5K
SYMBOL res -240 160 R90
SYMATTR InstName R6
SYMATTR Value 2K
SYMBOL res 832 -96 R0
SYMATTR InstName R7
SYMATTR Value 100
SYMBOL res -336 -192 M90
SYMATTR InstName R8
SYMATTR Value 10K
SYMBOL res 288 -208 R0
SYMATTR InstName R2
SYMATTR Value 1K
SYMBOL ind 256 -400 R270
SYMATTR InstName L1
SYMATTR Value 6.8
SYMBOL cap 528 -400 R0
SYMATTR InstName C2
SYMATTR Value 22
SYMBOL pmos 400 -288 R0
SYMATTR InstName M1
SYMATTR Value FDS4685
SYMBOL res -240 320 R90
SYMATTR InstName R9
SYMATTR Value 40.2K
SYMBOL cap -272 -112 R90
SYMATTR InstName C3
SYMATTR Value 270p
SYMATTR SpiceLine Rser=59K
SYMBOL voltage -848 -416 R0
SYMATTR InstName V4
SYMATTR Value PWL(7 0 +10u 12)
SYMBOL res -432 -352 R90
SYMATTR InstName R1
SYMATTR Value 499K
SYMBOL cap -448 -320 R0
SYMATTR InstName C5
SYMATTR Value 200p
SYMBOL res 640 80 R0
SYMATTR InstName R10
SYMATTR Value 1K
SYMBOL LED 640 224 R0
SYMATTR InstName D1
SYMATTR Value LXHL-BW02
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL LTC4090 0 0 R0
SYMATTR InstName U1