- 2073 Shrawan · 6 marks
Synchronous MOD-5 counter; counter applications
Short answer
A synchronous MOD-5 counter uses three JK flip-flops with J0=Q2', K0=1; J1=K1=Q0; J2=Q1Q0, K2=1. It counts 0-4. Applications include frequency division, digital clocks, event counting, ADCs, and program counters. Shift registers are used for data conversion, storage, ring counters, and CRC.
Design a synchronous MOD-5 counter along with block diagram and timing diagrams. Also write the applications of counters and shift registers.
Synchronous MOD-5 counter
A MOD-5 counter has 5 states, 000 → 001 → 010 → 011 → 100 → 000. Three JK flip-flops () share a common clock. States 101, 110, 111 are don't cares.
Excitation table (JK: 0→0: 0X, 0→1: 1X, 1→0: X1, 1→1: X0)
| Present Q2Q1Q0 | Next Q2Q1Q0 | J2 | K2 | J1 | K1 | J0 | K0 |
|---|---|---|---|---|---|---|---|
| 000 | 001 | 0 | X | 0 | X | 1 | X |
| 001 | 010 | 0 | X | 1 | X | X | 1 |
| 010 | 011 | 0 | X | X | 0 | 1 | X |
| 011 | 100 | 1 | X | X | 1 | X | 1 |
| 100 | 000 | X | 1 | 0 | X | 0 | X |
K-maps
| J0: Q2 / Q1Q0 | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | 1 | X | X | 1 |
| 1 | 0 | X | X | X |
| J2: Q2 / Q1Q0 | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 |
| 1 | X | X | X | X |
The other maps give , and .
Equations
Block (circuit) diagram
+-----+ +-----+ +-----+
J0>|J Q|-Q0 J1>|J Q|-Q1 J2>|J Q|-Q2
| FF0 | | FF1 | | FF2 |
K0>|K | K1>|K | K2>|K |
+--o--+ +--o--+ +--o--+
| | |
CLK---+-------------+-------------+
J0 = Q2' K0 = 1
J1 = Q0 K1 = Q0
J2 = Q1.Q0 K2 = 1
Unused states: 101 → 010, 110 → 010, 111 → 000, so the counter is self-starting.
Timing diagram
CLK __|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾
Q2 ________________|‾‾‾|___________
Q1 ________|‾‾‾‾‾‾‾|___________|‾‾‾
Q0 ____|‾‾‾|___|‾‾‾|_______|‾‾‾|___
Cnt 0 1 2 3 4 0 1 2
is high for one clock period out of five, so it divides the clock frequency by 5.
Applications of counters
- Frequency division (divide-by-N), e.g. getting 1 Hz from 50 Hz in clocks.
- Digital clocks, watches and timers.
- Counting events or objects (production lines, people counters).
- Frequency counters and digital meters.
- Counter-type (digital-ramp) and dual-slope ADCs.
- Program counter and address generation in computers.
- Generating control sequences and timing signals.
Applications of shift registers
- Serial-to-parallel and parallel-to-serial data conversion (UART, serial communication).
- Temporary data storage and time delay.
- Ring and Johnson counters, sequence generators.
- Multiplication and division by 2 (shift left / right).
- Pseudo-random sequence generation (LFSR) and error checking (CRC).
- Keyboard scanning and display multiplexing.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Mod-6 synchronous up counter using T · Digital Logic, chapter 8 · asked 4×
- Mod-5 synchronous up counter using SR · Digital Logic, chapter 8 · asked 5×
- Counter; MOD-6 synchronous counter · Digital Logic, chapter 8 · asked 3×
- Sync vs async; MOD-10 synchronous counter · Digital Logic, chapter 8 · asked 2×
- Sync vs async; mod-6 synchronous counter (JK) · Digital Logic, chapter 8
- Sync vs async; mod-12 synchronous counter · Digital Logic, chapter 8 · asked 3×
- Synchronous/asynchronous bus; LXI timing · Microprocessor, chapter 2 · asked 2×
- Short note: Shift register and counter · Basic Electronics Engineering, chapter 6