Topic 4: Counters
DIGITAL SYSTEM
Objectives
Asynchronous Counter Operation
Synchronous Counter Operation
0
0
1
0
0
0
0
1
0
0
0
AND gate outputs is HIGH
Synchronous BCD decade counter
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
1
1
0
0
0
0
Up/Down Synchronous Counters
3-Bit Up/Down Synchronous Counter
Steps used in the design of sequential circuit
State diagram for a 3-bit Gray code counter.
Next-state table for a 3-bit Gray code counter.
Present State | Next State | ||||
Q2 | Q1 | Q0 | Q2 | Q1 | Q0 |
0 | 0 | 0 | 0 | 0 | 1 |
0 | 0 | 1 | 0 | 1 | 1 |
0 | 1 | 1 | 0 | 1 | 0 |
0 | 1 | 0 | 1 | 1 | 0 |
1 | 1 | 0 | 1 | 1 | 1 |
1 | 1 | 1 | 1 | 0 | 1 |
1 | 0 | 1 | 1 | 0 | 0 |
1 | 0 | 0 | 0 | 0 | 0 |
Transition Table for a J-K flip-flop
Output Transitions | Flip-flop Inputs | ||||
QN | | QN+1 | J | | K |
0 | 🡪 | 0 | 0 | | X |
0 | 🡪 | 1 | 1 | | X |
1 | 🡪 | 0 | X | | 1 |
1 | 🡪 | 1 | X | | 0 |
QN : present state
QN+1: next state
X: Don’t care
Three-bit Gray code counter.
Example: �Design a counter with the irregular binary count sequence as shown in the state diagram. Use J-K flip-flops
Next-state table
Present State | Next 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 |
Next-state table for a 3-bit Gray code counter.
Output Transitions | Flip-flop Inputs | ||||
QN | | QN+1 | J | | K |
0 | 🡪 | 0 | 0 | | X |
0 | 🡪 | 1 | 1 | | X |
1 | 🡪 | 0 | X | | 1 |
1 | 🡪 | 1 | X | | 0 |
K-MAP
THE COUNTER CIRCUIT
Simplified logic diagram for a 12-hour digital clock.
Functional block diagram for parking garage control.
Logic diagram for modulus-100 up/down counter for automobile parking control.
Thank You
“Intan berlian walaupun di atas lumpur dia pasti akan bercahaya, akan tetapi najis ayam walaupun diletakkan di atas meja tetap akan berbau busuk jua” - Cendikiawan