* SPICE netlist
VCC VCC 0 {VCC}
V_BIT0 BIT0 0 PULSE(0 {VCC} 0 {rise} {rise} {1/freq/2-rise} {1/freq} {16*reps}) AC 5
V_BIT1 BIT1 0 PULSE(0 {VCC} 0 {rise} {rise} {2*1/freq/2-rise} {2*1/freq} {8*reps})
V_BIT2 BIT2 0 PULSE(0 {VCC} 0 {rise} {rise} {4*1/freq/2-rise} {4*1/freq} {4*reps})
V_BIT3 BIT3 0 PULSE(0 {VCC} 0 {rise} {rise} {8*1/freq/2-rise} {8*1/freq} {2*reps})
V_BIT4 BIT4 0 PULSE(0 {VCC} 0 {rise} {rise} {16*1/freq/2-rise} {16*1/freq} {1*reps})
R100 BIT0 0 10Mega
R101 BIT1 0 10Mega
R102 BIT2 0 10Mega
R103 BIT3 0 10Mega
R104 BIT4 0 10Mega
Q2 OUT N004 0 0 2N3904
D1 N004 OUT BAT54
Q1 VCC IN N002 0 2N3904
R3 VCC OUT 100
R1 N002 N004 220
R2 N004 0 220
R200 IN BIT0 1m
Q5 OUT_LIN N010 0 0 2N3904
Q6 N005 IN N015 0 2N3904
R4 N005 OUT_LIN 200
R5 OUT_LIN N010 200
R6 N010 N015 2000
Q7 OUT_NN OUT_LIN 0 0 2N3904
D3 OUT_LIN OUT_NN BAT54
R9 N005 OUT_NN 100
R10 N005 VCC 1m
Q8 N012 N011 0 0 2N3904
D4 N011 N012 BAT54
Q9 N006 IN N009 0 2N3904
R14 N006 N008 75
D5 OUT_NN2 N008 BAT54
Q10 OUT_NN2 N008 N006 0 2N3906
R15 N008 N012 100
R16 OUT_NN2 0 100
R17 N009 N011 220
R18 N011 0 220
R19 N006 VCC 1m
C4 OUT_NN2 0 50p
C1 OUT_NN 0 50p
C5 OUT 0 50p
Q3 OUT_TC N003 0 0 2N3904
D2 N003 OUT_TC BAT54
Q4 VCC INT2 N001 0 2N3904
R7 VCC OUT_TC 100
R8 N001 N003 220
R11 N003 0 120
Q12 0 IN INT2 0 2N3906
R13 VCC INT2 520
Q13 N007 N013 OUT_CB 0 2N3904
R12 N014 0 3k
R20 OUT_CB 0 520
R22 N007 N013 100
R23 N007 N014 1k
V1 N007 0 3.3
Q11 N013 N014 N016 0 2N3904
Q14 N016 N017 0 0 2N3904
R24 N017 IN 1k
R25 N017 0 520
D6 N014 N013 BAT54
D7 N017 N016 BAT54
.tran {10*reps/freq}
.param VCC=3.3
.param freq=10mega
.param rise=1n
.param reps=1
.step temp -25 125 25

