* Z:\home\khalils\Downloads\files\data\raw_asc\02a32e4b5381_Auto_Voltage_Range.asc
* Generated by LTspice 26.0.1 for Windows.
* Library below included based on ModelFile attribute of instance XU3 (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)
V4 Vref 0 1.25
V3 V- 0 -15
R2 N002 0 5K
R3 N004 N005 100K
V5 Vdigital 0 5
S2 N001 output range_switch 0 OSW
S3 N004 N001 range_switch 0 CSW
V2 V+ 0 15
R1 N003 Input 5K
R5 Vdigital range_switch 100
V1 Input 0 SINE(0 12 0.5)
XU3 0 Vref N001 V- NC_03 NC_04 range_switch V+ LT1011 ;pnba GND)In+)In-)V-)BAL)STROBE)OUT)V+
XU1 NC_01 N002 N003 V- 0 N001 V+ NC_02 LT1167 ;pnba Rg)In-)In+)V-)Ref)Out)V+)Rg
R4 N005 0 10K
S1 N005 output range_switch 0 CSW
.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 -160 720 -160
WIRE 720 -144 720 -160
WIRE 592 -48 512 -48
WIRE 720 -32 720 -64
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 -48
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 -32 592 -32 528
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 sw 512 320 R180
WINDOW 3 -29 99 VRight 2
SYMATTR Value CSW
SYMATTR InstName S3
SYMBOL res 496 320 R0
SYMATTR InstName R3
SYMATTR Value 100K
SYMBOL Opamps\\LT1167 272 112 R0
SYMATTR InstName U1
SYMBOL voltage -32 432 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V2
SYMATTR Value 15
SYMBOL res 128 128 R90
WINDOW 0 59 101 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 5K
SYMBOL voltage 352 432 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V5
SYMATTR Value 5
SYMBOL voltage 96 432 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V3
SYMATTR Value -15
SYMBOL Comparators\\LT1011 624 -32 R0
SYMATTR InstName U3
SYMBOL sw 688 144 R270
WINDOW 3 53 73 VRight 2
SYMATTR Value OSW
SYMATTR InstName S2
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 0.5)
SYMATTR InstName V1
SYMBOL res 496 480 R0
SYMATTR InstName R4
SYMATTR Value 10K
SYMBOL res 704 -160 R0
SYMATTR InstName R5
SYMATTR Value 100
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 sw 688 480 R270
WINDOW 3 -29 99 VRight 2
SYMATTR Value CSW
SYMATTR InstName S1
SYMBOL res 128 64 R90
WINDOW 0 59 101 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 5K
FLAG 0 368 0
FLAG -32 592 0
FLAG 96 592 0
FLAG -32 448 V+
FLAG 0 192 Input
FLAG 96 448 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 592 -16 Vref
FLAG 624 16 V-
FLAG 624 -80 V+
FLAG 608 80 0
FLAG 816 -160 Vdigital
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
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)