Choosing counter widths without wasting a bit

Three controllers require counters with the state counts shown below. A counter's modulus is the number of distinct states in its repeating counting sequence. Each controller stores its count in an ordinary binary representation using the minimum possible number of bits.


For each controller, enter the minimum number of bits and the number of available bit patterns that remain unused. Use exact integers. Count distinct states, including zero; a six-state counter may use the values 0 through 5.

ControllerRequired statesMinimum bitsUnused bit patterns
Mode selector6
Position indexer20
Batch counter90

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Counters Questions: