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

Synchronous 3 bit Up/Down counter

Last Updated : 26 May, 2021
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

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 counters, essential in digital circuits, come in two main types: Straight and Twisted Ring Counters. Therefore differ with respect to their functionality and usage in the sequential logic design. It is essential to understand what each of them entails in order to select the appropriate one when designing systems for instance state machines or
4 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
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 for
5 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
Synchronous Sequential Circuits in Digital Logic
Synchronous sequential circuits are digital circuits that use clock signals to determine the timing of their operations. They are commonly used in digital systems to implement timers, counters, and memory elements. What is Sequential Circuit?A sequential circuit is a digital circuit, whose output depends not only on the current inputs but also on t
5 min read
Difference Between 8 Bit and 16 Bit Music
Music is described in the form of waves. By varying the amplitude periodically, it can generate a frequency which is called a tone. It is just a sound effect. It has an amplitude and generates a frequency. It has 8-bit music and 16-bit music. 8 - Bit MusicIt refers to any number in the form of a binary from 0 to 255. It is used to create tracks for
4 min read
Difference Between 8 Bit and 16 Bit Microcontroller
Microcontrollers are small, low-power computers designed for specific tasks. They are widely used in embedded systems such as household appliances, automotive systems, medical devices, and industrial control systems. Microcontrollers are available in various configurations and architectures, and they differ in terms of processing power, memory, and
5 min read
Amortized analysis for increment in counter
Amortized analysis refers to determining the time-averaged running time for a sequence (not an individual) operation. It is different from average case analysis because here, we don't assume that the data arranged in average (not very bad) fashion like we do for average case analysis for quick sort. That is, amortized analysis is worst case analysi
4 min read
Ring Counter in Digital Logic
A ring counter is a typical application of the Shift register. The ring counter is almost the same as the shift counter. The only change is that the output of the last flip-flop is connected to the input of the first flip-flop in the case of the ring counter but in the case of the shift register it is taken as output. Except for this, all the other
3 min read
Mod 6 Johnson Counter (with D flip-flop)
Johnson counters are one of the most important applications of shift registers. They are created by connecting multiple flip-flops to one another (such that the output of one flip-flop is the input for another), and by connecting the complement of the output of the last flip-flop to the input of the first flip-flop. For a mod 6 Johnson counter, 3 f
1 min read
Mod 2 Ring Counter (with D flip-flop)
Ring counters are one of the most important applications of shift registers. They are created by connecting multiple flip-flops to one another (such that the output of one flip-flop is the input for another), and by connecting the output of the last flip-flop to the input of the first flip-flop. For a mod 2-ring counter, two flip-flops will be requ
1 min read
Non-binary Counter in Digital Logic
A counter is a circuit that counts the number of occurrences of an input. The circuit consists of flip-flops which along with combinational elements are used for generation of control signals. If M = Total number of states, and n = Total number of flip-flop Then, M <= 2n If M = 2n ; Binary counter and M < 2n ; Non-binary counter Block Diagram
2 min read
Self Starting Counter
A counter is a device which stores the number of times a particular event or process has occurred (according to Wikipedia). As the name suggests, a counter is a device which is used for "counting" - mostly in relation to a clock signal. A counter is said to be self-starting if it is possible to enter a counter loop irrespective of the initial state
2 min read
Free Running Counter
Counter is a device which stores the number of times a particular event or process has occurred. As the name suggests, a counter is a device which is used for "counting" - mostly in relation to a clock signal. A counter is said to be free-running if it contains all possible states in the counter loop. The longest loop in the sequence of numbers gen
2 min read
Control Signals Generation using Counter
In various digital applications(For example : hardwired control unit) control signals are needed to start, execute and step various operations in a particular time sequence.For this control signals are required and for the generation of control signals, a counter circuit is designed whose outputs are connected to a decoder. The decoder provides the
2 min read
Ripple Counter in Digital Logic
Counters play a crucial role in digital logic circuits, enabling tasks such as clock frequency division and sequencing. This article explores the concept of ripple counters, a type of asynchronous counter, their operation, advantages, and disadvantages in digital logic design. What is a Counter?Counter is basically used to count the number of clock
5 min read
Asynchronous Down Counter
In asynchronous/ripple counter output of the first flip-flop is provided as the clock to the second flip-flop i.e flip-flop(FF) are not clocked simultaneously. Circuit is simpler, but speed is slow. What is Asynchronous Counter?An offbeat counter, otherwise called a wave counter, is a computerized counter where going back and forth is associated wi
7 min read
Design asynchronous Up/Down counter
Asynchronous counters are a kind of digital circuitry which may count either upwards or downwards while not adhering to the timing pulses from an oscillator. As a result, state transitions are determined by extra inputs rather than by time frames at fixed intervals. The flip-flops and logic gates are utilized for designing the asynchronous counter
9 min read
Counter-Type Analog-to-Digital Converter (ADC)
Analog-to-Digital Converters (ADC) are typically used in all modern-day systems. The main job of the ADC is to convert the analog signal to a digital binary signal. Why digital signal? The reason is that digital data is easy to process, store and transmit. With advancements in CMOS technology, it has been possible to fabricate thousands of logic ci
7 min read
Counter Design using verilog HDL
Designing a counter in Verilog means creating a circuit that changes its value (either increasing or decreasing) with each clock pulse. What is Counter?A counter is a logic circuit that counts the incidences of particular events; it is identified traditionally by the frequencies of a clock pulse. Counters are employed in digital electronics in orde
6 min read
Design counter for given sequence
A Counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship to a clock signal. Counters are used in digital electronics for counting purpose, they can count specific event happening in the circuit. For example, in UP counter a counter increases count for every ris
3 min read
One bit memory cell (or Basic Bistable element)
A One Bit Memory Cell (also known as a Basic Bistable Element) is a digital circuit that can store a single bit of information. It is a type of sequential circuit that can hold its state until a new input signal is received, causing the state to change. One Bit Memory Cells are used in digital systems as temporary storage elements and are the build
6 min read
Size of ROM for n-bit Adder/Subtractor
ROM is a read-only memory which is used to store the data. The memory in the ROM is organized as a two-dimensional array of memory cells. The memory will read or write the contents of one of the rows of the array. This row is specified by an Address which are bits. The value read or written is called Data. Figure a) shows a memory array with two ad
3 min read
4 Bit Binary Incrementer
What is 4 Bit Binary Incrementer ?It adds 1 binary value to the existing binary value stored in the register or in other words we can simply say that it increases the value stored in the register by 1.For any n-bit binary incrementer ,‘n’ refers to the storage capacity of the register which needs to be incremented by 1. So we require ‘n’ number of
2 min read
Article Tags :
three90RightbarBannerImg