A binary counter is flip-flops chained into a 2^n state cycle. This page explains how states advance, how carries propagate and how to read the state table that proves the circuit.
An n-bit binary up counter is n toggle flip-flops. The lowest bit toggles on every clock; a higher bit toggles only when the bit below it falls from 1 to 0, that is, a stage advances when all lower bits are 1 and a clock arrives. The ripple build clocks each stage from the Qbar of the one below; the synchronous build forms each toggle condition with AND gates on the lower bits.
Reading the state table: for 3 bits the states run 000 to 111, eight states, incrementing once per clock, and after 111 the next clock rolls over to 000 with an overflow. The table lists present state, clock and next state, and it is the reference that proves the wiring. Note that bit k flips exactly when the count passes 2^k minus 1 to 2^k, which marks the divide points.
Overflow and expansion: n bits count to 2^n minus 1, and one more clock rolls over to 0 while producing a carry pulse for the next counter. In a ripple chain the overflow edge, the fall of the top Qbar, clocks the next chip, which is how multi-chip counters are stitched. The synchronous version passes an inter-chip carry with every chip on the same clock for speed.
| Present Q2Q1Q0 | Clock | Next state |
|---|---|---|
| 000 | ↑ | 001 |
| 001 | ↑ | 010 |
| 010 | ↑ | 011 |
| 011 | ↑ | 100 |
| 100 | ↑ | 101 |
| 111 | ↑ | 000 |
The state table is the gold standard for verifying a counter; after soldering, capture a few beats with a logic analyzer and compare. Feed the overflow edge to the next stage for cascading.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Binary coding in counters 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.