* Z:\home\khalils\Downloads\files\data\raw_asc\18ddc070d2fd_Auto_Voltage_Range_bipolar.asc
* Generated by LTspice 26.0.1 for Windows.
* Library below included based on ModelFile attribute of instance XU3, XU2 (C:\users\khalils\AppData\Local\LTspice\lib\sym\Comparators\LT1011.asy)
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\LT1167.asy)
R1 N003 Input 5K
V6 Vref- 0 -1.25
S3 N004 N001 range_switch 0 CSW
V1 Input 0 SINE(0 12 1)
S2 N001 output range_switch 0 OSW
R3 N004 N005 100K
R6 Vdigital range_switch 100
V5 Vdigital 0 5
V2 V+ 0 15
R2 N002 0 5K
XU2 0 N001 Vref- V- NC_05 NC_06 range_switch V+ LT1011 ;pnba GND)In+)In-)V-)BAL)STROBE)OUT)V+
V4 Vref 0 1.25
S1 N005 output range_switch 0 CSW
XU1 NC_01 N002 N003 V- 0 N001 V+ NC_02 LT1167 ;pnba Rg)In-)In+)V-)Ref)Out)V+)Rg
XU3 0 Vref N001 V- NC_03 NC_04 range_switch V+ LT1011 ;pnba GND)In+)In-)V-)BAL)STROBE)OUT)V+
V3 V- 0 -15
R4 N005 0 10K
.tran 1
.model OSW SW(Ron=30 Roff=100G Vt=1 Vh=0)
.model CSW SW(Ron=100G Roff=30 Vt=1 Vh=0)
.lib LT1011.sub
.lib LTC.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1580 876
WIRE 816 -384 720 -384
WIRE 720 -368 720 -384
WIRE 720 -256 720 -288
WIRE 720 -256 672 -256
WIRE 592 -240 560 -240
WIRE 608 -144 608 -208
WIRE 560 -128 560 -240
WIRE 560 -128 512 -128
WIRE 560 -48 560 -128
WIRE 592 -48 560 -48
WIRE 720 -32 720 -256
WIRE 720 -32 672 -32
WIRE 752 -32 720 -32
WIRE 32 80 -80 80
WIRE 144 80 112 80
WIRE 608 80 608 16
WIRE 32 144 0 144
WIRE 144 144 112 144
WIRE 512 144 512 -128
WIRE 512 144 400 144
WIRE 704 144 512 144
WIRE 720 144 704 144
WIRE 816 144 784 144
WIRE 832 144 816 144
WIRE 0 192 0 144
WIRE 432 208 400 208
WIRE 720 208 720 192
WIRE 0 224 0 192
WIRE 512 224 512 144
WIRE 768 224 768 192
WIRE 608 240 560 240
WIRE 608 288 560 288
WIRE 432 320 432 208
WIRE -80 336 -80 80
WIRE 0 336 0 304
WIRE 0 336 -80 336
WIRE 512 336 512 304
WIRE 608 336 608 288
WIRE 0 368 0 336
WIRE 512 480 512 416
WIRE 704 480 512 480
WIRE 816 480 816 144
WIRE 816 480 784 480
WIRE 512 496 512 480
WIRE 768 560 768 528
WIRE -160 576 -160 512
WIRE -32 576 -32 512
WIRE 96 592 96 528
WIRE 224 592 224 528
WIRE 352 592 352 528
WIRE 512 608 512 576
WIRE 720 608 720 528
SYMBOL voltage -32 416 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V3
SYMATTR Value -15
SYMBOL voltage -160 416 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V2
SYMATTR Value 15
SYMBOL res 496 480 R0
SYMATTR InstName R4
SYMATTR Value 10K
SYMBOL res 128 128 R90
WINDOW 0 59 101 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 5K
SYMBOL res 128 64 R90
WINDOW 0 59 101 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 5K
SYMBOL res 704 -384 R0
SYMATTR InstName R6
SYMATTR Value 100
SYMBOL sw 688 480 R270
WINDOW 3 -29 99 VRight 2
SYMATTR Value CSW
SYMATTR InstName S1
SYMBOL sw 512 320 R180
WINDOW 3 -29 99 VRight 2
SYMATTR Value CSW
SYMATTR InstName S3
SYMBOL Comparators\\LT1011 624 -32 R0
SYMATTR InstName U3
SYMBOL voltage 0 208 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
WINDOW 3 40 91 Left 2
SYMATTR Value SINE(0 12 1)
SYMATTR InstName V1
SYMBOL sw 688 144 R270
WINDOW 3 53 73 VRight 2
SYMATTR Value OSW
SYMATTR InstName S2
SYMBOL res 496 320 R0
SYMATTR InstName R3
SYMATTR Value 100K
SYMBOL voltage 96 432 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V6
SYMATTR Value -1.25
SYMBOL Comparators\\LT1011 624 -256 R0
SYMATTR InstName U2
SYMBOL Opamps\\LT1167 272 112 R0
SYMATTR InstName U1
SYMBOL voltage 224 432 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V4
SYMATTR Value 1.25
SYMBOL voltage 352 432 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V5
SYMATTR Value 5
FLAG 0 368 0
FLAG -160 576 0
FLAG -32 576 0
FLAG -160 432 V+
FLAG 0 192 Input
FLAG -32 432 V-
FLAG 144 208 V-
FLAG 224 592 0
FLAG 224 448 Vref
FLAG 432 320 0
FLAG 400 80 V+
FLAG 352 592 0
FLAG 352 448 Vdigital
FLAG 512 608 0
FLAG 624 16 V-
FLAG 624 -80 V+
FLAG 608 80 0
FLAG 720 608 0
FLAG 720 208 0
FLAG 752 -32 range_switch
FLAG 768 224 range_switch
FLAG 768 560 range_switch
FLAG 608 336 0
FLAG 608 240 range_switch
FLAG 832 144 output
FLAG 624 -208 V-
FLAG 624 -304 V+
FLAG 608 -144 0
FLAG 816 -384 Vdigital
FLAG 592 -16 Vref
FLAG 96 592 0
FLAG 96 448 Vref-
FLAG 592 -272 Vref-
TEXT -40 -176 Left 2 !.tran 1
TEXT -48 -72 Left 2 !.model OSW SW(Ron=30 Roff=100G Vt=1 Vh=0)
TEXT -48 -120 Left 2 !.model CSW SW(Ron=100G Roff=30 Vt=1 Vh=0)