MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Ring counter versus Johnson (twisted-ring) counter
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

Ring counter versus Johnson (twisted-ring) counter

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.

1. How it works

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.

2. Numbers and practice

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.

3. Pitfalls and fixes

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.

4. Ring versus twisted-ring comparison

ItemRingTwisted ring
FeedbackLast Q into D0Last Qbar into D0
State countn2n
State usageLowHigh
Initial valueSingle 1All zeros
DecodingTrivialEasy
Lockup riskYesYes

5. Notes

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.

6. References

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.

7. Cautions

⚠️ Three common pitfalls:
① Initial state never preset:the ring falls into the all-zeros lockup and the lights never move
② Twisted ring wired with straight feedback:state count halves and the sequence is wrong
③ Decoding by state number:ring and Johnson map differently and the display scrambles

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL