Professional Documents
Culture Documents
Counter Slides
Counter Slides
Sequential Circuits
• Counters
• Problems and Discussion
Counters
• A counter is a register capable of incrementing and/or decrementing its
contents.
Q(t+1) ← Q(t) plus n
Q(t+1) ← Q(t) minus n
• Counter with 3 FFs will have a maximum count of 23 = 8
counting states and would be called a MOD-8 counter. The maximum
binary number that can be counted by the counter is 2n–1 giving a
maximum count of (111)2 = 23–1 = 710.
• There are two types of counters based on the flip-flops that are connected
in synchronous or not.
• Asynchronous counters
• Synchronous counters
1
15-09-2023
2
15-09-2023
Counters
• If the flip-flops do not receive the same clock signal, then that
counter is called as Asynchronous counter (Ripple counter).
The output of system clock is applied as clock signal only to
first flip-flop. The remaining flip-flops receive the clock signal
from output of its previous stage flip-flop. Hence, the outputs
of all flip-flops do not change at the same time.
• If all the flip-flops receive the same clock signal, then that
counter is called as Synchronous counter. Hence, the outputs
of all flip-flops change at the same time.
3
15-09-2023
ASYNCHRONOUS (RIPPLE)
COUNTER Using T Flip Flops
4
15-09-2023
5
15-09-2023
Synchronous Counters
• Synchronous 3 bit binary up counter.
• Qi toggles on every clock cycle where Qj = 1, for i > j ≥ 0.
Synchronous Counter
Q1Q0 00 01 11 10
Design of a 3-bit Binary Up Counter Q2
0 1 T2 = Q1Q0
Present State Next State FF Inputs 1 1
Q2 Q1 Q0 Q2+ Q1+ Q0+ T2 T1 T0
Q1Q0
0 0 0 0 0 1 0 0 1 Q2 00 01 11 10
0 0 1 0 1 0 0 1 1 0 1 1
T1= Q0
0 1 0 0 1 1 0 0 1 1 1 1
0 1 1 1 0 0 1 1 1
Q1Q0
1 0 0 1 0 1 0 0 1 Q2 00 01 11 10
1 0 1 1 1 0 0 1 1 0 1 1 1 1 T0 = 1
1 1 0 1 1 1 0 0 1 1 1 1 1 1
1 1 1 0 0 0 1 1 1
6
15-09-2023
7
15-09-2023
3-bit Synchronous
Down Counter
8
15-09-2023
0 0 1 0 0 1 1 0 0 1
1
0 0 1 1 1 0 0 1 1 1 1
0 1 0 0 1 0 1 0 0 1
0 1 0 1 1 1 0 0 1 1 QBQA TC = M’QBQA+MQB’QA’
0 1 1 0 1 1 1 0 0 1
M QC
0 1 1 1 0 0 0 1 1 1 1 1
1 0 0 0 1 1 1 1 1 1
1 1 1 1 1 1 0 0 0 1
1 1
1 1 1 0 1 0 1 0 1 1 1 1
1 1 0 1 1 0 0 0 0 1
1 1 0 0 0 1 1 1 1 1 1 1
1 0 1 1 0 1 0 0 0 1
1 0 1 0 0 0 1 0 1 1 TB = M’QA+MQA’
1 0 0 1 0 0 0 0 0 1
9
15-09-2023
Ring Counter
10