* SPICE netlist
V1 5V 0 5V
V2 lat 0 PWL(0 0 .024 3.3 .027 0)
XU1 N008 N007 5V 0 nFault LM2901 ;pnba In+)In-)V+)V-)OUT
V4 N008 0 2.5
R4 3V3 nFault 10k
R1 lat N007 10k
M1 N007 N004 3V3 3V3 BSS84
R2 3V3 N004 10k
M2 N004 EN nFault nFault BSP89
V3 EN 0 PULSE(0 3.3 5m 0.001m 0.001m 5m 10m)
M3 N006 3V3 nFault nFault BSP89
R3 N001 N003 1k
R5 CP N001 100k
V5 VBAT 0 12
M4 VBAT N001 gate gate BSS84
V6 CP VBAT 13
R6 gate CP 4k
M5 N005 3V3 EN EN BSP89
R7 N001 N002 1k
V7 3V3 0 3.3
D1 N003 N006 RB162MM-30
D2 N002 N005 RB162MM-30
C1 nFault 0 10n
.tran .03
.SUBCKT LM2901 1 2 3 4 5
F1 9 3 V1 1
IEE 3 7 DC 100.0E-6
VI1 21 1 DC .75
VI2 22 2 DC .75
Q1 9 21 7 QIN
Q2 8 22 7 QIN
Q3 9 8 4 QMO
Q4 8 8 4 QMI
E1 10 4 9 4 1
V1 10 11 DC 0
Q5 5 11 4 QOC
DP 4 3 DX
RP 3 4 50.00E3


* LTspice schematic (.asc)
Version 4
SHEET 1 1952 816
WIRE -688 -392 -688 -408
WIRE -624 -392 -688 -392
WIRE -496 -392 -544 -392
WIRE -464 -392 -496 -392
WIRE -688 -376 -688 -392
WIRE -496 -296 -496 -392
WIRE -688 -280 -688 -296
WIRE -688 -280 -880 -280
WIRE -544 -280 -688 -280
WIRE -176 -184 -336 -184
WIRE 16 -184 -176 -184
WIRE 224 -184 16 -184
WIRE -880 -152 -880 -200
WIRE -688 -152 -688 -200
WIRE 224 -88 224 -184
WIRE -176 -72 -176 -184
WIRE 16 -72 16 -104
WIRE 176 -72 16 -72
WIRE -880 -56 -880 -88
WIRE -688 -56 -688 -88
WIRE 16 8 16 -72
WIRE -928 24 -976 24
WIRE -736 24 -768 24
WIRE -384 88 -400 88
WIRE -32 88 -384 88
WIRE 224 88 224 8
WIRE 224 88 176 88
WIRE 320 88 224 88
WIRE 416 88 400 88
WIRE -880 104 -880 40
WIRE -688 104 -688 40
WIRE -608 104 -688 104
WIRE -528 104 -608 104
WIRE -176 104 -176 8
WIRE -176 104 -528 104
WIRE 16 104 -176 104
WIRE 112 104 16 104
WIRE -528 120 -528 104
WIRE 304 120 176 120
WIRE -400 136 -400 88
WIRE -528 216 -528 184
WIRE 304 232 304 120
WIRE 192 328 192 312
FLAG 480 -232 0
FLAG 480 -312 5V
FLAG 192 408 0
FLAG 192 312 lat
FLAG 144 72 5V
FLAG 144 136 0
FLAG 304 312 0
FLAG 416 88 lat
FLAG -400 216 0
FLAG -608 104 nFault
FLAG 832 -232 0
FLAG 832 -312 VBAT
FLAG -688 -408 CP
FLAG -384 88 EN
FLAG 640 -312 CP
FLAG -464 -392 gate
FLAG -496 -200 VBAT
FLAG 640 -232 VBAT
FLAG 976 -232 0
FLAG 976 -312 3V3
FLAG -976 24 3V3
FLAG -880 104 EN
FLAG -336 -184 3V3
FLAG -768 24 3V3
FLAG -528 216 0
SYMBOL voltage 480 -328 R0
SYMATTR InstName V1
SYMATTR Value 5V
SYMBOL voltage 192 312 R0
SYMATTR InstName V2
SYMATTR Value PWL(0 0 .024 3.3 .027 0)
SYMBOL Opamps\\UniversalOpamp2 144 104 M0
SYMATTR Value LM2901
SYMATTR InstName U1
SYMATTR InstName ""
SYMATTR Value2 ""
SYMATTR SpiceLine ""
SYMATTR SpiceLine2 ""
SYMBOL voltage 304 216 R0
SYMATTR InstName V4
SYMATTR Value 2.5
SYMBOL res -192 -88 R0
SYMATTR InstName R4
SYMATTR Value 10k
SYMBOL res 416 72 R90
SYMATTR InstName R1
SYMATTR Value 10k
SYMBOL pmos 176 8 M180
SYMATTR InstName M1
SYMATTR Value BSS84
SYMBOL res 0 -200 R0
SYMATTR InstName R2
SYMATTR Value 10k
SYMBOL nmos -32 8 R0
SYMATTR InstName M2
SYMATTR Value BSP89
SYMBOL voltage -400 120 R0
SYMATTR InstName V3
SYMATTR Value PULSE(0 3.3 5m 0.001m 0.001m 5m 10m)
SYMBOL nmos -736 -56 R0
SYMATTR InstName M3
SYMATTR Value BSP89
SYMBOL res -704 -296 R0
SYMATTR InstName R3
SYMATTR Value 1k
SYMBOL res -704 -392 R0
SYMATTR InstName R5
SYMATTR Value 100k
SYMBOL voltage 832 -328 R0
SYMATTR InstName V5
SYMATTR Value 12
SYMBOL pmos -544 -200 M180
SYMATTR InstName M4
SYMATTR Value BSS84
SYMBOL voltage 640 -328 R0
SYMATTR InstName V6
SYMATTR Value 13
SYMBOL res -528 -408 R90
SYMATTR InstName R6
SYMATTR Value 4k
SYMBOL nmos -928 -56 R0
SYMATTR InstName M5
SYMATTR Value BSP89
SYMBOL res -896 -296 R0
SYMATTR InstName R7
SYMATTR Value 1k
SYMBOL voltage 976 -328 R0
SYMATTR InstName V7
SYMATTR Value 3.3
SYMBOL schottky -704 -152 R0
SYMATTR InstName D1
SYMATTR Value RB162MM-30
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL schottky -896 -152 R0
SYMATTR InstName D2
SYMATTR Value RB162MM-30
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL cap -544 120 R0
SYMATTR InstName C1
SYMATTR Value 10n