CHAPTER 3
Counters
Overview
Introduction
Asynchronous Counter
Synchronous Counter
Design Synchronous Counter
Introduction
0 1 0 1 0
0 0 1 1 0
CLOCK PULSE Q1 Q0
Initially 0 0
1 0 1
2 1 0
3 1 1
4 (recycles) 0 0
3-bit asynchronous binary counter &
timing diagram (1 cycle)
CLOCK PULSE Q2 Q1 Q0
Initially 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1
8 (recycles) 0 0 0
Propagation delay
Example:
Show how an asynchronous counter can be
implemented having a modulus of twelve with a
straight binary sequence from 0000 through
1011.
EXERCISE
Solution:
Q3 Q2 Q1 Q0
0 000
: : ::
1 011
1 100
Q0Q1
J0 Q0 J1 Q1 J2 Q2
C C C
K0 K1 K2
CLK
18
SYNCHRONOUS COUNTER
OPERATION
0 1 0 1 0
0 0 1 1 0
CLOCK PULSE Q1 Q0
Initially 0 0
1 0 1
2 1 0
3 1 1
4 (recycles) 0 0
A 3-bit synchronous binary
counter
A 3-bit synchronous binary
counter
The Binary State Sequence for
a 3-bit Binary Counter
CLOCK PULSE Q2 Q1 Q0
Initially 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1
8 (recycles) 0 0 0
Points where the AND gate outputs are HIGH are indicated by the shaded areas.
Synchronous BCD Decade
Counter
25
A 4-Bit Synchronous BCD
Decade Counter
The Binary State Sequence for BCD
Decade Counter
CLOCK PULSE Q3 Q2 Q1 Q0
Initially 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 (recycles) 0 0 0 0
DESIGN OF SYNCHRONOUS
COUNTERS
QN QN+1 J K
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
QN : present state
Q2 Q1 Q0 Q2 Q1 Q0
0 0 1 0 1 0
0 1 0 1 0 1
1 0 1 1 1 1
1 1 1 0 0 1
Transition Table for a J-K flip-flop
QN QN+1 J K
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
EXAMPLE : K-MAP
EXAMPLE : COUNTER CIRCUIT
Example 2: State diagram for a 3-bit
up/down Gray code counter.
J and K maps. The UP/DOWN control input,
Y, is treated as a fourth variable
3-bit up/down Gray code
counter