Professional Documents
Culture Documents
Content
1.
Introductory Concepts
2.
Numbering Systems
3.
Boolean Algebra
4.
Combinational Logic
5.
Flip-Flops
6.
Digital Arithmetic
IC Logic Families
9.
2.
3.
IC Asynchronous Counters
4.
5.
6.
Decoding a Counter
7.
Decoding Glitches
8.
IC Registers
Counter?
Counter ?
output
reset
input
preset
max count
Revision
J K F/F (Revision)
J K
0 0
A
A0
0 1
1 0
0
1
(No change)
(Clear)
(Set)
A0
(Toggle)
J
CLK
A
A0
0 1
1 0
0
1
(No change)
(Clear)
(Set)
A0
(Toggle)
CLK
J & K must be
set to Toggle
mode
A
A0
0 1
1 0
0
1
(No change)
(Clear)
(Set)
A0
(Toggle)
preset
A
J
CLK
clear
1
Preset and Clear
must be set to inactive
Mod 2 counter
CLK
CLK
1 0
CLK
CLK
B
3
A
4
K
7
CLK
MSB
LSB
CLK
B
1
CLK
K
3
K
7
Max count =?
CLK
Number of states
in a cycle =?
LSB
A
Mod number =?
MSB
B
00 01 10 11
00 01
...
00 01 10 11
10
MSB
LSB
CLK
B
1
CLK
K
3
K
7
Max count = 3
CLK
Number of
states in a
cycle = 4
LSB
A
MSB
B
00 01 10 11
00 01
...
Mod number =
4
00 01 10 11
11
Another e.g.
Guess, what is the mod number of this counter?
D
CLK
CLK
CLK
J
CLK
12
MSB
D
CLK
CLK
CLK
J
CLK
13
10
11
12
13
14
15
16
17
CLK
LSB
MSB
D
0000
0010
0001
0100
0011
0110
0101
1000
0111
1010
1001
1100
1011
1110
1101
0000**
1111
14
15
16
17
18
1-bit
counter
2-bit
counter
3-bit
counter
4-bit
counter
Number of F/F
(N)
Mod number
(2N)
Max Count
(2N - 1)
16
15
19
CLK
CLK
CLK
J
CLK
20
CLK
CLK
CLK
J
CLK
Ans: 27=128
Chp 7 Counters & Registers
21
22
23
CLK
CLK
CLK
J
CLK
24
CLK
CLK
CLK
J
CLK
01012 = 510
5 + 27 = 32
MOD 16 counter counts from 0 to 15, 0 to 15,
(keep subtracting 16 until the number is less than 16)
32 16 = 16
16 16 = 0
Ans: 0000
Chp 7 Counters & Registers
25
26
27
LSB
MSB
D
CLK
CLK
CLK
J
CLK
28
16 khz
A
8 khz
B
4 khz
C
2 khz
D
29
30
...
How do we build a counter with MOD number < 2N ?
31
32
CLK
CLR
CLK
CLR
J
CLK
CLR
33
CLK
CLR
CLK
CLR
J
CLK
CLR
34
CLK
CLR
CLK
CLR
J
CLK
CLR
35
CLK
CLR
CLK
CLR
J
CLK
CLR
36
CLK
CLR
CLK
CLR
J
CLK
CLR
610 = 1102
when the counter reaches 6 C=1, B=1, A=0
And we want to clear the counter when the counter reaches 6
37
CLK
CLR
CLK
CLR
J
CLK
CLR
38
CLK
CLR
CLK
CLR
J
CLK
CLR
39
CLK
CLR
CLK
CLR
J
CLK
CLR
C
B
Decoding Circuit
detecting 6 to produce 0
40
0
C
0
B
CLK
CLR
0 C
0 B
0 10
A
CLK
CLR
J
CLK
CLR
41
0
C
1
B
CLK
CLR
0 C
0 B
1 10
A
CLK
CLR
J
CLK
CLR
42
1
C
0
B
CLK
CLR
0 C
1 B
2 10
A
CLK
CLR
J
CLK
CLR
43
1
C
1
B
CLK
CLR
0 C
1 B
310
A
CLK
CLR
J
CLK
CLR
44
0
C
0
B
CLK
CLR
1 C
0 B
4 10
A
CLK
CLR
J
CLK
CLR
45
0
C
1
B
CLK
CLR
1 C
0 B
5 10
A
CLK
CLR
J
CLK
CLR
46
1
C
0
B
CLK
CLR
1 C
1 B
6 10
A
CLK
CLR
J
CLK
CLR
reset counter
Note, the moment the counter reaches 6,
it resets to 0. i.e. it is momentary
47
0
C
0
B
CLK
CLR
0 C
0 B
0 10
A
CLK
CLR
J
CLK
CLR
48
110
101
CBA
Note: The
moment the
counter reaches
110, it resets
immediately to 0.
Therefore the
count sequence is
from 0 to 5
001
010
011
100
Chp 7 Counters & Registers
49
10
11 12
CLK
Note: Some
waveforms
are no more
symmetrical
C
Decoder
output
001
000
010
011
101 000
011
101 000 001
100
100
110
010
110
50
51
110
010
101
100
011
52
CLK
CLR
CLK
CLR
CLK
CLR
30kHz
CLK
CLR
B
C
D
53
CLK
D
CLR
CLK
CLR
B
C
D
CLK
CLR
30kHz
CLK
CLR
54
CLK
CLR
CLK
CLR
CLK
CLR
30kHz
CLK
CLR
B
C
D
55
CLK
CLR
CLK
CLR
CLK
CLR
30kHz
CLK
CLR
B
C
D
56
57
58
CLK
CLR
CLK
CLR
D
B
CLK
CLR
CLK
CLR
59
60
60Hz
Pulse
shaper
1Hz
MOD-60
counter
Counters
displays, etc
http://www.howstuffworks.com/digital-clock1.htm
61
62
FFs is required
111100
should be connected be to
63
64
CP0
CP
CD
CP
CD
CP
CD
Q
CP
CD
CP1
MR2
MR1
Q0
Q1
Q2
Q3
65
66
CP0
74LS293
CP1
MR2
MR1
Q0
Q1
Q2
Q3
67
68
CP1
CP0
74LS293
MR1 MR2
Q3 Q2 Q1 Q0 Obtain output
X X X from Q0
69
70
CP0
74LS293
MR1 MR2
Q3 Q2 Q1 Q0 Obtain output
from Q3 Q2 Q1
MSB LSB X
71
72
74LS293
MR1 MR2
Q 3 Q2 Q 1 Q 0
MSB
Obtain output
from Q3 Q2 Q1 Q0
LSB
73
74
CP1
74LS293
MR1 MR2
Q 3 Q2 Q 1 Q0
MSB
LSB
75
76
CP1
CP0
Q3Q2Q1
74LS293
MR1 MR2
Q 3 Q2 Q 1 Q 0
Q0: LSB
Q3: MSB
77
FFs is required.
111100
78
CP1
CP0
CP1
74LS293
CP0
74LS293
MR1 MR2
Q 3 Q 2 Q 1Q 0
QF QE QD
79
MOD-? Counter
CP1
CP0
CP1
74LS293
CP0
74LS293
MR1 MR2
Q 3 Q 2 Q 1Q 0
MOD-6
MOD-10
80
MOD-? Counter
CP1
CP0
CP1
74LS293
fin
CP0
74LS293
MR1 MR2
fin/10
MOD-10
Q 3 Q 2 Q 1Q 0
MOD-6
fin/10/6
= fin/60
81
MOD-? Counter
CP1
CP0
CP1
74LS293
fin
CP0
74LS293
MR1 MR2
Q 3 Q 2 Q 1Q 0
fin/60
MOD-10
MOD-6
82
Summary
For mod number = 2N, tie MR1 and MR to ground
For mod number <= 8, use the 3-bit ripple counter
section (Q3 Q2 Q1) with clock at CP1
For mod number > 8 but <=16, connect Q0 to CP1 and
CP0
clock input to
For mod number >16, cascade additional ICs
Two or more counters can be cascaded to provide an
overall MOD number equal to the product of their
individual MOD numbers
Chp 7 Counters & Registers
84
85
74LS293
Draw the Q3
waveform, and
examine the
counting sequence
86
10
11 12
CLK
Q1
Q2
Q3
001
000
010
011
100
101
000
011
001
010
100
Note: MSB
(Q3)
waveform is
not
101 000 symmetrical
87
74LS293
CP1
CP0
74LS293
MOD 2
MOD 3
Overall MOD Number = 3 X 2 = 6
88
10
11 12
CLK
Note: MSB
(C)
waveform is
symmetrical
001
000
010
100
101
110
000
100
001
010
110
101
000
89
90
CP1
CP0
fin
CP1
74LS293
D
24 = 12 * 2 ,
CP0
74LS293
E
MR1 MR2
Q 3 Q 2 Q1 Q0
1210 = 11002
91
CP1
CP0
74LS293
fin
CP1
CP0
74LS293
E
MR1 MR2
Q 3 Q 2 Q1 Q0
5 F/Fs needed
Reset at 2410 = 110002
92
93