Ring and twisted-ring counters are both shift-register counters, but their use of states differs enormously. This page compares structure, state count and decoding.
A ring counter closes an n-bit shift register on itself: the last Q feeds back to D0, and one 1 is preset among zeros, say 1000. Each clock shifts the bit around, 1000 to 0100 to 0010 to 0001 and back, giving n valid states, one per position. Decoding is trivial because each state is a single 1, but the state usage is tiny, n states out of 2^n.
A Johnson (twisted-ring) counter feeds the inverted last bit back, Qbar of the top stage into D0. Starting from all zeros it walks 0000, 1000, 1100, 1110, 1111, 0111, 0011, 0001 and home, giving 2n states, double the ring, still with simple one-per-state decoding and no illegal jump risk between states.
Choosing: the ring uses n states with the easiest decode but wastes capacity; the Johnson uses 2n and is the practical pick for sequencers, LED chasers and stepper timing. Both must be preset to a valid initial state or they fall into an invalid cycle such as the all-zeros lockup of a ring.
| Item | Ring | Twisted ring |
|---|---|---|
| Feedback | Last Q into D0 | Last Qbar into D0 |
| State count | n | 2n |
| State usage | Low | High |
| Initial value | Single 1 | All zeros |
| Decoding | Trivial | Easy |
| Lockup risk | Yes | Yes |
Use a Johnson counter for chasers and step sequences to double the states. Always preset a valid initial value or the counter locks into a dead cycle.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Shift-register counting per GB/T 4728 and IEC 60617 symbols. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.