* Z:\tmp\asc_dec_bjh7r6w2\0397b0eff4d7_bat_logo_v3_dec2.asc
* Generated by LTspice 26.0.1 for Windows.
M3 N023 pos +5 N022 PMOS
M6 en_pos*+neg neg 0 0 NMOS
M10 en_inv en 0 0 NMOS
M8 en_pos*+neg neg N018 N013 PMOS
R8 N021 N017 1k
D9 N011 N009 D
XU9 en_neg-half +range 0 -range pos_val -ve_half neg_val pos_slope ADG1219 ;pnba EN)Vdd)GND)Vss)SB)D)SA)IN
XU8 en_neg-half +range 0 -range 4.75 neg_val neg_val_sin less_than_-10 ADG1219 ;pnba EN)Vdd)GND)Vss)SB)D)SA)IN
R11 N015 0 1k
D10 N010 N011 D
XU19 0 N004 +range -range N005 level2 Avol=1Meg GBW=10Meg Slew=10Meg Ilimit=25m Rail=0 Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R14 N010 N016 3.4k
XU14 N008 N003 +range -range shifted level2 Avol=1Meg GBW=10Meg Slew=10Meg Ilimit=25m Rail=0 Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
XU21 lim_wng bottom +range -range en_wng level2 Avol=1Meg GBW=10Meg Slew=10Meg Ilimit=25m Rail=0 Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R10 bottom N015 1k
V7 pos_val_sin 0 SINE(3.75 1.775 0.2 0 0 180)
R1 N001 shifted_source 6.8k
R2 v_diff N007 10Meg
XU17 0 N016 +range -range N017 level2 Avol=1Meg GBW=10Meg Slew=10Meg Ilimit=25m Rail=0 Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
M7 N018 pos_inv +5 N013 PMOS
XU16 0 N009 +range -range N011 level2 Avol=1Meg GBW=10Meg Slew=10Meg Ilimit=25m Rail=0 Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
V4 +range 0 15
R6 N003 0 1k
XU7 v_diff 0 +range -range pos_slope level2 Avol=1Meg GBW=10Meg Slew=10Meg Ilimit=25m Rail=0 Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
XU4 en_inv +range 0 -range 3 N014 -ve_half en_pos*+neg ADG1219 ;pnba EN)Vdd)GND)Vss)SB)D)SA)IN
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
* Library below included based on ModelFile attribute of instance XU9, XU8, XU4 (C:\users\khalils\AppData\Local\LTspice\lib\sym\Switches\ADG1219.asy)
.lib ADG1219.sub
* Library below included based on ModelFile attribute of instance XU19, XU14, XU21, XU17, XU16, XU7 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\UniversalOpAmp2.asy)
.lib UniversalOpAmp2.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 2628 1212
WIRE -1040 -352 -1120 -352
WIRE -1120 -288 -1120 -352
WIRE -1088 -288 -1120 -288
WIRE -976 -288 -1024 -288
WIRE -1280 -144 -1328 -144
WIRE -1264 -144 -1280 -144
WIRE -1120 -144 -1120 -288
WIRE -1120 -144 -1184 -144
WIRE -1088 -144 -1120 -144
WIRE -256 -144 -336 -144
WIRE 1216 -144 1168 -144
WIRE -976 -128 -976 -288
WIRE -976 -128 -1024 -128
WIRE -928 -128 -976 -128
WIRE -736 -128 -768 -128
WIRE -672 -128 -704 -128
WIRE -560 -128 -592 -128
WIRE 1472 -112 1408 -112
WIRE -336 -96 -336 -144
WIRE 1216 -80 1168 -80
WIRE 1824 -80 1824 -160
WIRE 1456 -64 1440 -64
WIRE 704 -32 640 -32
WIRE 1216 -16 1184 -16
WIRE 1440 -16 1440 -64
WIRE 1440 -16 1408 -16
WIRE 1664 -16 1664 -160
WIRE 1664 -16 1600 -16
WIRE -336 0 -336 -96
WIRE -304 0 -336 0
WIRE -1280 16 -1280 -144
WIRE -816 16 -1280 16
WIRE -736 16 -736 -128
WIRE -704 16 -704 -128
WIRE -704 16 -736 16
WIRE -672 16 -704 16
WIRE -176 16 -176 -144
WIRE -176 16 -240 16
WIRE -128 16 -176 16
WIRE 1776 16 1776 0
WIRE 1872 16 1776 16
WIRE -560 32 -560 -128
WIRE -560 32 -608 32
WIRE -480 32 -560 32
WIRE -368 32 -400 32
WIRE -304 32 -368 32
WIRE 640 32 640 -32
WIRE 1776 48 1776 16
WIRE -1024 80 -1104 80
WIRE -832 80 -944 80
WIRE -368 80 -368 32
WIRE -368 80 -432 80
WIRE 1072 80 1040 80
WIRE 976 96 944 96
WIRE 640 112 640 32
WIRE 672 112 640 112
WIRE 784 128 784 -32
WIRE 784 128 736 128
WIRE 848 128 784 128
WIRE 1664 128 1664 -16
WIRE 1728 128 1664 128
WIRE -1104 144 -1104 80
WIRE -1072 144 -1104 144
WIRE -960 144 -1008 144
WIRE 912 160 752 160
WIRE 1152 224 1120 224
WIRE 912 240 912 160
WIRE 1520 240 1488 240
WIRE 1120 256 1120 224
WIRE 1152 256 1120 256
WIRE 1824 272 1712 272
WIRE -1104 288 -1104 144
WIRE -1104 288 -1168 288
WIRE -1072 288 -1104 288
WIRE -240 288 -320 288
WIRE -960 304 -960 144
WIRE -960 304 -1008 304
WIRE -912 304 -960 304
WIRE -832 304 -832 80
WIRE -832 304 -848 304
WIRE -720 304 -752 304
WIRE -656 304 -688 304
WIRE -544 304 -576 304
WIRE -320 336 -320 288
WIRE 1152 352 1152 304
WIRE 1520 368 1472 368
WIRE 1744 368 1712 368
WIRE 1120 400 1120 256
WIRE 1152 400 1120 400
WIRE -320 432 -320 336
WIRE -288 432 -320 432
WIRE -800 448 -1264 448
WIRE -720 448 -720 304
WIRE -688 448 -688 304
WIRE -688 448 -720 448
WIRE -656 448 -688 448
WIRE -160 448 -160 288
WIRE -160 448 -224 448
WIRE -112 448 -160 448
WIRE 752 448 752 304
WIRE 816 448 752 448
WIRE 1152 448 1072 448
WIRE 1232 448 1152 448
WIRE 1296 448 1232 448
WIRE -544 464 -544 304
WIRE -544 464 -592 464
WIRE -464 464 -544 464
WIRE -320 464 -384 464
WIRE -288 464 -320 464
WIRE -320 512 -320 464
WIRE -320 512 -384 512
WIRE 704 576 672 576
WIRE 1072 576 1072 544
WIRE 1152 576 1072 576
WIRE 1232 576 1232 544
WIRE 1232 576 1152 576
WIRE 1152 608 1152 576
WIRE 1280 640 1248 640
WIRE 480 672 448 672
WIRE 720 672 672 672
WIRE 1248 672 1248 640
WIRE 1280 672 1248 672
WIRE 1520 736 1440 736
WIRE 1168 752 1120 752
WIRE -448 768 -480 768
WIRE 1280 768 1280 720
WIRE 1520 800 1488 800
WIRE 1248 816 1248 672
WIRE 1280 816 1248 816
WIRE 1280 864 1232 864
WIRE 1392 864 1392 816
WIRE 1392 864 1280 864
WIRE -672 896 -704 896
WIRE -576 912 -608 912
WIRE 1232 912 1232 864
WIRE 1392 912 1392 864
WIRE -672 928 -704 928
SYMBOL pmos4 1328 720 R180
SYMATTR InstName M3
SYMBOL nmos 1184 448 R0
SYMATTR InstName M6
SYMBOL nmos 1728 48 R0
SYMATTR InstName M10
SYMBOL pmos4 1200 448 R180
SYMATTR InstName M8
SYMBOL res -368 448 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R8
SYMATTR Value 1k
SYMBOL diode -1008 128 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D9
SYMBOL Switches\\ADG1219 1312 -64 R0
SYMATTR InstName U9
SYMBOL Switches\\ADG1219 576 624 R0
SYMATTR InstName U8
SYMBOL res -304 320 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R11
SYMATTR Value 1k
SYMBOL diode -848 288 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D10
SYMBOL OpAmps\\UniversalOpAmp2 -640 32 R0
SYMATTR InstName U19
SYMBOL res -848 288 M90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R14
SYMATTR Value 3.4k
SYMBOL OpAmps\\UniversalOpAmp2 -272 16 R0
SYMATTR InstName U14
SYMBOL OpAmps\\UniversalOpAmp2 -640 912 R0
SYMATTR InstName U21
SYMBOL res -144 272 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R10
SYMATTR Value 1k
SYMBOL voltage 2192 464 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V7
SYMATTR Value SINE(3.75 1.775 0.2 0 0 180)
SYMBOL res -1168 -160 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 6.8k
SYMBOL res 800 -48 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 39 26 VTop 2
SYMATTR InstName R2
SYMATTR Value 10Meg
SYMBOL OpAmps\\UniversalOpAmp2 -624 464 R0
SYMATTR InstName U17
SYMBOL pmos4 1200 304 R180
SYMATTR InstName M7
SYMBOL OpAmps\\UniversalOpAmp2 -1040 304 R0
SYMATTR InstName U16
SYMBOL voltage 2384 32 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value 15
SYMBOL res -320 -112 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R6
SYMATTR Value 1k
SYMBOL OpAmps\\UniversalOpAmp2 1008 80 R0
SYMATTR InstName U7
SYMBOL Switches\\ADG1219 1616 320 R0
SYMATTR InstName U4
FLAG 1440 736 vin
FLAG 1168 752 neg
FLAG 2384 128 0
FLAG 2384 48 +range
FLAG 1280 624 +5
FLAG 1328 640 pos
FLAG 1328 784 neg
FLAG 1616 176 +range
FLAG 1552 480 -range
FLAG 1680 480 0
FLAG 1472 368 en_pos*+neg
FLAG 1152 608 0
FLAG 1152 208 +5
FLAG 1296 448 en_pos*+neg
FLAG 1200 224 pos_inv
FLAG 1024 528 pos_inv
FLAG 1200 368 neg
FLAG 1184 528 neg
FLAG 1744 368 en_inv
FLAG 1776 -96 +5
FLAG 1776 144 0
FLAG 1600 -16 en
FLAG 1872 16 en_inv
FLAG 1488 240 -ve_half
FLAG 864 224 +5
FLAG 704 96 +range
FLAG 672 144 0
FLAG 848 128 v_diff
FLAG 1488 800 en
FLAG 1008 48 +range
FLAG 1008 112 -range
FLAG 976 64 0
FLAG 944 96 v_diff
FLAG 1072 80 pos_slope
FLAG 1312 -208 +range
FLAG 1248 96 -range
FLAG 1376 96 0
FLAG 1456 -64 en_neg-half
FLAG 1184 -16 pos_slope
FLAG 1168 -80 pos_val
FLAG 1168 -144 neg_val
FLAG 1472 -112 -ve_half
FLAG 2192 560 0
FLAG 2096 592 0
FLAG 2192 480 pos_val_sin
FLAG 2096 512 neg_val_sin
FLAG 576 480 +range
FLAG 512 784 -range
FLAG 640 784 0
FLAG 720 672 en_neg-half
FLAG 2272 16 -10
FLAG 448 672 less_than_-10
FLAG 2304 304 0
FLAG 2304 224 4.75
FLAG 480 608 4.75
FLAG 480 544 neg_val_sin
FLAG 704 576 neg_val
FLAG 2272 96 0
FLAG -272 -16 +range
FLAG -272 48 -range
FLAG -128 16 shifted
FLAG -416 -96 0
FLAG -256 416 +range
FLAG -256 480 -range
FLAG -112 448 bottom
FLAG -400 336 0
FLAG -1040 272 +range
FLAG -1040 336 -range
FLAG -1072 320 0
FLAG -656 480 0
FLAG -624 432 +range
FLAG -624 496 -range
FLAG -1056 -160 +range
FLAG -1056 -96 -range
FLAG -1088 -112 0
FLAG -672 48 0
FLAG -640 0 +range
FLAG -640 64 -range
FLAG -352 640 +range
FLAG -480 768 bottom
FLAG -640 880 +range
FLAG -640 944 -range
FLAG -704 896 bottom
FLAG -704 928 lim_wng
FLAG -576 912 en_wng
FLAG -448 832 en_wng
FLAG 2320 512 0
FLAG 2320 432 lim_wng
FLAG -1328 -144 shifted_source
FLAG -512 80 -1.25
FLAG -464 512 -5
FLAG 1520 304 3
FLAG 2144 304 0
FLAG 1392 816 en