* Z:\tmp\asc_dec_bjh7r6w2\0509baf8f5b5_Draft16_dec2.asc
* Generated by LTspice 26.0.1 for Windows.
R4 VSENSE N020 1k
D2 N011 N010 Z19V
R1 N024 N026 800R
V2 N007 0 36
R10 N018 N017 25k
D9 N007 N006 D
M4 N012 N011 FVEE FVEE IRFP9240
C9 FCOM FVEE 100n
Q4 N021 N024 N026 0 2N3904
Q1 N004 N003 N002 0 2N3906
R11 N019 N018 25k
R16 N022 N019 25k
D10 N012 N013 D
C2 N004 N010 100n
D13 N016 N012 D
V3 0 N013 36
R7 N009 N008 500R
D8 N011 FVEE D
R9 N020 0 19k
R5 N009 NC_01 1k
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 3524 1344
WIRE 624 -544 448 -544
WIRE 1232 -544 624 -544
WIRE 448 -512 448 -544
WIRE 624 -464 512 -464
WIRE 560 -416 448 -416
WIRE 1232 -416 1232 -544
WIRE 624 -336 624 -368
WIRE 1008 -336 624 -336
WIRE 1184 -336 1072 -336
WIRE 1232 -272 1232 -320
WIRE 1232 -272 1184 -272
WIRE 1232 -208 1232 -272
WIRE 1328 -208 1296 -208
WIRE 1232 -160 1232 -208
WIRE 624 -80 624 -336
WIRE 1184 -80 624 -80
WIRE 1680 -80 1536 -80
WIRE 1744 -80 1680 -80
WIRE 448 -16 448 -416
WIRE 1232 -16 1232 -64
WIRE 1232 16 1232 -16
WIRE 1328 16 1232 16
WIRE 1232 48 1232 16
WIRE 1040 80 992 80
WIRE 1168 96 1088 96
WIRE 624 176 624 -80
WIRE 672 176 624 176
WIRE 1040 224 1040 80
WIRE 1040 224 960 224
WIRE 1072 224 1040 224
WIRE 1088 224 1088 96
WIRE 1088 224 1072 224
WIRE 1104 224 1088 224
WIRE 1232 224 1184 224
WIRE 1408 224 1232 224
WIRE 1424 224 1408 224
WIRE 624 240 336 240
WIRE 672 240 624 240
WIRE 688 240 672 240
WIRE 896 240 688 240
WIRE 688 304 624 304
WIRE 1072 352 1072 224
WIRE 1168 352 1072 352
WIRE 1232 432 1232 400
WIRE 1328 432 1232 432
WIRE 1232 448 1232 432
WIRE 1232 448 1184 448
WIRE 1232 496 1232 448
WIRE 1744 496 1696 496
WIRE 624 512 624 304
WIRE 1184 512 624 512
WIRE 1232 640 1232 592
WIRE 1344 640 1296 640
WIRE 2912 656 2800 656
WIRE 1232 704 1232 640
WIRE 1232 704 1184 704
WIRE 2160 704 2064 704
WIRE 1232 752 1232 704
WIRE 2064 752 2064 704
WIRE 2080 752 2064 752
WIRE 624 768 624 512
WIRE 1056 768 624 768
WIRE 1184 768 1120 768
WIRE 2272 768 2160 768
WIRE 2368 768 2352 768
WIRE 2448 768 2432 768
WIRE 2080 784 1904 784
WIRE 2448 784 2448 768
WIRE 2640 784 2448 784
WIRE 2800 784 2800 656
WIRE 624 816 624 768
WIRE 448 864 448 64
WIRE 560 864 448 864
WIRE 2352 864 2352 768
WIRE 2368 864 2352 864
WIRE 2448 880 2448 784
WIRE 2448 880 2432 880
WIRE 2720 880 2720 784
WIRE 2736 880 2720 880
WIRE 2368 896 2352 896
WIRE 2816 896 2800 896
WIRE 2928 896 2816 896
WIRE 2960 896 2928 896
WIRE 624 912 512 912
WIRE 2736 912 2720 912
WIRE 448 992 448 960
WIRE 624 992 448 992
WIRE 1232 992 1232 848
WIRE 1232 992 624 992
WIRE 2352 992 2352 896
WIRE 2720 1008 2720 912
WIRE 2816 1008 2816 896
SYMBOL res 1888 688 R0
SYMATTR InstName R4
SYMATTR Value 1k
SYMBOL zener 640 304 R180
WINDOW 0 24 64 Left 2
WINDOW 3 54 30 Left 2
SYMATTR InstName D2
SYMATTR Value Z19V
SYMBOL res 608 896 R0
SYMATTR InstName R1
SYMATTR Value 800R
SYMBOL voltage 1328 -224 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 3 42 41 Left 2
SYMATTR Value 36
SYMATTR InstName V2
SYMBOL res 2368 752 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R10
SYMATTR Value 25k
SYMBOL diode 1296 -224 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D9
SYMBOL pmos 1184 592 M180
SYMATTR InstName M4
SYMATTR Value IRFP9240
SYMBOL cap 1520 -80 R0
SYMATTR InstName C9
SYMATTR Value 100n
SYMBOL npn 512 864 M0
SYMATTR InstName Q4
SYMATTR Value 2N3904
SYMBOL pnp 560 -368 M180
SYMATTR InstName Q1
SYMATTR Value 2N3906
SYMBOL res 2448 752 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R11
SYMATTR Value 25k
SYMBOL res 2736 800 M270
WINDOW 0 32 56 VTop 2
WINDOW 3 0 56 VBottom 2
SYMATTR InstName R16
SYMATTR Value 25k
SYMBOL diode 1232 656 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D10
SYMBOL cap 656 176 R0
SYMATTR InstName C2
SYMATTR Value 100n
SYMBOL diode 1200 768 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D13
SYMBOL voltage 1344 544 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 3 42 41 Left 2
SYMATTR Value 36
SYMATTR InstName V3
SYMBOL res 1200 208 R90
WINDOW 0 81 66 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R7
SYMATTR Value 500R
SYMBOL diode 1200 512 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D8
SYMBOL res 1888 768 R0
SYMATTR InstName R9
SYMATTR Value 19k
SYMBOL res 1216 208 R0
SYMATTR InstName R5
SYMATTR Value 1k
FLAG 1328 16 FVCC
FLAG 1328 432 FVEE
FLAG 1536 -144 FVCC
FLAG 1536 -16 FVEE
FLAG 1408 160 FVCC
FLAG 1680 -80 FCOM
FLAG 2400 848 FVCC
FLAG 2400 912 FVEE
FLAG 2928 896 ERR
FLAG 800 80 ERR
FLAG 2912 736 FCOM
FLAG 1904 704 VSENSE
FLAG 1344 912 LO
FLAG 1344 560 LO
FLAG 1328 -128 LO
FLAG 1904 864 LO
FLAG 1696 496 0
FLAG 1744 576 FCOM
FLAG 1744 496 LO
FLAG 832 352 LO
FLAG 2768 928 FVCC
FLAG 2768 864 FVEE