* SPICE netlist
M1 Batt+ N005 N001 N001 PMOS
M2 N001 N006 N002 N002 NMOS
M3 N002 N009 N003 N003 PMOS
M4 N003 N007 N004 N004 NMOS
M5 N007 N009 5V 5V PMOS
R1 N007 Batt+ 1Meg
V2 Batt+ 0 2.7
R2 N009 0 1Meg
XU1 1V8 N008 Batt+ 0 N005 LT1720 ;pnba In+)In-)V+)V-)OUT
XU2 1V8 N011 5V 0 N006 LT1720 ;pnba In+)In-)V+)V-)OUT
R3 N005 Batt+ 1Meg
R4 N006 0 1Meg
V1 5V 0 5
V3 1V8 0 1.8
R6 N008 0 1Meg
R8 N010 N008 100
R9 Batt+ N010 1Meg
R10 Batt+ N010 1Meg
R12 N011 0 10k
R14 N012 N011 1k
R15 Batt+ N012 10k
R16 Batt+ N012 10k
XU3 N014 Vtemp 5V 0 N013 LT1720 ;pnba In+)In-)V+)V-)OUT
XU4 Vtemp N016 5V 0 N017 LT1720 ;pnba In+)In-)V+)V-)OUT
R18 N014 0 1Meg
R20 N015 N014 1Meg
R21 Batt+ N015 1Meg
R22 Batt+ N015 1Meg
R23 0 Vtemp 1Meg
R24 Vtemp Batt+ 1Meg
R26 N016 0 1Meg
R28 N018 N016 100k
R30 Batt+ N018 1Meg
D1 N017 N009 D
D2 N013 N009 D
R5 N011 0 10k
R7 0 N004 100
.tran 1

