* SPICE netlist
R2 out 0 100k
V7 N015 0 PULSE(0 3.3 .01 1u 1u 5m 10m 5)
R6 N009 source 500k
V8 5v 0 7
R10 100v N002 .0005
E1 amp_raw 0 100v N002 200
XU2 N018 N016 5v 0 N011 LM2903B ;pnba In+)In-)V+)V-)OUT
V9 vref 0 1.15
M7 N012 N014 N011 N011 BSP89
M8 N016 N012 3v3_sw 3v3_sw BSS84
R11 N017 N016 1k
R12 3v3_sw N012 10k
C5 N016 0 .1n
R13 3v3_sw N011 10k
V11 3v3 0 3.3
M14 N002 N009 source source FDB2532
R14 N009 gate 1
R3 cp_out N001 .001
Q1 N001 N003 gate 0 2N5550
Q2 source N003 gate 0 2N5401
R8 N001 N007 100k
M1 N002 N009 source source FDB2532
M2 N002 N009 source source FDB2532
M4 N002 N009 source source FDB2532
M6 out N009 source source FDB2532
M9 out N009 source source FDB2532
M10 out N009 source source FDB2532
M11 out N009 source source FDB2532
S1 0 N006 N005 0 MYSW
V2 N005 0 PWL(0 0 22m 0 22.020m 5 24m 0)
L1 out N006 660n Rser=1m
D9 0 out MBRS1100
D5 out 0 Didl
I1 0 out PWL(0 0 25m 0 25.005m 40)
B1 out 0 V={V(R_Value)}*I(B1)
V4 R_Value 0 PWL(10m 100k 10.001m {start_res} 15m {end_res} 16m 100k)
R4 N018 vref 10k
R5 N018 N011 1Meg
B2 N017 0 V=If(V(amp_raw)<0,0,IF(V(amp_raw)>5,5,V(amp_raw)))
C4 out 0 10n
V1 3v3_sw 0 3.3
R16 N011 nFault 100k
M5 N013 N014 0 0 BSP89
R22 N015 0 10k
R23 N016 0 1k
Q3 N004 P001 source 0 2N5550
R1 N001 N004 24k
R7 P001 N008 24k
R17 N003 N004 100
M3 N007 N011 N013 N013 BSP89
R9 N014 N015 10k
V3 cp_out 100v 11
C1 N011 0 10n
V5 100v 0 100
D1 N007 N008 RB238T150
R15 NC_01 source 100k
.tran 50m
.SUBCKT LM2903B IN+ IN- Vcc GND OUT
X_U4 N21103 N858868 Prop_Delay
X_U2 IN-BUFF IN+BUFF N21168 V+_BUFFER V-_BUFFER INPUTRANGE
X_U5 N21237 GND N21168 0 V+_BUFFER V-_BUFFER VCC N858872 OUT Output_Stage
X_U6 GND V+_BUFFER V-_BUFFER VCC Supply_Buffer
X_U3 N785573 IN-BUFF N21103 V+_BUFFER V-_BUFFER N852568 HPA_COMPHYS
I_IS N843683 GND DC 550u
X_U7 N21237 0 V+_BUFFER V-_BUFFER Supply_Enable
X_U1 IN+ IN+BUFF IN- IN-BUFF Input_Buffer
I_IBP IN+ GND DC -3.5n
I_IBN IN- GND DC -3.5n
V_VOS N785573 IN+BUFF 0.37m
R_RIS N843683 VCC 1u TC=0,0
C_CINPL GND IN+ 0.5p TC=0,0
C_CINNL GND IN- 0.5p TC=0,0
C_CINPH IN+ VCC 0.5p TC=0,0
C_CINNH IN- VCC 0.5p TC=0,0
V_VHYST N852568 0 0
E_E1 N858872 V-_BUFFER N858868 V-_BUFFER 2
.SUBCKT Input_Buffer IN+ IN+_BUFF IN- IN-_BUFF
X_U1 IN+ IN- IN+_BUFF IN-_BUFF SUPPLY_BUFFER1
.SUBCKT Supply_Enable EN POR V+_BUFFER V-_BUFFER
X_U15 N780252 N780066 POR 1V 0 VCC_Range
X_U13 V+_BUFFER V-_BUFFER N780066 1V 0 Difference
V_VLOGIC 1V 0 1
V_VS_MIN_SET N780252 0 1.99
X_U5 N780066 N779976 N780086 1V 0 VCC_Range
V_VS_MAX_SET N779976 0 36.01
X_U16 N780086 POR EN 1V 0 ORGATE
.SUBCKT Supply_Buffer GND V+_BUFFER V-_BUFFER Vcc
X_U1 VCC GND V+_BUFFER V-_BUFFER SUPPLY_BUFFER1
.SUBCKT Output_Stage EN GND IN_RANGE POR V+_BUFFER V-_BUFFER Vcc VIN VOUT
X_SMID CONTROL_MID 0 N778484 MID Output_Stage_SMID
X_U3 VIN N774212 V+_BUFFER V-_BUFFER VCC N774290 DIGLEVSHIFT
X_U7 MID V+_BUFFER V-_BUFFER MID_SUPPLY
V_VLOGIC 1V 0 1
V_V1 VCC N774290 1
X_SHIZ CONTROL_HIZ 0 N778484 N778496 Output_Stage_SHIZ
X_U8 POR IN_RANGE EN EN CONTROL_HIZ 1V 0 4ORGATE
X_U9 CONTROL_HIZ N789513 1V 0 INVERTER
X_U10 N789513 POR CONTROL_MID 1V 0 ORGATE
L_L1 N778484 VOUT 1n
C_COUTH VOUT VCC 0.5p TC=0,0
C_COUTL GND VOUT 0.5p TC=0,0
X_SVOL N774212 N774290 GND N850209 Output_Stage_SVOL
R_ROUTL N850209 N778496 60 TC=0,0
.SUBCKT INPUTRANGE INN INP INRANGE V+_BUFFER V-_BUFFER
V_VCMNP N20415 V-_BUFFER -110m
V_VCMPN N202710 V+_BUFFER -2
X_U1 N20155 INP N20826 V+_BUFFER V-_BUFFER VINRANGE_393
V_VCMPP N20155 V+_BUFFER -2
V_VCMNN N20539 V-_BUFFER -110m
X_U21 N202710 INN N20833 V+_BUFFER V-_BUFFER VINRANGE_393
X_U22 INP N20415 N20840 V+_BUFFER V-_BUFFER VINRANGE_393
X_U23 INN N20539 N20531 V+_BUFFER V-_BUFFER VINRANGE_393
X_U24 N20826 N20833 N20840 N20531 INRANGE V+_BUFFER V-_BUFFER 4ORGATE
.SUBCKT Prop_Delay VIN VOUT
T_TPD N03175 0 VOUT 0 Z0=50 TD=1.22u
R_RT 0 VOUT 50 TC=0,0
R_RS N03175 VIN 50 TC=0,0
.subckt Output_Stage_SMID 1 2 3 4
S_SMID 3 4 1 2 _SMID
RS_SMID 1 2 1G
.subckt Output_Stage_SHIZ 1 2 3 4
S_SHIZ 3 4 1 2 _SHIZ
RS_SHIZ 1 2 1G
.subckt Output_Stage_SVOL 1 2 3 4
S_SVOL 3 4 1 2 _SVOL
RS_SVOL 1 2 1G
.SUBCKT ANDGATE 1 2 3 VDD VSS
E1 4 0 VALUE = { IF( ((V(1)> (V(VDD)+V(VSS))/2 ) & (V(2)> (V(VDD)+V(VSS))/2 )), V(VDD), V(VSS) ) }
R1 4 3 1
C1 3 0 1e-12
.SUBCKT HPA_COMPHYS INP INN OUT_OUT VDD VSS VHYS
EVMID VMID 0 VALUE = { ( V(VDD) + V(VSS) )/2 }
EVH VH 0 VALUE = { ( V(VHYS)/2) }
EINNNEW INNNEW 0 VALUE = { IF( ( V(OUT_OUT) < V(VMID) ),(V(INN) + (V(VH))),( V(INN) - V(VH) ) ) }
EOUT OUT 0 VALUE = { IF( ( V(INP) > V(INNNEW) ), V(VDD), V(VSS) ) }
R1 OUT OUT_OUT 1
C1 OUT_OUT 0 1e-12
.SUBCKT DIGLEVSHIFT 1 2 VDD_OLD VSS_OLD VDD_NEW VSS_NEW
E1 3 0 VALUE = { IF( V(1) < 1, V(VSS_NEW), V(VDD_NEW) ) }
R1 3 2 1
.SUBCKT ENABLE_LOGIC 1 2 OUT VDD VSS
EVMID VMID 0 VALUE = { ( V(VDD) + V(VSS) )/2 }
EOUT OUT 0 VALUE = { IF( ( V(1) > V(VMID) ), V(2), V(VSS) ) }
R1 OUT 2 1
C1 2 0 1e-12
.SUBCKT ENABLE_TLV7021 1 2 3 OUT VDD VSS
EVMID VMID 0 VALUE = { ( V(VDD) + V(VSS) )/2 }
EOUT OUT2 0 VALUE = { IF( ( V(1) > V(VMID) ), V(2), V(3) ) }
R1 OUT2 OUT 1
C1 OUT 0 1e-12
.SUBCKT INNNEWPOR 1 2 3 OUT VDD VSS
EVMID VMID 0 VALUE = { ( V(VDD) + V(VSS) )/2 }
EOUT OUT2 0 VALUE = { IF( ( V(1) < V(VMID) ), V(VSS), V(VDD) ) }
R1 OUT2 OUT 1
C1 OUT 0 1e-12
.SUBCKT INPNEWPOR 1 2 3 OUT VDD VSS
EVMID VMID 0 VALUE = { ( V(VDD) + V(VSS) )/2 }
EOUT OUT2 0 VALUE = { IF( ( V(1) < V(VMID) ), V(VDD), V(VSS) ) }
R1 OUT2 OUT 1
C1 OUT 0 1e-12
.SUBCKT VIN_INV 1 2 VDD VSS
E2 2 0 VALUE = { IF( V(1)> (V(VDD)+V(VSS))/2, V(VSS), V(VDD) ) }
C1 2 0 1e-12
.SUBCKT INVERTER 1 2 VDD VSS
E2 2 0 VALUE = { IF( V(1)> (V(VDD)+V(VSS))/2, V(VSS), V(VDD) ) }
C1 1 0 1e-12
.SUBCKT MID_SUPPLY OUT VDD VSS
EVMID VMID 0 VALUE = { ( V(VDD) + V(VSS) )/2 }
EOUT OUT 0 VALUE = {V(VMID)}
.SUBCKT ORGATE 1 2 3 VDD VSS
E1 4 0 VALUE = { IF( ((V(1)< (V(VDD)+V(VSS))/2 ) & (V(2)< (V(VDD)+V(VSS))/2 )), V(VSS), V(VDD) ) }
R1 4 3 1
C1 3 0 1e-12
.SUBCKT NOR_GATE 1 2 OUT VDD VSS
EOUT OUT 0 VALUE = { IF( ((V(1)< (V(VDD)+V(VSS))/2 ) & (V(2)< (V(VDD)+V(VSS))/2 )), V(VDD), V(VSS) ) }
R1 OUT 2 1
C1 OUT 0 1e-12
.SUBCKT ORGATE1701 1 2 3 4 OUT VDD VSS
EOUT OUT 0 VALUE = { IF( ((V(1)< (V(VDD)+V(VSS))/2 ) & (V(2)< (V(VDD)+V(VSS))/2 )), V(3), V(4) ) }
.SUBCKT PORCHECK 1 2 OUT VDD VSS
EOUT OUT 0 VALUE = { IF( ( V(2) < V(1) ), V(VSS), V(VDD) ) }
R1 OUT 2 1
C1 2 0 1e-12
.SUBCKT Difference 1 2 OUT VDD VSS
EOUT OUT1 0 VALUE = { V(1)- V(2)}
R1 OUT1 OUT 1
.SUBCKT SUPPLY_BUFFER1 1 2 VDD_NEW VSS_NEW
EVDD_NEW VDD_NEW 0 VALUE = {V(1)}
EVSS_NEW VSS_NEW 0 VALUE = {V(2)}
.SUBCKT VCC_Range 1 2 OUT VDD VSS
EOUT OUT2 0 VALUE = { IF( ( V(1) >= V(2) ), V(VDD), V(VSS) ) }
R1 OUT OUT2 1
C1 OUT 0 1e-12
.SUBCKT VINRANGE_393 1 2 OUT VDD VSS
EOUT OUT2 0 VALUE = { IF( ( V(1) >= V(2) ), V(VSS), V(VDD) ) }
R1 OUT2 OUT 1
C1 OUT 0 1e-12
.subckt SHUTDOWNCURRENT SHUTDOWN 2 3 OUT VDD VSS
EOUT OUT2 0 VALUE = {IF ((V(SHUTDOWN) > (V(VSS) + 0.4)), V(2), V(3))}
R1 OUT OUT2 1
C1 OUT 0 1e-12
.subckt SHUTDOWNOUTPUT DISABLE ENABLE SHUTDOWN VSS OUT
EOUT OUT 0 VALUE = {IF ((V(SHUTDOWN) <= (V(VSS) + 0.4)), V(DISABLE), V(ENABLE))}
C1 OUT 0 1e-12
.SUBCKT NORGATE 1 2 OUT VDD VSS
EOUT OUT2 0 VALUE = { IF( ((V(1)< (V(VDD)+V(VSS))/2 ) & (V(2)< (V(VDD)+V(VSS))/2 )), V(VDD), V(VSS) ) }
R1 OUT2 OUT 1
C1 OUT 0 1e-12
.SUBCKT LE_HYST LEHYST V- V-_BUF V+_BUF LATCH_OUT HYST_OUT
V_VLATCH N00729 V- 1.25
R_RPU N00729 LEHYST 40k TC=0,0
E_EIN VLE V-_BUF LEHYST V- 1
R_R1 V-_BUF LATCH_OUT 1k TC=0,0
R_R2 V-_BUF VLE 1k TC=0,0
R_R3 V-_BUF HYST_OUT 1k TC=0,0
E_ELATCH LATCH_OUT V-_BUF VALUE = { IF( V(VLE)<= 0.4, 0, 5 ) }
E_EHYST HYST_OUT V-_BUF TABLE {V(VLE)} = (0.4,0)
+(0.5,0.0636)
+(0.55,0.0636)
+(0.6,0.0636)
+(0.65,0.0636)
+(0.7,0.0635)
+(0.71,0.0636)
+(0.72,0.0635)
+(0.73,0.0636)
+(0.74,0.0634)
+(0.75,0.0635)
+(0.76,0.0638)
+(0.77,0.0637)
+(0.78,0.0637)
+(0.79,0.0637)
+(0.8,0.0636)
+(0.81,0.0636)
+(0.82,0.0636)
+(0.83,0.0636)
+(0.84,0.0425)
+(0.85,0.0411)
+(0.86,0.0398)
+(0.87,0.0386)
+(0.88,0.0371)
+(0.89,0.0359)
+(0.9,0.0347)
+(0.91,0.0334)
+(0.92,0.032)
+(0.93,0.0309)
+(0.94,0.0296)
+(1,0.0223)
+(1.05,0.0164)
+(1.1,0.0108)
+(1.15,0.0056)
+(1.2,0.0007)
+(1.25,0)
.SUBCKT IS_SET VCC VEE DISABLE VIEN VIDIS PBAD
GIS VCC1 VEE VALUE = { IF ( (V(PBAD) > 2.5V) , 1u , IF ( V(DISABLE) > 2.5, V(VIEN), V(VIDIS) ) ) }
RIS VCC1 VCC 1
.SUBCKT 4ORGATE 1 2 3 4 5 VDD VSS
E1 6 0 VALUE = { IF( ((V(1)> (V(VDD)+V(VSS))/2 ) | (V(2)> (V(VDD)+V(VSS))/2 ) | (V(3)> (V(VDD)+V(VSS))/2 ) | (V(4)> (V(VDD)+V(VSS))/2 )), V(VDD), V(VSS) ) }
R1 5 6 1
.param start_res=100
.param end_res 1

