Binary counter

A 4-bit counter counts clock ticks from 0 to 15 and starts over. It's four flip-flops in a chain: the first flips on every tick, and each one after it flips every second time the one before it does. Read the four outputs as a binary number, worth 1, 2, 4 and 8, and it counts.

It counts by itself. Zoom into the counter to see the flip-flops inside.

How it works

  1. 01

    The clock ticks, and the first flip-flop flips on every tick. That's the 1s bit.

  2. 02

    Each time the 1s bit goes back to 0, the 2s bit flips. The 4s and 8s bits follow the same way.

  3. 03

    After 15, with all four on, the next tick turns them all off: back to 0.

  4. 04

    Zoom into a flip-flop, then into a latch inside it, all the way down to the NOR gates.

Every circuit in the library