The Wayback Machine - https://web.archive.org/web/20240708061527/https://www.geeksforgeeks.org/synchronous-3-bit-up-down-counter/
Open In App

Synchronous 3 bit Up/Down counter

Last Updated : 26 May, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

Prerequisite : 3 bit down counter. 

Overview: 

  • These types of counters fall under the category of synchronous controller counter.
  • Here the mode control input is used to decide whether which sequence will be generated by the counter.
  • In this case, mode control input is used to decide whether the counter will perform up counting or down counting.
  • Designing of such a counter is the same as designing a synchronous counter but the extra combinational logic for mode control input is required.

Steps to design Synchronous 3 bit Up/Down Counter :

1. Decide the number and type of FF –

  • Here we are performing 3 bit or mod-8  Up or Down counting, so 3 Flip Flops are required, which can count up to  23-1 = 7.
  • Here T Flip Flop is used.

2. Write excitation table of Flip Flop – 

Excitation table of T FF

3. Decision for Mode control input M –

  • When M=0 ,then the counter will perform up counting.
  • When M=1 ,then the counter will perform down counting.

4. Draw the state transition diagram and circuit excitation table –

     

State transition diagram for 3 bit up/down counting.

5. Circuit excitation table –

The circuit excitation table represents the present states of the counting sequence and the next states after the clock pulse is applied and input T of the flip-flops. By seeing the transition between the present state and the next state, we can find the input values of 3 Flip Flops using the Flip Flops excitation table. The table is designed according to the required counting sequence.  

Circuit excitation table

If there is a change in the output state of a flip flop (i.e. 0 to 1 or 1 to 0), then the corresponding T value becomes 1 otherwise 0.

6. Find a simplified equation using k map –
Here we are finding the minimal Boolean expression for each Flip Flop input T using k map.

Simplified equation for K map

7. Create a circuit diagram –
The simplified expression for Flip Flops is used to design circuit diagrams. Here all the connections are made according to simplified expressions for Flip Flops. 

3 bit synchronous up/down counter.

8. Timing Diagram –

Timing diagram for 3 bit synchronous Up/Down counter

Explanation :
Here -ve edge triggered clock pulse is used for toggling purpose.

Characteristics table of T FF

After every falling edge, when T = 1, the output state of Flip Flop will toggle. 

  • Initially  Q3 = 0 , Q2= 0 , Q1= 0.

Case 1 : When M=0 ,then M’= 1

  • T3 = M’Q2Q1 + MQ’2Q’1 = Q2Q1.
  • T2 = M’Q1 + MQ’1= 1.Q1= Q1.
  • T1= 1.
  • Because T1= 1, therefore FF1 output state toggles for every falling edge.
    The output state of FF 2 will toggle when Q1 = 1  and the falling edge of the clock pulse occurs. 
    The output state of FF 3 will toggle only when Q2.Q1= 1 and the falling edge of the clock pulse occurs.
  • In this way, after every falling edge, state transition takes place and we can get our desired counting sequence.

Case 2 : When M=1 ,then M’ =0

  • T3 = M’Q2Q1+MQ’2Q’1 = Q’2Q’1
  • T2 = M’Q1+ MQ’1= 1.Q1= Q’1.
  • T1= 1.
  • Because T1= 1,therefore FF1 output state toggles for every falling edge.
    The output state of FF 2 will toggle when Q’1 = 1  and the falling edge of the clock pulse occurs. 
    The output state of FF 3 will toggle only when Q’2.Q’1= 1 and the falling edge of the clock pulse occurs.
  • In this way, after every falling edge, state transition takes place and we can get our desired counting sequence.


Similar Reads

3 bit Synchronous Down Counter
Prerequisite : Counter , Synchronous counter. 3 bit Synchronous Down Counter : In synchronous counter clock is provided to all the flip-flops simultaneously.Circuit becomes complex as the number of states increases.Speed is high. Design : The steps involves in design are 1. Decide the number of Flip flops - N number of Flip flop(FF) required for N
2 min read
Differences between Synchronous and Asynchronous Counter
There are two types of counters in digital logic circuit that are used to count the numbers of bits and these types depends upon the clock pulse applied to the flip flops. 1. Asynchronous Counter: These are the counters in which we do not use universal clock, main clock is only applied to the first flip flop and then for rest of flip flops the outp
2 min read
Synchronous Series Carry Counter
Synchronous Series Carry Counter is such a synchronous counter where inputs of flip-flops are connected in such a manner that only those flip-flops that are toggle on a given clock will have input value as the logic 1. The advantage of this counter is that it reduces the decoding error. Block Diagram of Synchronous Series Carry Counter: Here is the
2 min read
Synchronous Parallel-Carry Binary Counter
Synchronous Counter: It is a digital circuit that performs counting in binary numbers with the help of flip-flops and all flip-flops triggered simultaneously. Synchronous Counter design procedure for a given counting sequence: Identify the numbers of flip-flops(FFs), inputs, and outputs required for the count sequence.Select the type of FF going to
5 min read
Synchronous Controlled Counter
In this article, we will discuss the overview of the Synchronous controlled counter and will discuss its circuit diagram, circuit excitation table, timing diagram in detail. Let's discuss it one by one. Overview :Toggle or D-type flip-flops can be used to make synchronous counters, and It is easy to design than asynchronous counters. Due to the clo
5 min read
Design Mod - N synchronous Counter
The value of N can be different from power of 2. Also, the counting sequence may be random for example some cyclic code (8421, 2423 etc). The following method is applied for designing for mod N and any counting sequence. Design for Mod-N counter :The steps for the design are - Step 1 : Decision for number of flip-flops -Example : If we are designin
3 min read
Difference between Straight Ring Counter and Twisted Ring Counter
Ring counter is a type of counter that is composed of a shift register with clear and preset inputs provided externally. It is of two types: 1. Straight Ring Counter : Straight ring counter is a type of ring counter in which the output of the last flip-flop is connected to the input of the first flip-flip. It circulates a single '0' or '1' bit arou
2 min read
n-bit Johnson Counter in Digital Logic
Prerequisite - Counters Johnson counter also known as creeping counter, is an example of synchronous counter. In Johnson counter, the complemented output of last flip flop is connected to input of first flip flop and to implement n-bit Johnson counter we require n flip-flop.It is one of the most important type of shift register counter. It is forme
2 min read
4-bit Ripple Carry Counter in Verilog HDL
To proceed with Verilog Code, we shall first understand the structure of the 4-bit Ripple Counter. The top design block consists of four T-Flip Flop. For time being ignore the input and output of T-Flip Flop. Let us consider the overall outside structure of Ripple Counter. We have two inputs i.e., clock and reset and q is output. The output q is in
3 min read
Clock Skew in synchronous digital circuit systems
In Synchronous circuits where all the logic elements share the same clock signal, it becomes imperative to design these elements as close to the clock source as possible because a system-on-chip, FPGA, CPLD contain Billions of transistors. Even though these distances are minute due to their sheer number there is a propagation delay which leads to t
2 min read
Article Tags :