Home › Lessons › Digital logic › BCD decoder and 7-segment display

BCD decoder and 7-segment display

Digital logic · Beginner · about 10 minutes · part of Zen’s Electronics Design Mastery

A 4-bit binary number goes into a 74HC4511, which works out which of the seven segments to light for that digit. The display is seven LEDs with a common cathode, each with its own current-limiting resistor.

BCD decoder and 7-segment display: the circuit on the simulator's bench

Open this lesson in the labFree, in your browser, no account needed.

How it works

Switches 1–4 are the bits D0 (worth 1), D1 (2), D2 (4) and D3 (8).

D3 D2 D1 D0digitsegments
0 0 0 00abcdef
0 0 0 11bc
0 0 1 02abdeg
0 0 1 13abcdg
0 1 0 04bcfg
0 1 0 15acdfg
0 1 1 06cdefg
0 1 1 17abc
1 0 0 08abcdefg
1 0 0 19abcfg
1010–1111blank—

Try it on the bench

  1. Set the switches to 0101: the display shows 5.
  2. Try 1010 (ten): the 4511 only does decimal, so it blanks the display.
  3. Select the display and set its resistors to 0 Ω (bare LEDs): the segments burn out. Every segment needs its own resistor.

Parts on the bench

In the course

Zen’s Electronics Design Mastery, module “Digital Electronics”.

More on digital logic