A counter on a 7-segment display

A 7-segment display draws a digit with seven bars, named a to g. A decoder turns a 4-bit number into which bars to light: one formula per bar, each worked out from its truth table. Here a counter drives the decoder, so the display counts from 0 to 9 and on through A to F.

Zoom into the decoder: each bar has its own little circuit.

How it works

  1. 01

    Each bar is on for some digits and off for the rest, so each bar is a truth table with 16 rows.

  2. 02

    The simplest formula for each table is worked out from it, and each formula becomes a few gates.

  3. 03

    Seven of those, side by side, make the decoder chip. Zoom into it to see them.

  4. 04

    The counter steps the number, and the decoder redraws the digit.

Every circuit in the library