Chapter Eight
Chapter Eight
Counters
.
Debre Berhan University, February 2013 E.C.
Topics
• Introduction to counters
• Asynchronous counters
• Synchronous counters
• Up/down counters
• Design of synchronous counters
Digital Counters
Introduction
• a counter is a sequential logic circuit consisting of a set of
flip flops which can go through a sequence of states.
Q1Q0 Q1Q0
00 01
01 10
10 11
11 00
State table State diagram
Debre Berhan University, February 2013 E.C.
Asynchronous counter…
• MOD 4 Asynchronous Up Counter
A two-bit asynchronous counter is shown
on the left. The external clock is connected
to the clock input of the first flip-flop (FF0)
only. So, FF0 changes state at the falling
edge of each clock pulse, but FF1 changes
only when triggered by the falling edge of
the Q output of FF0.
Exercise 1:
1. Draw MOD-5 and MOD-10 (Decade) Ripple Up- counter (MOD ≠
2 N)
0 00
Binary 11 01
3 1
2 10
Synchronous Counters Design…
Step 2: Obtain the Excitation Table, two J K flip flops are used.
Present State Next State Input, J K
B A B A J B KB JA KA
0 0 0 1 0 1 X
X
0 1 1 0 1 X 1
A A 0 1
B 0 1
B
0 0 1
JB = A
0
X X KB = A
1
X X 1 0 1
A A 0 1
0 1 B
B
0
X 1 KA = 1
0 1 X JA = 1
1 1 X 1
1 X
•Step 4: Draw the circuit
A (LSB) B (MSB)
1
JA QA J B QB
CLK CLK
KA Q A KB QB
M = 7, M = 2n-1 = 7
n
2 =N , so, N = 7+1 = 8, MOD 8
2n = 8, n = 3
1 0 x 1
000 011 1 1 x 0
Synchronous Counter to Count 4,7,3,0 and 2 respectively
4 1 0 0 1 1 1 x 0 1 x 1 x
7 1 1 1 0 1 1 x 1 x 0 x 0
3 0 1 1 0 0 0 0 x x 1 x 1
0 0 0 0 0 1 0 0 x 1 x 0 x
2 0 1 0 1 0 0 1 x x 1 0 x
Synchronous Counter to Count 4,7,3,0 and 2 respectively
Step 4: Karnough Map and
Simplified Function
CB 00 01 11
10
A
0 K-Map For
0 0 x 1 JA = QC
1
x x x x
Synchronous Counter to Count 4,7,3,0 and 2 respectively
Step 5 : Perform Counter Circuit
KA = QC,
By using simplified function from K-Map, JA = QC,
JB = 1, KB = QC, JC = QA + QB, KC = QB
Exercise 3:
1. Design a counter to count in the following sequence:
15,9,11,5,2,13,1.
Thank you,
Questions?