* Z:\home\khalils\Downloads\files\data\raw_asc\0397b0eff4d7_bat_logo_v3.asc
* Generated by LTspice 26.0.1 for Windows.
* vout_lower is lower part
* All voltage sources
* vout_upper is upper part
* shifted is upper part of wng_lower
* bottom is lower part of wng_lower
* en_wng switches between shifted and bottom
* when vout_upper is off, vout_sel is on
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\Switches\ADG1201.asy)
* Library below included based on ModelFile attribute of instance XU4, XU9, XU5, XU8, XU20 (C:\users\khalils\AppData\Local\LTspice\lib\sym\Switches\ADG1219.asy)
* Library below included based on ModelFile attribute of instance XU2, XU3, XU6, XU7, XU10, XU14, XU15, XU16, XU17, XU18, XU19, XU21 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\UniversalOpAmp2.asy)
A1 pos 0 0 0 0 pos_inv 0 0 BUF
XU20 +5 +range 0 -range bottom vout_lower shifted en_wng ADG1219 ;pnba EN)Vdd)GND)Vss)SB)D)SA)IN
M3 N019 pos +5 N018 PMOS
R8 N017 N015 1k
D10 N010 N011 D
R17 N002 N005 3.4k
D2 N002 N003 D
M2 en neg 0 0 NMOS
R2 v_diff N007 10Meg
M12 en_neg-half en_pos*+neg 0 0 NMOS
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
M6 en_pos*+neg neg 0 0 NMOS
R16 N015 N014 6.8k
M5 en_pos*+neg pos_inv 0 0 NMOS
C1 N007 vin 100n
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
R1 N001 shifted_source 6.8k
XU3 vin +lim +range -range pos 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)
V1 vin 0 SINE(-6 13 0.1 0 0 -90)
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
M11 en_neg-half en_pos*+neg +5 +5 PMOS
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
R12 N009 bottom_source 6.8k
R9 N017 -5 1k
V9 3 0 3
R13 N010 N009 6.8k
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
V21 lim_wng 0 0.71
R14 N010 N014 3.4k
V7 pos_val_sin 0 SINE(3.75 1.775 0.2 0 0 180)
R7 N002 N001 6.8k
R4 N008 -1.25 1k
R19 N006 N005 6.8k
R11 N013 0 1k
XU10 -10 vin +range -range less_than_-10 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
XU17 0 N014 +range -range N015 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
V10 -10 0 -10
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
M1 en pos 0 0 NMOS
V5 -range 0 -15
D9 N011 N009 D
M10 en_inv en 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
M7 N016 pos_inv +5 N012 PMOS
V14 -5 0 -5
R10 bottom N013 1k
R6 N004 0 1k
R15 N014 bottom_source 6.8k
XU2 -lim vin +range -range neg 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
R18 N005 shifted_source 6.8k
XU14 N008 N004 +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
R3 N008 N006 1k
XU15 N017 N013 +range -range bottom 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
V2 +lim 0 6.7
V8 neg_val_sin 0 SINE(3.75 1.775 0.2 0 0 0)
V23 bottom_source 0 SINE(0 6 0.05 0 0 90)
R5 shifted N004 1k
V6 +5 0 5
XU19 0 N005 +range -range N006 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
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
V13 -1.25 0 -1.25
XU4 en_inv +range 0 -range 3 vout_upper -ve_half en_pos*+neg ADG1219 ;pnba EN)Vdd)GND)Vss)SB)D)SA)IN
V4 +range 0 15
XU1 +range -range en vin vout_upper 0 ADG1201 ;pnba Vdd)Vss)IN)S)D)GND
M4 en neg N019 N018 PMOS
V3 -lim 0 2.1
D1 N003 N001 D
V11 4.75 0 4.75
M8 en_pos*+neg neg N016 N012 PMOS
M9 en_inv en +5 +5 PMOS
.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
.tran 20
.lib ADG1201.sub
.lib ADG1219.sub
.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 1824 -160 1664 -160
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 -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 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 528 176 496 176
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 304 272 272 272
WIRE 528 272 496 272
WIRE 1824 272 1712 272
WIRE 1840 272 1824 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 -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 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 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 -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 -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 848 608 816 608
WIRE 944 608 912 608
WIRE 1152 608 1152 576
WIRE 1280 640 1248 640
WIRE 1616 656 1616 624
WIRE 480 672 448 672
WIRE 720 672 672 672
WIRE 1248 672 1248 640
WIRE 1280 672 1248 672
WIRE -448 704 -480 704
WIRE -192 736 -256 736
WIRE 1056 736 992 736
WIRE 1520 736 1440 736
WIRE 1760 736 1712 736
WIRE 1824 736 1824 272
WIRE 1824 736 1760 736
WIRE 1168 752 1120 752
WIRE -448 768 -480 768
WIRE 1056 768 1008 768
WIRE 1280 768 1280 720
WIRE 1760 784 1760 736
WIRE 1824 784 1760 784
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 752 896 720 896
WIRE -576 912 -608 912
WIRE 1232 912 1232 864
WIRE 1392 912 1392 864
WIRE -672 928 -704 928
WIRE 1008 928 976 928
WIRE 1120 944 1072 944
WIRE 1552 944 1552 912
WIRE 1008 960 976 960
WIRE 1680 960 1680 912
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
IOPIN 2096 16 In
IOPIN 1440 736 In
IOPIN 1824 784 Out
IOPIN 992 736 In
IOPIN 976 960 In
IOPIN 2528 752 In
IOPIN 2448 416 In
IOPIN 976 928 In
IOPIN 1008 768 In
IOPIN 2384 48 In
IOPIN 2432 240 In
IOPIN 1616 624 In
IOPIN 1552 944 In
IOPIN 1040 912 In
IOPIN 1040 976 In
IOPIN 1088 720 In
IOPIN 1088 784 In
IOPIN 2176 16 In
IOPIN 1280 624 In
IOPIN 1616 176 In
IOPIN 1552 480 In
IOPIN 1840 272 Out
IOPIN 1152 208 In
IOPIN 1776 -96 In
IOPIN 864 224 In
IOPIN 704 96 In
IOPIN 704 160 In
IOPIN 576 32 In
IOPIN 1008 48 In
IOPIN 1008 112 In
IOPIN 1312 -208 In
IOPIN 1248 96 In
IOPIN 2192 480 In
IOPIN 2096 512 In
IOPIN 400 80 In
IOPIN 576 480 In
IOPIN 336 384 In
IOPIN 512 784 In
IOPIN 784 848 In
IOPIN 784 912 In
IOPIN 752 864 In
IOPIN 720 896 In
IOPIN 2272 16 In
IOPIN 2304 224 In
IOPIN 480 608 In
IOPIN 304 208 In
IOPIN 304 144 In
IOPIN 480 544 In
IOPIN -272 -16 In
IOPIN -272 48 In
IOPIN -256 416 In
IOPIN -256 480 In
IOPIN -1040 272 In
IOPIN -1040 336 In
IOPIN -624 432 In
IOPIN -624 496 In
IOPIN -1056 -160 In
IOPIN -1056 -96 In
IOPIN -640 0 In
IOPIN -640 64 In
IOPIN -352 640 In
IOPIN -416 944 In
IOPIN -256 832 In
IOPIN -640 880 In
IOPIN -640 944 In
IOPIN -704 928 In
IOPIN 2320 432 In
IOPIN -192 736 Out
IOPIN 2192 816 In
IOPIN -1328 -144 In
IOPIN 2080 848 In
IOPIN -1312 288 In
IOPIN 2304 752 In
IOPIN -512 80 In
IOPIN 2432 752 In
IOPIN -464 512 In
IOPIN 1520 304 In
IOPIN 2144 224 In
RECTANGLE Normal 2624 992 2016 -80
RECTANGLE Normal 1984 1120 48 -352
RECTANGLE Normal 0 1120 -1552 -416
SYMBOL res -384 16 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 1k
SYMBOL res -928 64 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R13
SYMATTR Value 6.8k
SYMBOL OpAmps\\UniversalOpAmp2 -256 448 R0
SYMATTR InstName U15
SYMBOL res -144 272 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R10
SYMATTR Value 1k
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 Switches\\ADG1219 400 224 R0
SYMATTR InstName U5
SYMBOL voltage 2432 736 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V14
SYMATTR Value -5
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 diode -1008 128 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D9
SYMBOL cap 640 16 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 100n
SYMBOL pmos4 1328 864 R180
SYMATTR InstName M4
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 res -320 -112 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R6
SYMATTR Value 1k
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 800 -48 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 39 26 VTop 2
SYMATTR InstName R2
SYMATTR Value 10Meg
SYMBOL nmos 1024 448 R0
SYMATTR InstName M5
SYMBOL nmos 1184 912 R0
SYMATTR InstName M1
SYMBOL res -368 496 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R9
SYMATTR Value 1k
SYMBOL nmos 816 368 R0
SYMATTR InstName M12
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 voltage 2384 32 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value 15
SYMBOL res -944 -368 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R7
SYMATTR Value 6.8k
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 nmos 1728 48 R0
SYMATTR InstName M10
SYMBOL Switches\\ADG1219 -352 784 R0
SYMATTR InstName U20
SYMBOL res -368 448 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R8
SYMATTR Value 1k
SYMBOL OpAmps\\UniversalOpAmp2 -640 912 R0
SYMATTR InstName U21
SYMBOL OpAmps\\UniversalOpAmp2 -1040 304 R0
SYMATTR InstName U16
SYMBOL OpAmps\\UniversalOpAmp2 704 128 R0
SYMATTR InstName U6
SYMBOL res -304 320 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R11
SYMATTR Value 1k
SYMBOL Switches\\ADG1219 1616 320 R0
SYMATTR InstName U4
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 pmos4 1200 304 R180
SYMATTR InstName M7
SYMBOL pmos4 1200 448 R180
SYMATTR InstName M8
SYMBOL Digital\\inv 848 544 R0
SYMATTR InstName A1
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)
SYMBOL res -864 -144 M90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R17
SYMATTR Value 3.4k
SYMBOL OpAmps\\UniversalOpAmp2 -624 464 R0
SYMATTR InstName U17
SYMBOL pmos 912 320 R180
SYMATTR InstName M11
SYMBOL OpAmps\\UniversalOpAmp2 784 880 R0
SYMATTR InstName U10
SYMBOL OpAmps\\UniversalOpAmp2 -272 16 R0
SYMATTR InstName U14
SYMBOL pmos4 1328 720 R180
SYMATTR InstName M3
SYMBOL diode -1024 -304 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D1
SYMBOL voltage 2272 0 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V10
SYMATTR Value -10
SYMBOL OpAmps\\UniversalOpAmp2 1008 80 R0
SYMATTR InstName U7
SYMBOL res -416 64 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value 1k
SYMBOL voltage 2176 0 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V6
SYMATTR Value 5
SYMBOL Switches\\ADG1219 576 624 R0
SYMATTR InstName U8
SYMBOL res -160 -160 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R5
SYMATTR Value 1k
SYMBOL OpAmps\\UniversalOpAmp2 -640 32 R0
SYMATTR InstName U19
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 -720 0 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R18
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 pmos 1824 0 R180
SYMATTR InstName M9
SYMBOL Switches\\ADG1219 1312 -64 R0
SYMATTR InstName U9
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 OpAmps\\UniversalOpAmp2 1040 944 R0
SYMATTR InstName U3
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 OpAmps\\UniversalOpAmp2 -1056 -128 R0
SYMATTR InstName U18
SYMBOL diode -848 288 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D10
SYMBOL nmos 1184 448 R0
SYMATTR InstName M6
SYMBOL nmos 1344 912 R0
SYMATTR InstName M2
SYMBOL OpAmps\\UniversalOpAmp2 1088 752 R0
SYMATTR InstName U2
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 voltage 2080 832 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
SYMATTR InstName V23
SYMATTR Value SINE(0 6 0.05 0 0 90)
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 voltage 2528 736 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 6.7
SYMBOL voltage 2304 208 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V11
SYMATTR Value 4.75
SYMBOL voltage 2432 224 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V5
SYMATTR Value -15
SYMBOL voltage 2144 208 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V9
SYMATTR Value 3
SYMBOL Switches\\ADG1201 1616 784 R0
SYMATTR InstName U1
FLAG 2096 96 0
FLAG 2096 16 vin
FLAG 1440 736 vin
FLAG 1824 784 vout_upper
FLAG 992 736 vin
FLAG 976 960 vin
FLAG 2528 832 0
FLAG 2448 496 0
FLAG 2528 752 +lim
FLAG 2448 416 -lim
FLAG 976 928 +lim
FLAG 1008 768 -lim
FLAG 1120 944 pos
FLAG 1168 752 neg
FLAG 2384 128 0
FLAG 2384 48 +range
FLAG 2432 320 0
FLAG 2432 240 -range
FLAG 1616 624 +range
FLAG 1552 944 -range
FLAG 1040 912 +range
FLAG 1040 976 -range
FLAG 1088 720 +range
FLAG 1088 784 -range
FLAG 1312 1072 0
FLAG 2176 96 0
FLAG 2176 16 +5
FLAG 1280 624 +5
FLAG 1328 640 pos
FLAG 1184 992 pos
FLAG 1328 784 neg
FLAG 1344 992 neg
FLAG 1680 960 0
FLAG 1616 176 +range
FLAG 1552 480 -range
FLAG 1680 480 0
FLAG 1840 272 vout_sel
FLAG 816 608 pos
FLAG 944 608 pos_inv
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 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 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 400 80 +range
FLAG 576 480 +range
FLAG 336 384 -range
FLAG 512 784 -range
FLAG 464 384 0
FLAG 640 784 0
FLAG 528 272 en_neg-half
FLAG 720 672 en_neg-half
FLAG 784 848 +range
FLAG 784 912 -range
FLAG 752 864 vin
FLAG 720 896 -10
FLAG 2272 16 -10
FLAG 816 880 less_than_-10
FLAG 448 672 less_than_-10
FLAG 272 272 less_than_-10
FLAG 2304 304 0
FLAG 2304 224 4.75
FLAG 480 608 4.75
FLAG 304 208 4.75
FLAG 304 144 pos_val_sin
FLAG 480 544 neg_val_sin
FLAG 528 176 pos_val
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 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 -640 64 -range
FLAG -352 640 +range
FLAG -416 944 -range
FLAG -288 944 0
FLAG -256 832 +5
FLAG -480 704 shifted
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 -192 736 vout_lower
FLAG 2192 816 shifted_source
FLAG -1328 -144 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 1520 304 3
FLAG 2144 304 0
FLAG 2144 224 3
FLAG 1392 816 en
TEXT 1832 960 Left 2 !.tran 20
TEXT -576 1072 Left 4 ;vout_lower is lower part
TEXT 2192 968 Left 4 ;All voltage sources
TEXT 1456 1072 Left 4 ;vout_upper is upper part
TEXT -752 -304 Left 4 ;shifted is upper part of wng_lower
TEXT -1416 560 Left 4 ;bottom is lower part of wng_lower
TEXT -1528 712 Left 4 ;en_wng switches between shifted and bottom
TEXT 112 1056 Left 4 ;when vout_upper is off, vout_sel is on