* LTspice schematic (.asc)
Version 4
SHEET 1 5056 1888
WIRE -1904 -928 -1904 -944
WIRE -1744 -928 -1904 -928
WIRE -1328 -928 -1664 -928
WIRE -1088 -928 -1328 -928
WIRE -832 -928 -1088 -928
WIRE -1904 -816 -1904 -848
WIRE -1904 -816 -1920 -816
WIRE 720 -752 -144 -752
WIRE -1920 -736 -1920 -816
WIRE -352 -736 -352 -784
WIRE -192 -736 -352 -736
WIRE -352 -704 -352 -736
WIRE -144 -704 -144 -752
WIRE -192 -688 -192 -736
WIRE -1920 -640 -1920 -736
WIRE -1088 -624 -1088 -928
WIRE -1328 -576 -1328 -928
WIRE -352 -576 -352 -624
WIRE -192 -576 -192 -640
WIRE -192 -576 -352 -576
WIRE -1920 -544 -1920 -560
WIRE 1808 -544 1792 -544
WIRE 1824 -544 1808 -544
WIRE -832 -528 -832 -928
WIRE 1792 -512 1792 -544
WIRE -896 -480 -960 -480
WIRE -1088 -416 -1088 -544
WIRE -1056 -416 -1088 -416
WIRE -960 -416 -960 -480
WIRE -960 -416 -976 -416
WIRE 1744 -416 1408 -416
WIRE 1408 -384 1408 -416
WIRE 1792 -384 1792 -432
WIRE -1328 -368 -1328 -496
WIRE -1232 -368 -1264 -368
WIRE -832 -368 -832 -432
WIRE -736 -368 -832 -368
WIRE -704 -368 -736 -368
WIRE -576 -368 -624 -368
WIRE -352 -368 -352 -576
WIRE -96 -368 -352 -368
WIRE 192 -368 -96 -368
WIRE 496 -368 192 -368
WIRE 1744 -368 1744 -416
WIRE -352 -352 -352 -368
WIRE -96 -352 -96 -368
WIRE 192 -352 192 -368
WIRE 496 -352 496 -368
WIRE 2112 -336 2080 -336
WIRE 2208 -336 2112 -336
WIRE -832 -288 -832 -368
WIRE 1408 -288 1408 -304
WIRE 1616 -288 1408 -288
WIRE 1744 -288 1744 -320
WIRE 1744 -288 1616 -288
WIRE 2080 -288 2080 -336
WIRE 2208 -288 2208 -336
WIRE -576 -272 -576 -368
WIRE -448 -272 -576 -272
WIRE -400 -272 -448 -272
WIRE -144 -272 -400 -272
WIRE 144 -272 -144 -272
WIRE 448 -272 144 -272
WIRE 1792 -256 1792 -304
WIRE -960 -240 -960 -416
WIRE -896 -240 -960 -240
WIRE -1248 -192 -1248 -208
WIRE -1088 -192 -1088 -320
WIRE -1088 -192 -1248 -192
WIRE -832 -192 -1088 -192
WIRE -736 -192 -832 -192
WIRE -576 -192 -736 -192
WIRE -352 -192 -352 -256
WIRE -352 -192 -576 -192
WIRE -96 -192 -96 -256
WIRE -96 -192 -352 -192
WIRE 192 -192 192 -256
WIRE 192 -192 -96 -192
WIRE 496 -192 496 -256
WIRE 496 -192 192 -192
WIRE -352 -160 -352 -192
WIRE -96 -160 -96 -192
WIRE 192 -160 192 -192
WIRE 496 -160 496 -192
WIRE -448 -144 -448 -272
WIRE -400 -144 -448 -144
WIRE -144 -144 -400 -144
WIRE 144 -144 -144 -144
WIRE 448 -144 144 -144
WIRE -352 16 -352 -64
WIRE -352 16 -416 16
WIRE -176 16 -352 16
WIRE -144 16 -176 16
WIRE -96 16 -96 -64
WIRE -96 16 -144 16
WIRE 192 16 192 -64
WIRE 192 16 -96 16
WIRE 496 16 496 -64
WIRE 496 16 192 16
WIRE -416 32 -416 16
WIRE -176 96 -176 16
WIRE -352 176 -352 16
WIRE -1504 192 -1504 160
WIRE -1328 272 -1328 -368
WIRE -1328 272 -1504 272
WIRE -1504 368 -1504 272
WIRE -736 416 -864 416
WIRE -688 416 -736 416
WIRE -480 416 -688 416
WIRE -864 432 -864 416
WIRE -736 432 -736 416
WIRE -1552 448 -1600 448
WIRE -480 464 -480 416
WIRE -528 480 -576 480
WIRE -1504 496 -1504 464
WIRE -736 544 -736 512
WIRE -576 544 -576 480
WIRE -576 544 -736 544
WIRE -1552 576 -1568 576
WIRE -736 576 -736 544
WIRE -1760 656 -1936 656
WIRE -1696 656 -1760 656
WIRE -1568 656 -1568 576
WIRE -1568 656 -1616 656
WIRE -784 656 -1568 656
WIRE -1936 720 -1936 656
WIRE -480 720 -480 560
WIRE -480 720 -576 720
WIRE -256 720 -480 720
WIRE -176 720 -256 720
WIRE -128 720 -176 720
WIRE 192 720 -48 720
WIRE 512 720 400 720
WIRE 720 720 720 -752
WIRE 720 720 512 720
WIRE -1600 736 -1600 448
WIRE -1120 736 -1600 736
WIRE -864 736 -864 512
WIRE -864 736 -1120 736
WIRE -816 736 -864 736
WIRE -752 736 -816 736
WIRE -736 736 -736 672
WIRE -736 736 -752 736
WIRE -640 736 -736 736
WIRE -176 736 -176 720
WIRE -560 752 -576 752
WIRE -544 752 -560 752
WIRE -256 752 -256 720
WIRE 192 752 192 720
WIRE -544 768 -544 752
WIRE -752 848 -752 736
WIRE -704 848 -752 848
WIRE -560 848 -560 752
WIRE -560 848 -624 848
WIRE -544 880 -544 848
WIRE -480 880 -544 880
WIRE -1120 944 -1120 736
WIRE -1120 944 -1248 944
FLAG -352 -784 100v
FLAG -352 256 0
FLAG -1904 -944 cp_out
FLAG -1936 800 0
FLAG -2160 736 0
FLAG -2160 656 5v
FLAG -144 -624 0
FLAG -608 768 0
FLAG -2256 736 0
FLAG -2256 656 vref
FLAG -480 880 vref
FLAG -256 816 0
FLAG -2384 736 0
FLAG -2384 656 3v3
FLAG -608 704 5v
FLAG -144 16 out
FLAG -736 -368 gate
FLAG 1616 -288 0
FLAG -1328 944 nFault
FLAG -416 96 0
FLAG 2080 -208 0
FLAG 2208 -224 0
FLAG 2528 -144 0
FLAG 2528 144 0
FLAG 2528 64 R_Value
FLAG 2528 -224 out
FLAG 2112 -336 out
FLAG 1792 -256 0
FLAG 1808 -544 out
FLAG -736 -192 source
FLAG 512 720 amp_raw
FLAG 192 832 0
FLAG -176 160 0
FLAG -2528 720 0
FLAG -2528 640 3v3_sw
FLAG -688 416 3v3_sw
FLAG -1504 592 0
FLAG -1760 736 0
FLAG -176 816 0
FLAG -816 800 0
FLAG -1920 -736 100v
FLAG -1920 -544 0
SYMBOL res -368 160 R0
SYMATTR InstName R2
SYMATTR Value 100k
SYMBOL voltage -1936 704 R0
SYMATTR InstName V7
SYMATTR Value PULSE(0 3.3 .01 1u 1u 5m 10m 5)
SYMBOL res -592 -288 R0
SYMATTR InstName R6
SYMATTR Value 500k
SYMBOL voltage -2160 640 R0
SYMATTR InstName V8
SYMATTR Value 7
SYMBOL res -368 -720 R0
SYMATTR InstName R10
SYMATTR Value .0005
SYMBOL e -144 -720 R0
SYMATTR InstName E1
SYMATTR Value 200
SYMBOL Opamps\\opamp2 -608 672 M0
SYMATTR InstName U2
SYMATTR Value LM2903B
SYMBOL voltage -2256 640 R0
SYMATTR InstName V9
SYMATTR Value 1.15
SYMBOL nmos -784 576 R0
SYMATTR InstName M7
SYMATTR Value BSP89
SYMBOL pmos -528 560 M180
SYMATTR InstName M8
SYMATTR Value BSS84
SYMBOL res -32 704 R90
SYMATTR InstName R11
SYMATTR Value 1k
SYMBOL res -752 416 R0
SYMATTR InstName R12
SYMATTR Value 10k
SYMBOL cap -272 752 R0
SYMATTR InstName C5
SYMATTR Value .1n
SYMBOL res -880 416 R0
SYMATTR InstName R13
SYMATTR Value 10k
SYMBOL voltage -2384 640 R0
SYMATTR InstName V11
SYMATTR Value 3.3
SYMBOL nmos -400 -352 R0
SYMATTR InstName M14
SYMATTR Value FDB2532
SYMBOL res -608 -384 R90
SYMATTR InstName R14
SYMATTR Value 1
SYMBOL res -1760 -912 R270
SYMATTR InstName R3
SYMATTR Value .001
SYMBOL npn -896 -528 R0
SYMATTR InstName Q1
SYMATTR Value 2N5550
SYMBOL pnp -896 -192 M180
SYMATTR InstName Q2
SYMATTR Value 2N5401
SYMBOL res -1344 -592 R0
SYMATTR InstName R8
SYMATTR Value 100k
SYMBOL nmos -144 -352 R0
SYMATTR InstName M1
SYMATTR Value FDB2532
SYMBOL nmos 144 -352 R0
SYMATTR InstName M2
SYMATTR Value FDB2532
SYMBOL nmos 448 -352 R0
SYMATTR InstName M4
SYMATTR Value FDB2532
SYMBOL nmos -400 -64 M180
SYMATTR InstName M6
SYMATTR Value FDB2532
SYMBOL nmos -144 -64 M180
SYMATTR InstName M9
SYMATTR Value FDB2532
SYMBOL nmos 144 -64 M180
SYMATTR InstName M10
SYMATTR Value FDB2532
SYMBOL nmos 448 -64 M180
SYMATTR InstName M11
SYMATTR Value FDB2532
SYMBOL sw 1792 -288 M180
SYMATTR InstName S1
SYMATTR Value MYSW
SYMBOL voltage 1408 -400 R0
SYMATTR InstName V2
SYMATTR Value PWL(0 0 22m 0 22.020m 5 24m 0)
SYMBOL ind 1776 -528 R0
SYMATTR InstName L1
SYMATTR Value 660n
SYMATTR SpiceLine Rser=1m
SYMBOL schottky -400 96 R180
SYMATTR InstName D9
SYMATTR Value MBRS1100
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL diode 2192 -288 R0
SYMATTR InstName D5
SYMATTR Value Didl
SYMBOL current 2080 -208 R180
SYMATTR InstName I1
SYMATTR Value PWL(0 0 25m 0 25.005m 40)
SYMBOL bv 2528 -240 R0
SYMATTR InstName B1
SYMATTR Value V={V(R_Value)}*I(B1)
SYMBOL voltage 2528 48 R0
SYMATTR InstName V4
SYMATTR Value PWL(10m 100k 10.001m {start_res} 15m {end_res} 16m 100k)
SYMBOL res -560 752 R0
SYMATTR InstName R4
SYMATTR Value 10k
SYMBOL res -608 832 R90
SYMATTR InstName R5
SYMATTR Value 1Meg
SYMBOL bv 192 736 R0
SYMATTR InstName B2
SYMATTR Value V=If(V(amp_raw)<0,0,IF(V(amp_raw)>5,5,V(amp_raw)))
SYMBOL cap -192 96 R0
SYMATTR InstName C4
SYMATTR Value 10n
SYMBOL voltage -2528 624 R0
SYMATTR InstName V1
SYMATTR Value 3.3
SYMBOL res -1232 928 R90
SYMATTR InstName R16
SYMATTR Value 100k
SYMBOL nmos -1552 496 R0
SYMATTR InstName M5
SYMATTR Value BSP89
SYMBOL res -1776 640 R0
SYMATTR InstName R22
SYMATTR Value 10k
SYMBOL res -192 720 R0
SYMATTR InstName R23
SYMATTR Value 1k
SYMBOL npn -1152 -416 R0
SYMATTR InstName Q3
SYMATTR Value 2N5550
SYMBOL res -1104 -640 R0
SYMATTR InstName R1
SYMATTR Value 24k
SYMBOL res -1136 -384 R90
SYMATTR InstName R7
SYMATTR Value 24k
SYMBOL res -960 -432 R90
SYMATTR InstName R17
SYMATTR Value 100
SYMBOL nmos -1552 368 R0
SYMATTR InstName M3
SYMATTR Value BSP89
SYMBOL res -1600 640 R90
SYMATTR InstName R9
SYMATTR Value 10k
SYMBOL voltage -1904 -944 R0
SYMATTR InstName V3
SYMATTR Value 11
SYMBOL cap -832 736 R0
SYMATTR InstName C1
SYMATTR Value 10n
SYMBOL voltage -1920 -656 R0
SYMATTR InstName V5
SYMATTR Value 100
SYMBOL schottky -1328 -352 R270
SYMATTR InstName D1
SYMATTR Value RB238T150
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res -1264 -304 R0
SYMATTR InstName R15
SYMATTR Value 100k