* Z:\tmp\asc_dec_bjh7r6w2\1650d0ac70bb_24counter_flipflop_dec0.asc
* Generated by LTspice 26.0.1 for Windows.
C5 Q2n B2 {Cf}
R20 vcc Q3n {Rt}
D7 0 B2 1N4148
C10 N008 N007 200p
Q4 Q2n B2n 0 0 2N3904
R19 vcc Q3 {Rt}
R14 N003 N005 10k
R16 vcc clk4 100k
R23 N008 0 100k
R6 vcc clk1 100k
R18 Q2n N006 10k
R24 Q3n N007 10k
D18 B5n clk16 1N4148
R25 vcc Q4 {Rt}
D1 B1 clk1 1N4148
R22 B3n Q3 {Rp}
D11 0 B3 1N4148
D10 B3n clk4 1N4148
R7 clk1 0 100k
C9 Q3n B3 {Cf}
C6 clk2 N005 220p
R26 vcc Q4n {Rt}
Q6 Q3n B3n 0 0 2N3904
C16 N010 0 10n
B1 N009 0 V=(V(Q1n)*1+V(Q2n)*2+V(Q3n)*4+V(Q4n)*8+V(Q5n)*16)/11
C14 B5n Q5 {Cf}
D4 0 B1 1N4148
R15 vcc N008 100k
C15 Q5n B5 {Cf}
.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
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 3912 900
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 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 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 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 2800 240 2800 160
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 2784 256 2784 160
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 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 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 864 688 832 688
WIRE 960 688 944 688
WIRE 976 688 960 688
WIRE 832 720 832 688
SYMBOL cap 1216 48 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C5
SYMATTR Value {Cf}
SYMBOL res 2128 -32 R0
SYMATTR InstName R20
SYMATTR Value {Rt}
SYMBOL diode 1088 288 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D7
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 npn 1248 192 R0
SYMATTR InstName Q4
SYMATTR Value 2N3904
SYMBOL res 1760 -32 R0
SYMATTR InstName R19
SYMATTR Value {Rt}
SYMBOL res 704 208 R0
SYMATTR InstName R14
SYMATTR Value 10k
SYMBOL res 1632 288 R0
SYMATTR InstName R16
SYMATTR Value 100k
SYMBOL res 2464 368 R0
SYMATTR InstName R23
SYMATTR Value 100k
SYMBOL res -400 272 R0
SYMATTR InstName R6
SYMATTR Value 100k
SYMBOL res 1536 224 R0
SYMATTR InstName R18
SYMATTR Value 10k
SYMBOL res 2368 224 R0
SYMATTR InstName R24
SYMATTR Value 10k
SYMBOL diode 3680 336 R0
SYMATTR InstName D18
SYMATTR Value 1N4148
SYMBOL res 2592 -32 R0
SYMATTR InstName R25
SYMATTR Value {Rt}
SYMBOL diode 160 304 R0
SYMATTR InstName D1
SYMATTR Value 1N4148
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 1920 304 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D11
SYMATTR Value 1N4148
SYMBOL diode 2000 320 R0
SYMATTR InstName D10
SYMATTR Value 1N4148
SYMBOL res -400 352 R0
SYMATTR InstName R7
SYMATTR Value 100k
SYMBOL cap 2048 64 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C9
SYMATTR Value {Cf}
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 2960 -32 R0
SYMATTR InstName R26
SYMATTR Value {Rt}
SYMBOL npn 2080 208 R0
SYMATTR InstName Q6
SYMATTR Value 2N3904
SYMBOL cap 944 688 R0
SYMATTR InstName C16
SYMATTR Value 10n
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 cap 3616 80 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C14
SYMATTR Value {Cf}
SYMBOL diode 256 288 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D4
SYMATTR Value 1N4148
SYMBOL res 2464 288 R0
SYMATTR InstName R15
SYMATTR Value 100k
SYMBOL cap 3728 80 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C15
SYMATTR Value {Cf}
FLAG 112 288 0
FLAG 192 144 Q1
FLAG 416 144 Q1n
FLAG 192 224 B1
FLAG 384 240 B1n
FLAG 320 368 clk1
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 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 2688 160 Q4
FLAG 2912 160 Q4n
FLAG 3456 0 vcc
FLAG 3824 0 vcc
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 832 800 0
FLAG 960 752 0