Ring Counter in Digital Logic (original) (raw)

Last Updated : 11 Jul, 2025

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 things are the same.

Ring Counter

It is a type of digital counter used in circuits, typically built with flip-flops. It works by shifting a 1 through a series of flip-flops, one at a time, in a loop. It’s called a ring counter because the 1 loops back to the start once it reaches the end, forming a cycle.

No. of states in Ring counter = No. of flip-flop used

**Key Characteristics of a Ring Counter

**Working Of Ring Counter

**Example of a 4-bit Ring Counter

Let’s consider a 4-bit Ring Counter:

  1. **Initial state: 1000 (the first flip-flop is set to 1, and others are set to 0).
  2. **Clock cycle 1: The '1' bit shifts to the next flip-flop, resulting in the state 0100.
  3. **Clock cycle 2: The '1' bit shifts to the next flip-flop, resulting in the state 0010.
  4. **Clock cycle 3: The '1' bit shifts to the next flip-flop, resulting in the state 0001.
  5. **Clock cycle 4: The '1' bit shifts back to the first flip-flop, and the cycle repeats, resulting in the state 1000.

**State Sequence:

10000100001000011000.

So, for designing a 4-bit Ring counter we need 4 flip-flops as designed below :

**Components and Signals

This Preseted 1 is generated by making ORI low and that time Clock (CLK) becomes don't care. After that ORI is made to high and apply low clock pulse signal as the Clock (CLK) is negative edge triggered. After that, at each clock pulse, the preseted 1 is shifted to the next flip-flop and thus forms a Ring. In this way can design a 4-bit Ring Counter using four D flip-flops.

**Types of Ring Counter:

There are two types of Ring Counter:

**Straight Ring Counter

It is also known as One hot Counter. In this counter, the output of the last flip-flop is connected to the input of the first flip-flop. The main point of this Counter is that it circulates a single one (or zero) bit around the ring. Here, we use Preset (PR) in the first flip-flop and Clock (CLK) for the last three flip-flops.

**Twisted Ring Counter

It is also known as a switch-tail ring counter, walking ring counter, or Johnson counter. It connects the complement of the output of the last shift register to the input of the first register and circulates a stream of ones followed by zeros around the ring. Here, we use Clock (CLK) for all the flip-flops. In the Twisted Ring Counter, the number of states = 2 X the number of flip-flops.

**Advantages of Ring Counter

**Disadvantages of Ring Counter

**Applications of Ring Counter

Ring counters are used when you need a system that goes through a specific, repeating set of states. For example: