Chapter 9 Counter
Chapter 9 Counter
Synchronous Counter
• At the end of this chapter, students should
be able to:-
• Differentiate between asynchronous counter and
synchronous counter. .
• Design an asynchronous counter.
• Design a synchronous counter.
• Analyse a synchronous counter.
10/9/2012 RA/Sept2013-Jan2014 2
• Flip-flops are wired together to form binary counters.
• They are used to measure the frequency of a signal and are used in
digital clock.
• Counters characteristics:
– Modulus of counter - the maximum number of counts to complete the
counting cycles.
– Can count either up or down.
– Can operate asynchronously (ripple) or synchronously.
– Free running or self stopping.
10/9/2012 RA/Sept2012-Jan2013 3
• Also known as ripple counter.
• Example: Modulo-4 or mod-4 counter.
• A counter that counts from 00 to 11 (0 to 3) is called modulo-4 or
mod-4 counter.
• The modulus of a counter is the number of counts the counter goes
through.
• Note that each flip-flop is in its toggle mode.
• Each flip-flop output drives the CLK input of
the next flip-flop.
1 J SET
Q 1 J SET Q A B
Clock pulse A B
1 K Q 1 K CLR Q
CLR
10/9/2012 RA/Sept2012-Jan2013 4
• The clock pulse is applied to the clock of flip-flop A.
• The output of flip-flop A is connected to the clock of flip-flop B.
• Flip-flop A will toggle (change to its opposite state) each time a clock
pulse make a transition.
• The output of flip-flop A will act as the clock for flip-flop B, and so
the output B will toggle each time A goes from transition.
• The counting sequence is 00, 01, 10, 11.
CLK 0 1 2 3 4 5 6 7 8 9
AB 00 01 10 11 00 01 10 11 00 01
10/9/2012 RA/Sept2012-Jan2013 5
• Synchronous counters can be designed to produce special purpose count
sequences of nonconsecutive numbers (0, 2, 4,6).
• Excitation table
0 1
X1
10/9/2012 RA/Sept2012-Jan2013 6
Example:
0 0 0 1 0 1 O x 1 x 0 1
1 0 1 2 1 0 1 x x 1 X1
2 1 0 3 1 1 x 0 1 x
3 1 1 0 0 0 x 1 x 1
10/9/2012 RA/Sept2012-Jan2013 7
3 Simplify the JK expressions using Karnaugh map
A A A A
B 0 x B x 0
B 1 x B x 1
JA = B KA= B
A A A A
B 1 1 B x x
B x x B 1 1
JB = 1 KB = 1
10/9/2012 RA/Sept2012-Jan2013 8
4 Draw the synchronous counter circuit
A B
1
J SET Q J SET Q
CLR CLR
K Q K Q
JA = B JB = 1
KA = B KB = 1
10/9/2012 RA/Sept2012-Jan2013 9
Example:
0 2 3
4
7 5
0X X0
1X
0 1
X1
10/9/2012 RA/Sept2012-Jan2013 10
0X X0
1X
0 1
Steps:
X1
Present State Next State JK
PS A B C NS A’ B’ C’ JA KA JB KB JC KC
0 0 0 0 2 0 1 0 0 x 1 x 0 x
1 0 0 1 x x x x x x x x x x
2 0 1 0 0 0 0 0 0 x x 1 0 x
3 0 1 1 4 1 0 0 1 x x 1 x 1
4 1 0 0 5 1 0 1 x 0 0 x 1 x
5 1 0 1 3 0 1 1 x 1 1 x x 0
6 1 1 0 x x x x x x x x x x
7 1 1 1 3 0 1 1 x 1 x 0 x 0
10/9/2012 RA/Sept2012-Jan2013 11
A B AB AB AB A B AB AB AB A B AB AB AB
C 0 0 x x C x x x 0 C 1 x x 0
C x 1 x x C x x 1 1 C x x x 1
JA = C KA = C JB = A + C
A B AB AB AB A B AB AB AB A B AB AB AB
C 0 0 x 1 C x x x x C x x x x
C x x x x C x 1 0 0 C x 1 0 0
JC = A KB = A KC = A
10/9/2012 RA/Sept2012-Jan2013 12
4 Draw the synchronous counter circuit
JA = C JB = A + C JB = A
KA = C KB = A KB = A
10/9/2012 RA/Sept2012-Jan2013 13
Analyse the following synchronous counter circuit.
A B C
1
SET SET SET
J Q J Q J Q
JA = BC JB = C JC = 1
KA =BC KB = C KC = 1
10/9/2012 RA/Sept2012-Jan2013 14
Input Output
0 0 Q Hold
JA = BC JB = C JC = 1 0 1 0 Reset
KA =BC KB = C KC = 1 1 0 1 Set
1 1 Q Toggle
10/9/2012
7 1 1 1 0 0 0
RA/Sept2012-Jan2013
0 1 1 1 1 1 1 15
3 Draw the state transition diagram
0 1 2 3 4 5 6 7
10/9/2012 RA/Sept2012-Jan2013 16
Asynchronous Counter Synchronous Counter
Clock pulse is applied only Clock pulse is applied to
to the first flip-flop in the each of the flip flop in the
counter counter
Will only operate in fixed Will operate in any desired
count sequence sequence
Slower than synchronous Faster than asynchronous
counter counter
Also called serial counter Also called parallel counter
10/9/2012 RA/Sept2012-Jan2013 17