Skip to main content

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 (23=8≥52^3 = 8 \ge 5) 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 Q2Q1Q0Next Q2Q1Q0J2K2J1K1J0K0
0000010X0X1X
0010100X1XX1
0100110XX01X
0111001XX1X1
100000X10X0X

K-maps

J0: Q2 / Q1Q000011110
01XX1
10XXX
J2: Q2 / Q1Q000011110
00010
1XXXX

The other maps give K0=1K_0 = 1, J1=K1=Q0J_1 = K_1 = Q_0 and K2=1K_2 = 1.

Equations

J2=Q1Q0,K2=1J1=Q0,K1=Q0J0=Q2‾,K0=1\begin{aligned} &J_2 = Q_1Q_0,\quad K_2 = 1 \\ &J_1 = Q_0,\quad K_1 = Q_0 \\ &J_0 = \overline{Q_2},\quad K_0 = 1 \end{aligned}

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

Q2Q_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)

All Digital Logic chapter 8 questions →