Design counter for given sequence

Last Updated : 26 Nov, 2025


Counter is a sequential circuit implemented via flip flops. They are used to count the number of clock signals or pulse. A mod n counter will count from 0 to n-1.

Counters can be synchronous or asynchronous. In synchronous counter, a single common clock is used for all the flip flops. Whereas in asynchronous counter, only a clock is given as input for first flip flop. For an intermediate or final flip flops, its clock pulse will be the output of previous flip flop.

Problem - Design synchronous counter for sequence: 0 → 1 → 3 → 4 → 5 → 7 → 0, using T flip-flop. Explanation - For given sequence, state transition diagram as following below:

cs


State Transition Table Logic

Present StateNext State
01
13
34
45
57
70


State transition table for given sequence

Present StateNext State
Q3Q2Q1Q3(t+1)Q2(t+1)Q1(t+1)
000001
001011
011100
100101
101111
111000

T flip-flop - If value of Q changes either from 0 to 1 or from 1 to 0 then input for T flip-flop is 1 else input value is 0.

QtQt+1T
000
011
101
110

Draw input table of all T flip-flops by using the excitation table of T flip-flop. As nature of T flip-flop is toggle in nature. Here, Q3 as Most significant bit and Q1 as least significant bit.

Input table of Flip-Flops
T3T2T1 
001 
010 
111 
001 
010 
111 

Find value of T3, T2, T1 in terms of Q3, Q2, Q1 using K-Map (Karnaugh Map): Therefore,

T3 = Q2 

Therefore,

T2 = Q1 


Untitled-Diagram-(1)
K map


Therefore,

T1 = Q2+Q1'

Now, you can design required circuit using expressions of K-maps: 66666

Advantages of Counters

  • Counters can be use for measuring time. E.g. Elapsed time, Response time, etc.
  • They can be used in real time system
  • They are easy to implement and cost effective

Disadvantages of Counters

  1. The hazards and delay in flip-flop can create error
  2. Different digital circuit are to be realized for different value of n and type of flip flop used in n-mod counter
Comment
Article Tags:

Explore