* Z:\tmp\asc_dec_bjh7r6w2\0397b0eff4d7_bat_logo_v3_dec1.asc
* Generated by LTspice 26.0.1 for Windows.
R12 N011 bottom_source 6.8k
XU5 en_neg-half +range 0 -range 4.75 pos_val pos_val_sin less_than_-10 ADG1219 ;pnba EN)Vdd)GND)Vss)SB)D)SA)IN
V13 -1.25 0 -1.25
V2 +lim 0 6.7
M2 en neg 0 0 NMOS
XU18 0 N001 +range -range N003 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
V12 shifted_source 0 SINE(0 6 0.2 0 0 90)
M12 en_neg-half en_pos*+neg 0 0 NMOS
M5 N020 pos_inv 0 0 NMOS
V1 vin 0 SINE(-6 13 0.1 0 0 -90)
V21 lim_wng 0 0.71
R16 N016 N015 6.8k
V3 -lim 0 2.1
R19 N006 N005 6.8k
R9 N021 -5 1k
D1 N003 N001 D
R15 N015 bottom_source 6.8k
D2 N002 N003 D
R3 N010 N006 1k
V9 3 0 3
M4 en neg N024 N023 PMOS
XU6 0 N007 +range -range v_diff 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
V8 neg_val_sin 0 SINE(3.75 1.775 0.2 0 0 0)
.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 XU5 (C:\users\khalils\AppData\Local\LTspice\lib\sym\Switches\ADG1219.asy)
.lib ADG1219.sub
* Library below included based on ModelFile attribute of instance XU18, XU6 (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 -848 -352 -960 -352
WIRE -1120 -288 -1120 -352
WIRE -1088 -288 -1120 -288
WIRE -976 -288 -1024 -288
WIRE -1120 -144 -1120 -288
WIRE -1120 -144 -1184 -144
WIRE -1088 -144 -1120 -144
WIRE -256 -144 -336 -144
WIRE -976 -128 -976 -288
WIRE -976 -128 -1024 -128
WIRE -928 -128 -976 -128
WIRE -848 -128 -848 -352
WIRE -848 -128 -864 -128
WIRE -736 -128 -768 -128
WIRE -672 -128 -704 -128
WIRE -560 -128 -592 -128
WIRE -336 -96 -336 -144
WIRE 704 -32 640 -32
WIRE -336 0 -336 -96
WIRE -304 0 -336 0
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 -240 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 -1024 80 -1104 80
WIRE -368 80 -368 32
WIRE -368 80 -432 80
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 -1104 144 -1104 80
WIRE -1072 144 -1104 144
WIRE -960 144 -1008 144
WIRE 912 160 752 160
WIRE 528 176 496 176
WIRE 912 240 912 160
WIRE 1120 256 1120 224
WIRE 1152 256 1120 256
WIRE 304 272 272 272
WIRE 528 272 496 272
WIRE -1264 288 -1312 288
WIRE -1248 288 -1264 288
WIRE -1104 288 -1104 144
WIRE -1104 288 -1168 288
WIRE -1072 288 -1104 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 752 304 752 160
WIRE 752 304 688 304
WIRE -320 336 -320 288
WIRE 864 336 864 320
WIRE 960 336 864 336
WIRE 1152 352 1152 304
WIRE 864 368 864 336
WIRE 1120 400 1120 256
WIRE 1152 400 1120 400
WIRE -320 432 -320 336
WIRE -288 432 -320 432
WIRE -1264 448 -1264 288
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 -224 448
WIRE 752 448 752 304
WIRE 816 448 752 448
WIRE 1152 448 1072 448
WIRE 1232 448 1152 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 1072 576 1072 544
WIRE 1152 576 1072 576
WIRE 1232 576 1152 576
WIRE 848 608 816 608
WIRE 944 608 912 608
WIRE 1152 608 1152 576
WIRE 1248 672 1248 640
WIRE 1280 672 1248 672
WIRE 1520 736 1440 736
WIRE 1168 752 1120 752
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 1232 912 1232 864
WIRE 1392 912 1392 864
WIRE 1232 1040 1232 1008
WIRE 1312 1040 1232 1040
WIRE 1392 1040 1392 1008
WIRE 1392 1040 1312 1040
WIRE 1312 1072 1312 1040
SYMBOL res -1152 272 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R12
SYMATTR Value 6.8k
SYMBOL Switches\\ADG1219 400 224 R0
SYMATTR InstName U5
SYMBOL voltage 2304 736 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V13
SYMATTR Value -1.25
SYMBOL voltage 2528 736 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 6.7
SYMBOL nmos 1344 912 R0
SYMATTR InstName M2
SYMBOL OpAmps\\UniversalOpAmp2 -1056 -128 R0
SYMATTR InstName U18
SYMBOL voltage 2192 800 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
SYMATTR InstName V12
SYMATTR Value SINE(0 6 0.2 0 0 90)
SYMBOL nmos 816 368 R0
SYMATTR InstName M12
SYMBOL nmos 1024 448 R0
SYMATTR InstName M5
SYMBOL voltage 2096 0 R0
WINDOW 0 -43 10 Left 2
WINDOW 3 -65 137 Left 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value SINE(-6 13 0.1 0 0 -90)
SYMBOL voltage 2320 416 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V21
SYMATTR Value 0.71
SYMBOL res -560 288 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R16
SYMATTR Value 6.8k
SYMBOL voltage 2448 400 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 2.1
SYMBOL res -576 -144 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R19
SYMATTR Value 6.8k
SYMBOL res -368 496 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R9
SYMATTR Value 1k
SYMBOL diode -1024 -304 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D1
SYMBOL res -704 432 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R15
SYMATTR Value 6.8k
SYMBOL diode -864 -144 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D2
SYMBOL res -384 16 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 1k
SYMBOL voltage 2144 208 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V9
SYMATTR Value 3
SYMBOL pmos4 1328 864 R180
SYMATTR InstName M4
SYMBOL OpAmps\\UniversalOpAmp2 704 128 R0
SYMATTR InstName U6
SYMBOL voltage 2096 496 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V8
SYMATTR Value SINE(3.75 1.775 0.2 0 0 0)
FLAG 2096 96 0
FLAG 2096 16 vin
FLAG 1440 736 vin
FLAG 2528 832 0
FLAG 2448 496 0
FLAG 2528 752 +lim
FLAG 2448 416 -lim
FLAG 1168 752 neg
FLAG 2432 320 0
FLAG 2432 240 -range
FLAG 1312 1072 0
FLAG 2176 96 0
FLAG 2176 16 +5
FLAG 1184 992 pos
FLAG 1328 784 neg
FLAG 1344 992 neg
FLAG 944 608 pos_inv
FLAG 1152 608 0
FLAG 1024 528 pos_inv
FLAG 1200 368 neg
FLAG 1184 528 neg
FLAG 864 224 +5
FLAG 864 464 0
FLAG 688 304 en_pos*+neg
FLAG 960 336 en_neg-half
FLAG 704 96 +range
FLAG 704 160 -range
FLAG 672 144 0
FLAG 576 32 vin
FLAG 848 128 v_diff
FLAG 1488 800 en
FLAG 2192 560 0
FLAG 2096 592 0
FLAG 2192 480 pos_val_sin
FLAG 2096 512 neg_val_sin
FLAG 400 80 +range
FLAG 336 384 -range
FLAG 464 384 0
FLAG 528 272 en_neg-half
FLAG 2272 16 -10
FLAG 272 272 less_than_-10
FLAG 2304 304 0
FLAG 2304 224 4.75
FLAG 304 208 4.75
FLAG 304 144 pos_val_sin
FLAG 528 176 pos_val
FLAG 2272 96 0
FLAG -272 -16 +range
FLAG -272 48 -range
FLAG -416 -96 0
FLAG -256 416 +range
FLAG -256 480 -range
FLAG -400 336 0
FLAG -1040 272 +range
FLAG -1040 336 -range
FLAG 2080 928 0
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 2192 896 0
FLAG -1088 -112 0
FLAG -672 48 0
FLAG -640 0 +range
FLAG -352 640 +range
FLAG 2320 512 0
FLAG 2320 432 lim_wng
FLAG 2192 816 shifted_source
FLAG 2080 848 bottom_source
FLAG -1312 288 bottom_source
FLAG 2304 832 0
FLAG 2304 752 -1.25
FLAG -512 80 -1.25
FLAG 2432 832 0
FLAG 2432 752 -5
FLAG -464 512 -5
FLAG 2144 304 0
FLAG 2144 224 3
FLAG 1392 816 en