* LTspice schematic (.asc)
Version 4.1
SHEET 1 1280 1392
WIRE -272 -680 -288 -680
WIRE -160 -680 -160 -696
WIRE -160 -680 -192 -680
WIRE -128 -680 -160 -680
WIRE 48 -680 -32 -680
WIRE 224 -680 144 -680
WIRE 416 -680 320 -680
WIRE 544 -680 512 -680
WIRE 640 -680 624 -680
WIRE -288 -664 -288 -680
WIRE 640 -664 640 -680
WIRE -48 -616 -48 -632
WIRE -16 -616 -48 -616
WIRE 128 -616 128 -632
WIRE 160 -616 128 -616
WIRE 496 -584 496 -632
WIRE 608 -584 496 -584
WIRE -16 -568 -16 -616
WIRE 160 -568 160 -616
WIRE -192 -536 -384 -536
WIRE 496 -536 496 -584
WIRE 608 -536 608 -584
WIRE -48 -520 -48 -616
WIRE -48 -520 -128 -520
WIRE -160 -472 -160 -488
WIRE 304 -456 304 -632
WIRE 336 -456 304 -456
WIRE 448 -456 336 -456
WIRE -464 -440 -512 -440
WIRE -384 -440 -384 -536
WIRE -336 -440 -384 -440
WIRE 496 -424 496 -440
WIRE 336 -408 336 -456
WIRE -592 -344 -592 -440
WIRE -512 -344 -512 -440
WIRE -464 -344 -512 -344
WIRE -384 -344 -384 -440
WIRE -336 -344 -384 -344
WIRE -256 -344 -256 -440
WIRE -224 -344 -256 -344
WIRE -224 -312 -224 -344
WIRE -192 -216 -384 -216
WIRE 128 -200 128 -616
WIRE 128 -200 -128 -200
WIRE -160 -152 -160 -168
WIRE -464 -136 -512 -136
WIRE -384 -136 -384 -216
WIRE -336 -136 -384 -136
WIRE 480 -120 464 -120
WIRE 464 -104 464 -120
WIRE -592 -40 -592 -136
WIRE -512 -40 -512 -136
WIRE -464 -40 -512 -40
WIRE -384 -40 -384 -136
WIRE -336 -40 -384 -40
WIRE -256 -40 -256 -136
WIRE -224 -40 -256 -40
WIRE -224 -8 -224 -40
WIRE 480 24 464 24
WIRE 464 40 464 24
WIRE -32 152 -128 152
WIRE 304 152 304 -456
WIRE 304 152 32 152
WIRE -192 168 -416 168
WIRE -160 200 -160 184
WIRE -496 232 -544 232
WIRE -416 232 -416 168
WIRE -368 232 -416 232
WIRE -624 328 -624 232
WIRE -544 328 -544 232
WIRE -496 328 -544 328
WIRE -416 328 -416 232
WIRE -368 328 -416 328
WIRE -288 328 -288 232
WIRE -256 328 -288 328
WIRE -256 360 -256 328
WIRE 80 360 80 344
WIRE 80 360 48 360
WIRE 112 360 80 360
WIRE 208 360 192 360
WIRE 208 376 208 360
WIRE -192 504 -416 504
WIRE -32 520 -128 520
WIRE 304 520 304 152
WIRE 304 520 32 520
WIRE -496 568 -544 568
WIRE -416 568 -416 504
WIRE -368 568 -416 568
WIRE -160 568 -160 552
WIRE -624 664 -624 568
WIRE -544 664 -544 568
WIRE -496 664 -544 664
WIRE -416 664 -416 568
WIRE -368 664 -416 664
WIRE -288 664 -288 568
WIRE -256 664 -288 664
WIRE -256 696 -256 664
FLAG -288 -664 0
FLAG 336 -328 0
FLAG 160 -488 0
FLAG -160 -232 5V
FLAG 496 -424 5V
FLAG 464 40 0
FLAG 560 24 5V
FLAG -160 -696 Batt+
FLAG -160 -552 Batt+
FLAG -160 -472 0
FLAG -160 -152 0
FLAG 464 -104 0
FLAG 560 -120 1V8
FLAG -192 -504 1V8
FLAG -192 -184 1V8
FLAG -592 -440 Batt+
FLAG -224 -312 0
FLAG -592 -136 Batt+
FLAG -224 -8 0
FLAG -624 232 Batt+
FLAG -256 360 0
FLAG -624 568 Batt+
FLAG -256 696 0
FLAG -32 360 Batt+
FLAG 208 376 0
FLAG -160 120 5V
FLAG -160 488 5V
FLAG -160 200 0
FLAG -160 568 0
FLAG 80 344 Vtemp
FLAG -192 536 Vtemp
FLAG -192 136 Vtemp
FLAG 640 -664 0
FLAG -16 -488 Batt+
FLAG 608 -456 Batt+
SYMBOL pmos -128 -632 R270
SYMATTR InstName M1
SYMBOL nmos 48 -632 R270
SYMATTR InstName M2
SYMBOL pmos 224 -632 R270
SYMATTR InstName M3
SYMBOL nmos 416 -632 R270
SYMATTR InstName M4
SYMBOL pmos 448 -536 R0
SYMATTR InstName M5
SYMBOL res 592 -552 R0
SYMATTR InstName R1
SYMATTR Value 1Meg
SYMBOL voltage -176 -680 R90
SYMATTR InstName V2
SYMATTR Value 2.7
SYMBOL res 320 -424 R0
SYMATTR InstName R2
SYMATTR Value 1Meg
SYMBOL Comparators\\LT1720 -160 -584 R0
SYMATTR InstName U1
SYMBOL Comparators\\LT1720 -160 -264 R0
SYMATTR InstName U2
SYMBOL res -32 -584 R0
SYMATTR InstName R3
SYMATTR Value 1Meg
SYMBOL res 144 -584 R0
SYMATTR InstName R4
SYMATTR Value 1Meg
SYMBOL voltage 576 24 R90
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL voltage 576 -120 R90
SYMATTR InstName V3
SYMATTR Value 1.8
SYMBOL res -352 -328 R270
SYMATTR InstName R6
SYMATTR Value 1Meg
SYMBOL res -480 -328 R270
SYMATTR InstName R8
SYMATTR Value 100
SYMBOL res -608 -424 R270
SYMATTR InstName R9
SYMATTR Value 1Meg
SYMBOL res -608 -328 R270
SYMATTR InstName R10
SYMATTR Value 1Meg
SYMBOL res -352 -24 R270
SYMATTR InstName R12
SYMATTR Value 10k
SYMBOL res -480 -24 R270
SYMATTR InstName R14
SYMATTR Value 1k
SYMBOL res -608 -120 R270
SYMATTR InstName R15
SYMATTR Value 10k
SYMBOL res -608 -24 R270
SYMATTR InstName R16
SYMATTR Value 10k
SYMBOL Comparators\\LT1720 -160 88 R0
SYMATTR InstName U3
SYMBOL Comparators\\LT1720 -160 456 R0
SYMATTR InstName U4
SYMBOL res -384 344 R270
SYMATTR InstName R18
SYMATTR Value 1Meg
SYMBOL res -512 344 R270
SYMATTR InstName R20
SYMATTR Value 1Meg
SYMBOL res -640 248 R270
SYMATTR InstName R21
SYMATTR Value 1Meg
SYMBOL res -640 344 R270
SYMATTR InstName R22
SYMATTR Value 1Meg
SYMBOL res 208 344 R90
SYMATTR InstName R23
SYMATTR Value 1Meg
SYMBOL res 64 344 R90
SYMATTR InstName R24
SYMATTR Value 1Meg
SYMBOL res -384 680 R270
SYMATTR InstName R26
SYMATTR Value 1Meg
SYMBOL res -512 680 R270
SYMATTR InstName R28
SYMATTR Value 100k
SYMBOL res -640 680 R270
SYMATTR InstName R30
SYMATTR Value 1Meg
SYMBOL diode -32 536 R270
SYMATTR InstName D1
SYMBOL diode -32 168 R270
SYMATTR InstName D2
SYMBOL res -352 -120 R270
SYMATTR InstName R5
SYMATTR Value 10k
SYMBOL res 640 -696 R90
SYMATTR InstName R7
SYMATTR Value 100