Logic circuits
How many states does a Johnson (twisted-ring) counter made of n flip-flops go through?
- An
- B2n
- C2ⁿ
Show answer and explanation
Answer: B. 2n
A Johnson counter feeds the inverted last output of a shift register back to its input, cycling through 2n states with n flip-flops (with three: 000→100→110→111→011→001). Only one bit changes between neighboring states, so each state can be decoded with a two-input gate and glitches are unlikely. It is also used to generate multiple clocks with evenly staggered phases.
- A. n states is a ring counter, which circulates a single 1.
- B. Correct. A Johnson counter goes through 2n states.
- C. 2ⁿ states is a binary counter.