2080 3

BIT103 · 2080 · 10 marks

Define parallel counter. Design MOD-12 synchronous up counter along with state diagram, timing sequence and timing diagram.

Define parallel counter. Design MOD-12 synchronous up counter along with state diagram, timing sequence and timing diagram.[10]

Digital LogicChapter 9: Sequential Circuits and CountersCounter design using flip-flops

Quick answer

A parallel counter (also called a synchronous counter) is a sequential digital circuit in which all flip-flops receive the clock pulse simultaneously. Unlike ripple (asynchronous) counters where each flip-flop triggers the next, in a synchronous counter the clock is applied in parallel to all flip-flops at the same time.

Parallel (Synchronous) Counter and MOD-12 Design


Definition of Parallel (Synchronous) Counter

Key features:

  • All flip-flops are clocked simultaneously
  • No propagation delay accumulation (faster operation)
  • Uses combinational logic (AND gates) to control flip-flop inputs
  • Suitable for high-speed applications

MOD-12 Synchronous Up Counter Design

A MOD-12 counter counts from 0 to 11 (0000 to 1011 in binary) and then resets to 0. It requires 4 flip-flops (since 2^4 = 16 > 12).


Step 1: State Diagram

  0000 → 0001 → 0010 → 0011 → 0100 → 0101
    ↑                                      ↓
  1011 ← 1010 ← 1001 ← 1000 ← 0111 ← 0110

States: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 → back to 0


Step 2: State Table

We use JK Flip-Flops (Q3 = MSB, Q0 = LSB).

StateQ3Q2Q1Q0Next Q3Next Q2Next Q1Next Q0
000000001
100010010
200100011
300110100
401000101
501010110
601100111
701111000
810001001
910011010
1010101011
1110110000

Step 3: JK Flip-Flop Excitation Table

Recall JK excitation:

Q(t)Q(t+1)JK
000X
011X
10X1
11X0

Step 4: JK Input Table

StateQ3Q2Q1Q0J3K3J2K2J1K1J0K0
000000X0X0X1X
100010X0X1XX1
200100X0XX01X
300110X1XX1X1
401000XX00X1X
501010XX01XX1
601100XX0X01X
701111XX1X1X1
81000X00X0X1X
91001X00X1XX1
101010X00XX01X
111011X10XX1X1

States 1100 to 1111 never occur, so their entries are treated as don't-care conditions when the maps are simplified.


Simplified Flip-Flop Input Equations

Reading each column of the input table against the present state gives:

$$J_0 = K_0 = 1$$

$$J_1 = K_1 = Q_0$$

$$J_2 = \overline{Q_3} \cdot Q_1 \cdot Q_0 \qquad K_2 = Q_1 \cdot Q_0$$

$$J_3 = Q_2 \cdot Q_1 \cdot Q_0 \qquad K_3 = Q_1 \cdot Q_0$$

The least significant stage toggles on every pulse, so its inputs are tied to logic 1. Q1 toggles whenever Q0 is high. Q2 is set only at state 0011 and cleared only at state 0111, and the factor Q̄3 is essential: without it the counter would set Q2 while leaving state 1011 and would run to MOD-16. Q3 is set on leaving 0111 and cleared on leaving 1011, which is what folds the count back to zero after 11 and makes the modulus 12.


Logic Circuit

   +---+                                                     
   | 1 |----> J0, K0
   +---+
                Q0 -------------------> J1, K1

                Q1 ---+
                      +--[AND]--+------> K2  and  K3
                Q0 ---+         |
                                +--[AND with Q3']--> J2
                                |
                                +--[AND with Q2 ]--> J3

        +-------+   +-------+   +-------+   +-------+
   J0 ->|       |   |       |   |       |   |       |
        |  FF0  |   |  FF1  |   |  FF2  |   |  FF3  |
   K0 ->|       |   |       |   |       |   |       |
        +---+---+   +---+---+   +---+---+   +---+---+
            |           |           |           |
            Q0          Q1          Q2          Q3
            |           |           |           |
   CLK -----+-----------+-----------+-----------+
            (one common clock to all four flip-flops)

All four flip-flops share one clock line, and only two AND gates plus one inverter are needed to build the input logic, since the term Q₁·Q₀ is reused by K₂ and K₃.


Timing Sequence

Clock pulseQ₃Q₂Q₁Q₀Count
initial00000
100011
200102
300113
401004
501015
601106
701117
810008
910019
10101010
11101111
1200000 (recycles)

Timing Diagram

Pulse     1    2    3    4    5    6    7    8    9   10   11   12
        __   __   __   __   __   __   __   __   __   __   __   __
CLK   _|  |_|  |_|  |_|  |_|  |_|  |_|  |_|  |_|  |_|  |_|  |_|  |_

Q0    ‾‾‾‾‾_____‾‾‾‾‾_____‾‾‾‾‾_____‾‾‾‾‾_____‾‾‾‾‾_____‾‾‾‾‾_____

Q1    _____‾‾‾‾‾‾‾‾‾‾__________‾‾‾‾‾‾‾‾‾‾__________‾‾‾‾‾‾‾‾‾‾_____

Q2    _______________‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾_______________________

Q3    _______________________________________‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾_____

Q₀ divides the clock by two, Q₁ by four and Q₂ by eight for as long as the count is below 8, while Q₃ stays high through counts 8 to 11 and falls on the twelfth pulse. The Q₃ waveform therefore has a period of twelve clock pulses, which confirms the modulus.


Conclusion

A parallel counter clocks all its flip-flops together, so its maximum speed is set by one flip-flop delay plus one gate delay rather than by the sum of the delays in the chain. The MOD-12 design above uses four JK flip-flops with $J_0 = K_0 = 1$, $J_1 = K_1 = Q_0$, $J_2 = \overline{Q_3}Q_1Q_0$, $K_2 = Q_1Q_0$, $J_3 = Q_2Q_1Q_0$ and $K_3 = Q_1Q_0$, which produces the repeating sequence 0 to 11 and returns to 0000 on the twelfth clock pulse.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.