A ring counter and a Johnson counter are two shift-register-based counters that circulate a pattern of bits through flip-flops. They are not binary counters — they produce a repeating sequence of one-hot or walking patterns that are easy to decode without extra logic. This guide explains both, their sequences and where each is used.
Ring counter
A ring counter is a shift register whose serial output is fed back to its serial input, with a single 1 circulating through the stages. For a 4-bit ring counter, the sequence is:
| State | Q3 Q2 Q1 Q0 |
|---|---|
| 0 | 1 0 0 0 |
| 1 | 0 1 0 0 |
| 2 | 0 0 1 0 |
| 3 | 0 0 0 1 |
| back to 0 | 1 0 0 0 |
An n-bit ring counter has n unique states. Each output is already one-hot, so it can drive a decoded signal (like a stepper-motor phase or a time-slot enable) directly — no decoder needed.
Johnson counter (twisted-ring counter)
A Johnson counter is a ring counter in which the complement of the last flip-flop’s output is fed back to the first. This doubles the state count. For a 4-bit Johnson counter the sequence is:
| State | Q3 Q2 Q1 Q0 |
|---|---|
| 0 | 0 0 0 0 |
| 1 | 1 0 0 0 |
| 2 | 1 1 0 0 |
| 3 | 1 1 1 0 |
| 4 | 1 1 1 1 |
| 5 | 0 1 1 1 |
| 6 | 0 0 1 1 |
| 7 | 0 0 0 1 |
| back to 0 | 0 0 0 0 |
An n-bit Johnson counter has 2n unique states — twice the ring counter for the same flip-flop count.
Ring vs Johnson counter
| Feature | Ring counter | Johnson counter |
|---|---|---|
| Feedback | Last output → first input | Complement of last output → first input |
| States (n flip-flops) | n | 2n |
| Output pattern | One-hot (single 1) | Walking / overlapping |
| Decoding | No decoder needed | Needs a 2-input gate per state |
| Flip-flop efficiency | Lower | Higher (more states per FF) |
Where they are used
Ring counters are used for sequencing and one-hot control (phase generation, time-division multiplexing, state machines where a one-hot encoding is convenient). Johnson counters are used to generate quadrature or multiphase clocks and symmetric timing waveforms. Both avoid the carry-chain delay of a binary counter, so they are fast and glitch-light.
Self-starting concern
A plain ring or Johnson counter can power up in an invalid state (for example all zeros in a ring counter, which then never recovers). Practical designs add reset/decode logic to force a valid starting state — a “self-correcting” counter.
FAQs on ring and Johnson counters
What is the difference between a ring counter and a Johnson counter?
A ring counter feeds the last flip-flop’s true output back to the first and has n states; a Johnson counter feeds back the complement and has 2n states for the same n flip-flops.
How many states does an n-bit Johnson counter have?
2n states — for example a 4-bit Johnson counter cycles through 8 states.
Why use a ring counter instead of a binary counter?
Its outputs are already one-hot, so sequencing signals need no decoder, and it has no carry chain, so it is fast and glitch-free for control applications.
What is a self-starting counter?
One with added logic that forces it out of any invalid/lock-up state into the valid sequence, guaranteeing correct operation after power-up.
Learn sequential design and RTL coding in ChipXpert’s RTL Design course. Related: shift registers, counters in digital electronics.
Related digital electronics topics
- JK Flip-Flop: Truth Table & Working
- T Flip-Flop: Truth Table & Circuit
- D Flip-Flop & D Latch
- SR Latch (NAND & NOR)
- Karnaugh Map (K-Map)
- Full Adder & Half Adder
- Universal Gates: NAND & NOR
- Finite State Machines (FSM)
- Sequential Circuits
- Shift Registers (SISO/SIPO/PISO/PIPO)
- 4:1 Multiplexer
- Encoders & Decoders
- Binary to Gray Code Conversion
- One's & Two's Complement
- Counters in Digital Electronics
- Demultiplexer (DEMUX)
- Logic Gates: Types & Truth Tables
- Boolean Algebra & De Morgan's Theorem
- Number Systems (Binary, Octal, Hex)
- Combinational Circuits
- Half Subtractor & Full Subtractor
- Latch vs Flip-Flop
- Setup Time & Hold Time
- Master-Slave Flip-Flop
- Digital Comparator
Share your question in comments or talk to our mentor team for batch guidance.
Ask the Admin Team
Drop your basic question in comments: eligibility, prerequisites, tools, fee range, and placement support.
Our team reviews and responds regularly.