* LTspice schematic (.asc)
Version 4
SHEET 1 6832 2544
WIRE 1688 -1272 1160 -1272
WIRE 2136 -1272 1688 -1272
WIRE 2424 -1272 2136 -1272
WIRE 1688 -1240 1688 -1272
WIRE 2424 -1080 2424 -1272
WIRE 2136 -952 2136 -1272
WIRE 1688 -904 1688 -1160
WIRE 1800 -904 1688 -904
WIRE 2072 -904 1800 -904
WIRE -1144 -840 -1384 -840
WIRE -856 -840 -1144 -840
WIRE -856 -776 -856 -840
WIRE -1144 -680 -1144 -840
WIRE -1320 -632 -1352 -632
WIRE -1208 -632 -1320 -632
WIRE 2424 -616 2424 -1000
WIRE 2520 -616 2424 -616
WIRE 2584 -616 2520 -616
WIRE -856 -584 -856 -696
WIRE -760 -584 -856 -584
WIRE -664 -584 -760 -584
WIRE 2136 -568 2136 -856
WIRE -1144 -536 -1144 -584
WIRE 200 -504 200 -552
WIRE 312 -504 312 -552
WIRE 424 -504 424 -552
WIRE 2328 -504 2264 -504
WIRE 2424 -504 2424 -616
WIRE 2424 -504 2392 -504
WIRE -952 -472 -1016 -472
WIRE -856 -472 -856 -584
WIRE -856 -472 -888 -472
WIRE 2424 -456 2424 -504
WIRE -856 -424 -856 -472
WIRE 1688 -408 1688 -904
WIRE 2136 -408 2136 -488
WIRE 2264 -408 2264 -504
WIRE 2264 -408 2136 -408
WIRE 2360 -408 2264 -408
WIRE -1144 -376 -1144 -456
WIRE -1016 -376 -1016 -472
WIRE -1016 -376 -1144 -376
WIRE -920 -376 -1016 -376
WIRE 200 -376 200 -440
WIRE 312 -376 312 -440
WIRE 424 -376 424 -440
WIRE 1144 -360 1112 -360
WIRE 1624 -360 1144 -360
WIRE 2136 -344 2136 -408
WIRE -1144 -312 -1144 -376
WIRE 1688 -216 1688 -312
WIRE 1688 -216 1208 -216
WIRE 2136 -216 2136 -264
WIRE 2136 -216 1688 -216
WIRE 2424 -216 2424 -360
WIRE 2424 -216 2136 -216
WIRE 2584 -216 2424 -216
WIRE -2552 -184 -2616 -184
WIRE -2408 -184 -2552 -184
WIRE -2248 -184 -2328 -184
WIRE -2184 -184 -2248 -184
WIRE -1144 -184 -1144 -232
WIRE -1144 -184 -1448 -184
WIRE -856 -184 -856 -328
WIRE -856 -184 -1144 -184
WIRE -664 -184 -856 -184
WIRE 1208 -168 1208 -216
WIRE -1448 -136 -1448 -184
WIRE -3064 56 -3064 24
WIRE -1464 120 -1512 120
WIRE -1272 120 -1384 120
WIRE -984 120 -1272 120
WIRE -648 120 -984 120
WIRE 88 120 40 120
WIRE 280 120 168 120
WIRE 568 120 280 120
WIRE 872 120 568 120
WIRE -3064 152 -3064 136
WIRE 872 168 872 120
WIRE 2040 168 1992 168
WIRE 2392 168 2040 168
WIRE 2520 168 2392 168
WIRE 2968 168 2520 168
WIRE 3256 168 2968 168
WIRE -984 184 -984 120
WIRE -648 184 -648 120
WIRE 568 184 568 120
WIRE 2520 200 2520 168
WIRE 808 216 696 216
WIRE -1272 280 -1272 120
WIRE 280 280 280 120
WIRE -1432 328 -1480 328
WIRE -1336 328 -1432 328
WIRE 56 328 -8 328
WIRE 216 328 56 328
WIRE 568 344 568 264
WIRE 696 344 696 216
WIRE 696 344 568 344
WIRE 776 344 696 344
WIRE 872 344 872 264
WIRE 872 344 840 344
WIRE 2392 344 2392 168
WIRE 3256 360 3256 168
WIRE -984 376 -984 264
WIRE -888 376 -984 376
WIRE -808 376 -888 376
WIRE -648 376 -648 264
WIRE -552 376 -648 376
WIRE -456 376 -552 376
WIRE 568 376 568 344
WIRE 280 424 280 376
WIRE 2040 456 2040 168
WIRE -1096 488 -1144 488
WIRE -984 488 -984 376
WIRE -984 488 -1016 488
WIRE -808 488 -808 376
WIRE -744 488 -808 488
WIRE -648 488 -648 376
WIRE -648 488 -680 488
WIRE 472 488 408 488
WIRE 568 488 568 456
WIRE 568 488 536 488
WIRE 2968 488 2968 168
WIRE -984 536 -984 488
WIRE -648 536 -648 488
WIRE 568 536 568 488
WIRE 2520 536 2520 280
WIRE 2904 536 2520 536
WIRE 2392 568 2392 424
WIRE 2424 568 2392 568
WIRE 2520 568 2520 536
WIRE 2520 568 2488 568
WIRE -1272 584 -1272 376
WIRE -1240 584 -1272 584
WIRE -1144 584 -1144 488
WIRE -1144 584 -1160 584
WIRE -1048 584 -1144 584
WIRE -808 584 -808 488
WIRE -712 584 -808 584
WIRE 280 584 280 504
WIRE 408 584 408 488
WIRE 408 584 280 584
WIRE 504 584 408 584
WIRE 872 584 872 344
WIRE 952 584 872 584
WIRE 1016 584 952 584
WIRE 2520 600 2520 568
WIRE 872 632 872 584
WIRE 280 648 280 584
WIRE 2392 648 2392 568
WIRE 2456 648 2392 648
WIRE 2968 728 2968 584
WIRE 3064 728 2968 728
WIRE 3112 728 3064 728
WIRE 2392 744 2392 648
WIRE -984 776 -984 632
WIRE -984 776 -1576 776
WIRE -648 776 -648 632
WIRE -648 776 -984 776
WIRE -456 776 -648 776
WIRE 280 776 280 728
WIRE 280 776 -8 776
WIRE 568 776 568 632
WIRE 568 776 280 776
WIRE 872 776 872 712
WIRE 872 776 568 776
WIRE 1016 776 872 776
WIRE -1576 824 -1576 776
WIRE -8 824 -8 776
WIRE 2520 856 2520 696
WIRE 2520 856 2488 856
WIRE 2968 872 2968 728
WIRE 2520 888 2520 856
WIRE 1976 936 1944 936
WIRE 2184 936 1976 936
WIRE 2312 936 2264 936
WIRE 2424 936 2424 856
WIRE 2424 936 2312 936
WIRE 2456 936 2424 936
WIRE 2312 1000 2312 936
WIRE 2040 1224 2040 536
WIRE 2312 1224 2312 1080
WIRE 2312 1224 2040 1224
WIRE 2392 1224 2392 824
WIRE 2392 1224 2312 1224
WIRE 2520 1224 2520 984
WIRE 2520 1224 2392 1224
WIRE 2968 1224 2968 952
WIRE 2968 1224 2520 1224
WIRE 3416 1224 2968 1224
WIRE 2040 1272 2040 1224
FLAG -3064 152 0
FLAG -2184 24 BIT0
FLAG -3064 24 VCC
FLAG -2264 24 0
FLAG -2184 184 BIT1
FLAG -2264 184 0
FLAG -2184 328 BIT2
FLAG -2264 328 0
FLAG -2184 472 BIT3
FLAG -2264 472 0
FLAG -2184 616 BIT4
FLAG -2264 616 0
FLAG -3400 600 BIT0
FLAG -3400 680 0
FLAG -3240 600 BIT1
FLAG -3240 680 0
FLAG -3080 600 BIT2
FLAG -3080 680 0
FLAG -2920 600 BIT3
FLAG -2920 680 0
FLAG -2760 600 BIT4
FLAG -2760 680 0
FLAG -1448 -136 0
FLAG -760 -584 OUT
FLAG -1320 -632 IN
FLAG -1384 -840 VCC
FLAG -2552 -184 BIT0
FLAG -2248 -184 IN
FLAG -1576 824 0
FLAG -888 376 OUT_LIN
FLAG -1432 328 IN
FLAG -1512 120 VCC
FLAG -552 376 OUT_NN
FLAG 952 584 OUT_NN2
FLAG 40 120 VCC
FLAG -8 824 0
FLAG 56 328 IN
FLAG 424 -376 0
FLAG 424 -552 OUT_NN2
FLAG 312 -376 0
FLAG 312 -552 OUT_NN
FLAG 200 -376 0
FLAG 200 -552 OUT
FLAG 2520 -616 OUT_TC
FLAG 1800 -904 INT2
FLAG 1160 -1272 VCC
FLAG 1144 -360 IN
FLAG 1208 -168 0
FLAG 3064 728 OUT_CB
FLAG 1976 936 IN
FLAG 2040 1272 0
SYMBOL voltage -3064 40 R0
SYMATTR InstName VCC
SYMATTR Value {VCC}
SYMBOL voltage -2168 24 R90
SYMATTR Value2 AC 5
SYMATTR InstName V_BIT0
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {1/freq/2-rise} {1/freq} {16*reps})
SYMBOL voltage -2168 184 R90
SYMATTR InstName V_BIT1
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {2*1/freq/2-rise} {2*1/freq} {8*reps})
SYMBOL voltage -2168 328 R90
SYMATTR InstName V_BIT2
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {4*1/freq/2-rise} {4*1/freq} {4*reps})
SYMBOL voltage -2168 472 R90
SYMATTR InstName V_BIT3
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {8*1/freq/2-rise} {8*1/freq} {2*reps})
SYMBOL voltage -2168 616 R90
SYMATTR InstName V_BIT4
SYMATTR Value PULSE(0 {VCC} 0 {rise} {rise} {16*1/freq/2-rise} {16*1/freq} {1*reps})
SYMBOL res -3416 584 R0
SYMATTR InstName R100
SYMATTR Value 10Mega
SYMBOL res -3256 584 R0
SYMATTR InstName R101
SYMATTR Value 10Mega
SYMBOL res -3096 584 R0
SYMATTR InstName R102
SYMATTR Value 10Mega
SYMBOL res -2936 584 R0
SYMATTR InstName R103
SYMATTR Value 10Mega
SYMBOL res -2776 584 R0
SYMATTR InstName R104
SYMATTR Value 10Mega
SYMBOL npn -920 -424 R0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL schottky -952 -456 R270
SYMATTR InstName D1
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL npn -1208 -680 R0
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL res -872 -792 R0
SYMATTR InstName R3
SYMATTR Value 100
SYMBOL res -1160 -552 R0
SYMATTR InstName R1
SYMATTR Value 220
SYMBOL res -1160 -328 R0
SYMATTR InstName R2
SYMATTR Value 220
SYMBOL res -2312 -200 R90
SYMATTR InstName R200
SYMATTR Value 1m
SYMBOL npn -1048 536 R0
SYMATTR InstName Q5
SYMATTR Value 2N3904
SYMBOL npn -1336 280 R0
SYMATTR InstName Q6
SYMATTR Value 2N3904
SYMBOL res -1000 168 R0
SYMATTR InstName R4
SYMATTR Value 200
SYMBOL res -1000 472 R90
SYMATTR InstName R5
SYMATTR Value 200
SYMBOL res -1144 568 R90
SYMATTR InstName R6
SYMATTR Value 2000
SYMBOL npn -712 536 R0
SYMATTR InstName Q7
SYMATTR Value 2N3904
SYMBOL schottky -744 504 R270
SYMATTR InstName D3
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res -664 168 R0
SYMATTR InstName R9
SYMATTR Value 100
SYMBOL res -1368 104 R90
SYMATTR InstName R10
SYMATTR Value 1m
SYMBOL npn 504 536 R0
SYMATTR InstName Q8
SYMATTR Value 2N3904
SYMBOL schottky 472 504 R270
SYMATTR InstName D4
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL npn 216 280 R0
SYMATTR InstName Q9
SYMATTR Value 2N3904
SYMBOL res 552 168 R0
SYMATTR InstName R14
SYMATTR Value 75
SYMBOL schottky 840 328 R90
SYMATTR InstName D5
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL pnp 808 264 M180
SYMATTR InstName Q10
SYMATTR Value 2N3906
SYMBOL res 552 360 R0
SYMATTR InstName R15
SYMATTR Value 100
SYMBOL res 856 616 R0
SYMATTR InstName R16
SYMATTR Value 100
SYMBOL res 264 408 R0
SYMATTR InstName R17
SYMATTR Value 220
SYMBOL res 264 632 R0
SYMATTR InstName R18
SYMATTR Value 220
SYMBOL res 184 104 R90
SYMATTR InstName R19
SYMATTR Value 1m
SYMBOL cap 408 -504 R0
SYMATTR InstName C4
SYMATTR Value 50p
SYMBOL cap 296 -504 R0
SYMATTR InstName C1
SYMATTR Value 50p
SYMBOL cap 184 -504 R0
SYMATTR InstName C5
SYMATTR Value 50p
SYMBOL npn 2360 -456 R0
SYMATTR InstName Q3
SYMATTR Value 2N3904
SYMBOL schottky 2328 -488 R270
SYMATTR InstName D2
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL npn 2072 -952 R0
SYMATTR InstName Q4
SYMATTR Value 2N3904
SYMBOL res 2408 -1096 R0
SYMATTR InstName R7
SYMATTR Value 100
SYMBOL res 2120 -584 R0
SYMATTR InstName R8
SYMATTR Value 220
SYMBOL res 2120 -360 R0
SYMATTR InstName R11
SYMATTR Value 120
SYMBOL pnp 1624 -312 M180
SYMATTR InstName Q12
SYMATTR Value 2N3906
SYMBOL res 1672 -1256 R0
SYMATTR InstName R13
SYMATTR Value 520
SYMBOL npn 2904 488 R0
SYMATTR InstName Q13
SYMATTR Value 2N3904
SYMBOL res 2376 728 R0
SYMATTR InstName R12
SYMATTR Value 3k
SYMBOL res 2952 856 R0
SYMATTR InstName R20
SYMATTR Value 520
SYMBOL res 2504 184 R0
SYMATTR InstName R22
SYMATTR Value 100
SYMBOL res 2376 328 R0
SYMATTR InstName R23
SYMATTR Value 1k
SYMBOL voltage 2040 440 R0
SYMATTR InstName V1
SYMATTR Value 3.3
SYMBOL npn 2456 600 R0
SYMATTR InstName Q11
SYMATTR Value 2N3904
SYMBOL npn 2456 888 R0
SYMATTR InstName Q14
SYMATTR Value 2N3904
SYMBOL res 2280 920 R90
SYMATTR InstName R24
SYMATTR Value 1k
SYMBOL res 2296 984 R0
SYMATTR InstName R25
SYMATTR Value 520
SYMBOL schottky 2424 584 R270
SYMATTR InstName D6
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL schottky 2424 872 R270
SYMATTR InstName D7
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode