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.
How it works
- 01
Each bar is on for some digits and off for the rest, so each bar is a truth table with 16 rows.
- 02
The simplest formula for each table is worked out from it, and each formula becomes a few gates.
- 03
Seven of those, side by side, make the decoder chip. Zoom into it to see them.
- 04
The counter steps the number, and the decoder redraws the digit.