* Z:\tmp\asc_dec_bjh7r6w2\0d40e3d2fec7_Singleslope_IntegratingADC_offset_dec2.asc
* Generated by LTspice 26.0.1 for Windows.
B1 VADC 0 V=(V(q0)/16 + V(q1)/8 + V(q2)/4 + V(q3)/2)
S1 Vc N001 Vsamp Vtrip switmod
E1 Vc 0 0 N001 100Meg
A4 bi3 0 bi2 0 Vsamp bi3 b3 0 DFLOP
Vin Vin 0 SINE(0.5 500m 10k)
R1 N001 Vref 100k
A11 bi1 0 bi0 0 Vsamp bi1 b1 0 DFLOP
VDD VDD 0 1
Vsam Vsamp 0 PULSE(0 1 62.5n 1p 1p 31.25n 1u)
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2740 956
WIRE -448 -384 -448 -400
WIRE -400 -384 -400 -400
WIRE 768 -368 768 -384
WIRE -464 -336 -496 -336
WIRE -352 -336 -384 -336
WIRE 656 -288 608 -288
WIRE 960 -288 912 -288
WIRE 976 -288 960 -288
WIRE 608 -272 608 -288
WIRE -224 -256 -224 -272
WIRE -176 -256 -224 -256
WIRE -224 -240 -224 -256
WIRE 608 -208 608 -272
WIRE -32 -192 -32 -224
WIRE 80 -192 80 -224
WIRE -496 -96 -496 -336
WIRE -448 -96 -496 -96
WIRE -352 -96 -352 -336
WIRE -352 -96 -384 -96
WIRE -272 -96 -352 -96
WIRE -192 -96 -272 -96
WIRE 608 -96 608 -128
WIRE 1120 -96 1120 -128
WIRE -352 -32 -352 -96
WIRE -720 -16 -752 -16
WIRE -624 -16 -720 -16
WIRE -496 -16 -496 -96
WIRE -496 -16 -544 -16
WIRE -400 -16 -496 -16
WIRE -400 32 -464 32
WIRE -192 48 -192 -96
WIRE -48 48 -192 48
WIRE -464 80 -464 32
WIRE -352 80 -352 48
WIRE -80 96 -192 96
WIRE 656 112 624 112
WIRE 720 112 656 112
WIRE 912 112 896 112
WIRE 1072 112 1040 112
WIRE 1264 112 1248 112
WIRE -752 128 -752 96
WIRE -192 128 -192 96
WIRE 800 176 800 160
WIRE 1152 176 1152 160
WIRE -560 208 -672 208
WIRE -400 208 -560 208
WIRE -672 240 -672 208
WIRE 720 336 688 336
WIRE 912 336 880 336
WIRE 1072 336 1040 336
WIRE 1264 336 1232 336
WIRE -672 352 -672 320
WIRE 720 384 688 384
WIRE 912 384 896 384
WIRE 1072 384 1040 384
WIRE 1264 384 1248 384
WIRE 800 448 800 432
WIRE 1152 448 1152 432
SYMBOL bv 1120 -224 R0
SYMATTR InstName B1
SYMATTR Value V=(V(q0)/16 + V(q1)/8 + V(q2)/4 + V(q3)/2)
SYMBOL sw -368 -336 R90
WINDOW 3 24 -12 Left 0
WINDOW 38 39 67 Left 0
WINDOW 0 38 33 Left 0
SYMATTR Value ""
SYMATTR SpiceModel switmod
SYMATTR InstName S1
SYMBOL e2 -352 -48 R0
SYMATTR InstName E1
SYMATTR Value 100MEG
SYMBOL Digital\\dflop 1152 288 R0
SYMATTR InstName A4
SYMBOL voltage -672 224 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName Vin
SYMATTR Value SINE(0.5 500m 10k)
SYMBOL res -528 -32 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R1
SYMATTR Value 100k
SYMBOL Digital\\dflop 800 288 R0
SYMATTR InstName A11
SYMBOL voltage -32 -320 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName VDD
SYMATTR Value 1
SYMBOL voltage 608 -224 R0
WINDOW 0 36 42 Left 0
WINDOW 3 35 69 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName Vsam
SYMATTR Value PULSE(0 1 62.5n 1p 1p 31.25n 1u)
FLAG -352 80 0
FLAG -752 128 0
FLAG -720 -16 Vref
FLAG -32 -192 0
FLAG -32 -304 VDD
FLAG 80 -192 0
FLAG 80 -304 Vclk
FLAG -672 352 0
FLAG -272 -96 Vc
FLAG -464 80 0
FLAG -560 208 Vin
FLAG 1120 -96 0
FLAG 1120 -208 VADC
FLAG -224 -160 0
FLAG -224 -352 VDD
FLAG -176 -256 Vtrip
FLAG 912 112 bi0
FLAG 1040 112 bi1
FLAG 1264 112 bi2
FLAG 1040 384 bi2
FLAG 1264 336 b3
FLAG 1264 384 bi3
FLAG -400 -400 Vtrip
FLAG 1040 336 bi3
FLAG 912 336 b1
FLAG 912 384 bi1
FLAG 688 384 bi0
FLAG 688 336 bi1
FLAG -448 -400 Vsamp
FLAG 608 -96 0
FLAG 608 -272 Vsamp
FLAG 768 -384 VDD
FLAG 960 -288 Enable
FLAG 1152 448 Vsamp
FLAG 800 448 Vsamp
FLAG 800 176 Vsamp
FLAG 1152 176 Vsamp
FLAG 656 112 Vcnt