* Z:\home\khalils\Downloads\files\data\raw_asc\1650d0ac70bb_24counter_flipflop.asc
* Generated by LTspice 26.0.1 for Windows.
R1 vcc Q1 {Rt}
V1 vcc 0 12
Q1 Q1n B1n 0 0 2N3904
Q2 Q1 B1 0 0 2N3904
R2 vcc Q1n {Rt}
R3 Q1n B1 {Rp}
R4 B1n Q1 {Rp}
D1 B1 clk1 1N4148
D2 B1n clk1 1N4148
V2 N001 0 PULSE(12 0 5m 1u 1u 50u 5m)
Q3 B1n P001 0 0 2N3904
V3 N008 0 PULSE(0 12 1m 10u 10u 1m)
R5 P001 N008 10k
C1 B1n Q1 {Cf}
C2 Q1n B1 {Cf}
C3 clk1 N001 1n
D4 0 B1 1N4148
D5 0 B1n 1N4148
R6 vcc clk1 100k
R7 clk1 0 100k
C6 clk2 N002 220p
R12 vcc clk2 100k
R13 clk2 0 100k
R14 Q1n N002 10k
R8 vcc Q2 {Rt}
Q4 Q2n B2n 0 0 2N3904
Q5 Q2 B2 0 0 2N3904
R9 vcc Q2n {Rt}
R10 Q2n B2 {Rp}
R11 B2n Q2 {Rp}
D3 B2 clk2 1N4148
D6 B2n clk2 1N4148
C4 B2n Q2 {Cf}
C5 Q2n B2 {Cf}
D7 0 B2 1N4148
D8 0 B2n 1N4148
C7 clk4 N003 220p
R16 vcc clk4 100k
R17 clk4 0 100k
R18 Q2n N003 10k
R19 vcc Q3 {Rt}
Q6 Q3n B3n 0 0 2N3904
Q7 Q3 B3 0 0 2N3904
R20 vcc Q3n {Rt}
R21 Q3n B3 {Rp}
R22 B3n Q3 {Rp}
D9 B3 clk4 1N4148
D10 B3n clk4 1N4148
C8 B3n Q3 {Cf}
C9 Q3n B3 {Cf}
D11 0 B3 1N4148
D12 0 B3n 1N4148
C10 clk8 N004 200p
R15 vcc clk8 100k
R23 clk8 0 100k
R24 Q3n N004 10k
R25 vcc Q4 {Rt}
Q8 Q4n B4n 0 0 2N3904
Q9 Q4 B4 0 0 2N3904
R26 vcc Q4n {Rt}
R27 Q4n B4 {Rp}
R28 B4n Q4 {Rp}
D13 B4 clk8 1N4148
D14 B4n clk8 1N4148
C11 B4n Q4 {Cf}
C12 Q4n B4 {Cf}
D15 0 B4 1N4148
D16 0 B4n 1N4148
C13 clk16 N005 200p
R29 vcc clk16 100k
R30 clk16 0 100k
R31 Q4n N005 10k
R32 vcc Q5 {Rt}
Q10 Q5n B5n 0 0 2N3904
Q11 Q5 B5 0 0 2N3904
R33 vcc Q5n {Rt}
R34 Q5n B5 {Rp}
R35 B5n Q5 {Rp}
D17 B5 clk16 1N4148
D18 B5n clk16 1N4148
C14 B5n Q5 {Cf}
C15 Q5n B5 {Cf}
D19 0 B5 1N4148
D20 0 B5n 1N4148
B1 N006 0 V=(V(Q1n)*1+V(Q2n)*2+V(Q3n)*4+V(Q4n)*8+V(Q5n)*16)/11
R36 N007 N006 10k
C16 N007 0 10n
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.tran 250m
.param Rt=10k Cf=220p Rp=100k
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 3912 900
WIRE 112 64 112 48
WIRE 208 64 112 64
WIRE 288 64 272 64
WIRE 320 64 304 64
WIRE 480 64 480 48
WIRE 480 64 384 64
WIRE 944 64 944 48
WIRE 1040 64 944 64
WIRE 1120 64 1104 64
WIRE 1152 64 1136 64
WIRE 1312 64 1312 48
WIRE 1312 64 1216 64
WIRE 1776 80 1776 64
WIRE 1872 80 1776 80
WIRE 1952 80 1936 80
WIRE 1984 80 1968 80
WIRE 2144 80 2144 64
WIRE 2144 80 2048 80
WIRE 2608 80 2608 64
WIRE 2704 80 2608 80
WIRE 2784 80 2768 80
WIRE 2816 80 2800 80
WIRE 2976 80 2976 64
WIRE 2976 80 2880 80
WIRE 3456 96 3456 80
WIRE 3552 96 3456 96
WIRE 3632 96 3616 96
WIRE 3664 96 3648 96
WIRE 3824 96 3824 80
WIRE 3824 96 3728 96
WIRE 480 112 480 64
WIRE 720 112 480 112
WIRE 1312 128 1312 64
WIRE 1552 128 1312 128
WIRE 2144 128 2144 80
WIRE 2384 128 2144 128
WIRE 112 144 112 64
WIRE 192 144 112 144
WIRE 208 144 192 144
WIRE 288 144 288 64
WIRE 304 144 304 64
WIRE 416 144 384 144
WIRE 480 144 480 112
WIRE 480 144 416 144
WIRE 944 144 944 64
WIRE 1024 144 944 144
WIRE 1040 144 1024 144
WIRE 1120 144 1120 64
WIRE 1136 144 1136 64
WIRE 1248 144 1216 144
WIRE 1312 144 1312 128
WIRE 1312 144 1248 144
WIRE 2976 144 2976 80
WIRE 3232 144 2976 144
WIRE 1776 160 1776 80
WIRE 1856 160 1776 160
WIRE 1872 160 1856 160
WIRE 1952 160 1952 80
WIRE 1968 160 1968 80
WIRE 2080 160 2048 160
WIRE 2144 160 2144 128
WIRE 2144 160 2080 160
WIRE 2608 160 2608 80
WIRE 2688 160 2608 160
WIRE 2704 160 2688 160
WIRE 2784 160 2784 80
WIRE 2800 160 2800 80
WIRE 2912 160 2880 160
WIRE 2976 160 2976 144
WIRE 2976 160 2912 160
WIRE 3456 176 3456 96
WIRE 3536 176 3456 176
WIRE 3552 176 3536 176
WIRE 3632 176 3632 96
WIRE 3648 176 3648 96
WIRE 3760 176 3728 176
WIRE 3824 176 3824 96
WIRE 3824 176 3760 176
WIRE 112 192 112 144
WIRE 480 192 480 144
WIRE 944 192 944 144
WIRE 1312 192 1312 144
WIRE 1776 208 1776 160
WIRE 2144 208 2144 160
WIRE 2608 208 2608 160
WIRE 2976 208 2976 160
WIRE 192 224 176 224
WIRE 240 224 192 224
WIRE 304 224 304 144
WIRE 304 224 240 224
WIRE 720 224 720 112
WIRE 1024 224 1008 224
WIRE 1072 224 1024 224
WIRE 1136 224 1136 144
WIRE 1136 224 1072 224
WIRE 3456 224 3456 176
WIRE 3824 224 3824 176
WIRE 176 240 176 224
WIRE 288 240 288 144
WIRE 352 240 288 240
WIRE 384 240 352 240
WIRE 416 240 384 240
WIRE 1008 240 1008 224
WIRE 1120 240 1120 144
WIRE 1184 240 1120 240
WIRE 1216 240 1184 240
WIRE 1248 240 1216 240
WIRE 1552 240 1552 128
WIRE 1856 240 1840 240
WIRE 1904 240 1856 240
WIRE 1968 240 1968 160
WIRE 1968 240 1904 240
WIRE 2384 240 2384 128
WIRE 2688 240 2672 240
WIRE 2736 240 2688 240
WIRE 2800 240 2800 160
WIRE 2800 240 2736 240
WIRE 1840 256 1840 240
WIRE 1952 256 1952 160
WIRE 2016 256 1952 256
WIRE 2048 256 2016 256
WIRE 2080 256 2048 256
WIRE 2672 256 2672 240
WIRE 2784 256 2784 160
WIRE 2848 256 2784 256
WIRE 2880 256 2848 256
WIRE 2912 256 2880 256
WIRE 3232 256 3232 144
WIRE 3536 256 3520 256
WIRE 3584 256 3536 256
WIRE 3648 256 3648 176
WIRE 3648 256 3584 256
WIRE 3520 272 3520 256
WIRE 3632 272 3632 176
WIRE 3696 272 3632 272
WIRE 3728 272 3696 272
WIRE 3760 272 3728 272
WIRE 176 304 176 240
WIRE 352 304 352 240
WIRE 1008 304 1008 240
WIRE 1184 304 1184 240
WIRE 1840 320 1840 256
WIRE 2016 320 2016 256
WIRE 2672 320 2672 256
WIRE 2848 320 2848 256
WIRE 3520 336 3520 272
WIRE 3696 336 3696 272
WIRE -480 368 -592 368
WIRE -384 368 -416 368
WIRE 176 368 -384 368
WIRE 320 368 176 368
WIRE 352 368 320 368
WIRE 720 368 720 304
WIRE 816 368 784 368
WIRE 1008 368 816 368
WIRE 1152 368 1008 368
WIRE 1184 368 1152 368
WIRE 1552 384 1552 320
WIRE 1648 384 1616 384
WIRE 1840 384 1648 384
WIRE 1984 384 1840 384
WIRE 2016 384 1984 384
WIRE 2384 384 2384 320
WIRE 2480 384 2448 384
WIRE 2672 384 2480 384
WIRE 2816 384 2672 384
WIRE 2848 384 2816 384
WIRE 3232 400 3232 336
WIRE 3328 400 3296 400
WIRE 3520 400 3328 400
WIRE 3664 400 3520 400
WIRE 3696 400 3664 400
WIRE -384 464 -384 448
WIRE 816 464 816 448
WIRE 1648 480 1648 464
WIRE 2480 480 2480 464
WIRE 3328 496 3328 480
WIRE 864 688 832 688
WIRE 960 688 944 688
WIRE 976 688 960 688
WIRE 832 720 832 688
WIRE 400 752 400 736
WIRE 256 800 192 800
FLAG -608 112 0
FLAG -608 32 vcc
FLAG 112 -32 vcc
FLAG 480 -32 vcc
FLAG 112 288 0
FLAG 480 288 0
FLAG 192 144 Q1
FLAG 416 144 Q1n
FLAG 192 224 B1
FLAG 384 240 B1n
FLAG 320 368 clk1
FLAG 400 848 0
FLAG 192 880 0
FLAG -592 448 0
FLAG 288 304 0
FLAG 240 288 0
FLAG -384 288 vcc
FLAG -384 464 0
FLAG 816 288 vcc
FLAG 816 464 0
FLAG 944 -32 vcc
FLAG 1312 -32 vcc
FLAG 944 288 0
FLAG 1312 288 0
FLAG 1024 144 Q2
FLAG 1248 144 Q2n
FLAG 1024 224 B2
FLAG 1216 240 B2n
FLAG 1152 368 clk2
FLAG 1120 304 0
FLAG 1072 288 0
FLAG 1648 304 vcc
FLAG 1648 480 0
FLAG 1776 -16 vcc
FLAG 2144 -16 vcc
FLAG 1776 304 0
FLAG 2144 304 0
FLAG 1856 160 Q3
FLAG 2080 160 Q3n
FLAG 1856 240 B3
FLAG 2048 256 B3n
FLAG 1984 384 clk4
FLAG 1952 320 0
FLAG 1904 304 0
FLAG 2480 304 vcc
FLAG 2480 480 0
FLAG 2608 -16 vcc
FLAG 2976 -16 vcc
FLAG 2608 304 0
FLAG 2976 304 0
FLAG 2688 160 Q4
FLAG 2912 160 Q4n
FLAG 2688 240 B4
FLAG 2880 256 B4n
FLAG 2816 384 clk8
FLAG 2784 320 0
FLAG 2736 304 0
FLAG 3328 320 vcc
FLAG 3328 496 0
FLAG 3456 0 vcc
FLAG 3824 0 vcc
FLAG 3456 320 0
FLAG 3824 320 0
FLAG 3536 176 Q5
FLAG 3760 176 Q5n
FLAG 3536 256 B5
FLAG 3728 272 B5n
FLAG 3664 400 clk16
FLAG 3632 336 0
FLAG 3584 320 0
FLAG 400 736 B1n
FLAG 832 800 0
FLAG 960 752 0
SYMBOL res 96 -48 R0
SYMATTR InstName R1
SYMATTR Value {Rt}
SYMBOL voltage -608 16 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 12
SYMBOL npn 416 192 R0
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL npn 176 192 M0
SYMATTR InstName Q2
SYMATTR Value 2N3904
SYMBOL res 464 -48 R0
SYMATTR InstName R2
SYMATTR Value {Rt}
SYMBOL res 400 128 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value {Rp}
SYMBOL res 304 128 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R4
SYMATTR Value {Rp}
SYMBOL diode 160 304 R0
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL diode 336 304 R0
SYMATTR InstName D2
SYMATTR Value 1N4148
SYMBOL voltage -592 352 R0
WINDOW 3 -417 51 Left 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value PULSE(12 0 5m 1u 1u 50u 5m)
SYMBOL npn 336 752 R0
SYMATTR InstName Q3
SYMATTR Value 2N3904
SYMBOL voltage 192 784 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value PULSE(0 12 1m 10u 10u 1m)
SYMBOL res 352 784 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R5
SYMATTR Value 10k
SYMBOL cap 272 48 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value {Cf}
SYMBOL cap 384 48 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C2
SYMATTR Value {Cf}
SYMBOL cap -416 352 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C3
SYMATTR Value 1n
SYMBOL diode 256 288 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D4
SYMATTR Value 1N4148
SYMBOL diode 304 304 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D5
SYMATTR Value 1N4148
SYMBOL res -400 272 R0
SYMATTR InstName R6
SYMATTR Value 100k
SYMBOL res -400 352 R0
SYMATTR InstName R7
SYMATTR Value 100k
SYMBOL cap 784 352 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C6
SYMATTR Value 220p
SYMBOL res 800 272 R0
SYMATTR InstName R12
SYMATTR Value 100k
SYMBOL res 800 352 R0
SYMATTR InstName R13
SYMATTR Value 100k
SYMBOL res 704 208 R0
SYMATTR InstName R14
SYMATTR Value 10k
SYMBOL res 928 -48 R0
SYMATTR InstName R8
SYMATTR Value {Rt}
SYMBOL npn 1248 192 R0
SYMATTR InstName Q4
SYMATTR Value 2N3904
SYMBOL npn 1008 192 M0
SYMATTR InstName Q5
SYMATTR Value 2N3904
SYMBOL res 1296 -48 R0
SYMATTR InstName R9
SYMATTR Value {Rt}
SYMBOL res 1232 128 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R10
SYMATTR Value {Rp}
SYMBOL res 1136 128 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R11
SYMATTR Value {Rp}
SYMBOL diode 992 304 R0
SYMATTR InstName D3
SYMATTR Value 1N4148
SYMBOL diode 1168 304 R0
SYMATTR InstName D6
SYMATTR Value 1N4148
SYMBOL cap 1104 48 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C4
SYMATTR Value {Cf}
SYMBOL cap 1216 48 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C5
SYMATTR Value {Cf}
SYMBOL diode 1088 288 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D7
SYMATTR Value 1N4148
SYMBOL diode 1136 304 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D8
SYMATTR Value 1N4148
SYMBOL cap 1616 368 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C7
SYMATTR Value 220p
SYMBOL res 1632 288 R0
SYMATTR InstName R16
SYMATTR Value 100k
SYMBOL res 1632 368 R0
SYMATTR InstName R17
SYMATTR Value 100k
SYMBOL res 1536 224 R0
SYMATTR InstName R18
SYMATTR Value 10k
SYMBOL res 1760 -32 R0
SYMATTR InstName R19
SYMATTR Value {Rt}
SYMBOL npn 2080 208 R0
SYMATTR InstName Q6
SYMATTR Value 2N3904
SYMBOL npn 1840 208 M0
SYMATTR InstName Q7
SYMATTR Value 2N3904
SYMBOL res 2128 -32 R0
SYMATTR InstName R20
SYMATTR Value {Rt}
SYMBOL res 2064 144 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R21
SYMATTR Value {Rp}
SYMBOL res 1968 144 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R22
SYMATTR Value {Rp}
SYMBOL diode 1824 320 R0
SYMATTR InstName D9
SYMATTR Value 1N4148
SYMBOL diode 2000 320 R0
SYMATTR InstName D10
SYMATTR Value 1N4148
SYMBOL cap 1936 64 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C8
SYMATTR Value {Cf}
SYMBOL cap 2048 64 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C9
SYMATTR Value {Cf}
SYMBOL diode 1920 304 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D11
SYMATTR Value 1N4148
SYMBOL diode 1968 320 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D12
SYMATTR Value 1N4148
SYMBOL cap 2448 368 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C10
SYMATTR Value 200p
SYMBOL res 2464 288 R0
SYMATTR InstName R15
SYMATTR Value 100k
SYMBOL res 2464 368 R0
SYMATTR InstName R23
SYMATTR Value 100k
SYMBOL res 2368 224 R0
SYMATTR InstName R24
SYMATTR Value 10k
SYMBOL res 2592 -32 R0
SYMATTR InstName R25
SYMATTR Value {Rt}
SYMBOL npn 2912 208 R0
SYMATTR InstName Q8
SYMATTR Value 2N3904
SYMBOL npn 2672 208 M0
SYMATTR InstName Q9
SYMATTR Value 2N3904
SYMBOL res 2960 -32 R0
SYMATTR InstName R26
SYMATTR Value {Rt}
SYMBOL res 2896 144 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R27
SYMATTR Value {Rp}
SYMBOL res 2800 144 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R28
SYMATTR Value {Rp}
SYMBOL diode 2656 320 R0
SYMATTR InstName D13
SYMATTR Value 1N4148
SYMBOL diode 2832 320 R0
SYMATTR InstName D14
SYMATTR Value 1N4148
SYMBOL cap 2768 64 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C11
SYMATTR Value {Cf}
SYMBOL cap 2880 64 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C12
SYMATTR Value {Cf}
SYMBOL diode 2752 304 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D15
SYMATTR Value 1N4148
SYMBOL diode 2800 320 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D16
SYMATTR Value 1N4148
SYMBOL cap 3296 384 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C13
SYMATTR Value 200p
SYMBOL res 3312 304 R0
SYMATTR InstName R29
SYMATTR Value 100k
SYMBOL res 3312 384 R0
SYMATTR InstName R30
SYMATTR Value 100k
SYMBOL res 3216 240 R0
SYMATTR InstName R31
SYMATTR Value 10k
SYMBOL res 3440 -16 R0
SYMATTR InstName R32
SYMATTR Value {Rt}
SYMBOL npn 3760 224 R0
SYMATTR InstName Q10
SYMATTR Value 2N3904
SYMBOL npn 3520 224 M0
SYMATTR InstName Q11
SYMATTR Value 2N3904
SYMBOL res 3808 -16 R0
SYMATTR InstName R33
SYMATTR Value {Rt}
SYMBOL res 3744 160 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R34
SYMATTR Value {Rp}
SYMBOL res 3648 160 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R35
SYMATTR Value {Rp}
SYMBOL diode 3504 336 R0
SYMATTR InstName D17
SYMATTR Value 1N4148
SYMBOL diode 3680 336 R0
SYMATTR InstName D18
SYMATTR Value 1N4148
SYMBOL cap 3616 80 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C14
SYMATTR Value {Cf}
SYMBOL cap 3728 80 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C15
SYMATTR Value {Cf}
SYMBOL diode 3600 320 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D19
SYMATTR Value 1N4148
SYMBOL diode 3648 336 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D20
SYMATTR Value 1N4148
SYMBOL bv 832 704 R0
SYMATTR InstName B1
SYMATTR Value V=(V(Q1n)*1+V(Q2n)*2+V(Q3n)*4+V(Q4n)*8+V(Q5n)*16)/11
SYMBOL res 960 672 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R36
SYMATTR Value 10k
SYMBOL cap 944 688 R0
SYMATTR InstName C16
SYMATTR Value 10n
TEXT -858 592 Left 2 !.tran 250m
TEXT -64 448 Left 2 !.param Rt=10k Cf=220p Rp=100k