Skip to content
digiwleeaTools
LearnGlossaryAboutCheat sheetHow a CPU worksToolsOpen the lab →

CD4511: the BCD to 7-segment latch decoder driver, live

The CD4511 turns a BCD digit on D C B A into the seven segment signals a to g for a common-cathode display, with active-high outputs (1 lights a segment). It adds an input latch (LE), a lamp test (LT) and blanking (BL), and it blanks the display for codes above 9. This live circuit follows its truth table and drives a 7-segment display.

TI's datasheet (from Harris Semiconductor) describes BCD-to-7-segment latch decoder drivers with outputs that can source up to 25 mA, enough to drive LEDs directly. The latch is the feature the 74LS47 lacks: while LE is low the four latches are transparent and the display follows D C B A; when LE goes high they hold the last code, so the inputs can change, or be shared between several digits, without the display flickering. LT low lights all seven segments, whatever the other inputs, to test the display; BL low (with LT high) turns them all off, which also lets you dim the display by pulsing it. Like the 74LS47, it draws 6 without its top segment and 9 without its bottom one, and unlike the 74LS47 it shows nothing at all for codes 10 to 15. Each segment here is decoded from the latched bits as a minimal sum of products, gated by BL and overridden by LT. The live circuit opens showing 0 with LE low. Before the page is built, all 64 combinations of BL, LT and D C B A are checked with the latch open, and then the latch: LE high holds a 3 while the inputs change to 8, and LE low shows the 8.

Big circuit: pinch, scroll or tap + to zoom in, then drag to move around.

Live circuit: click the inputs to toggle them and watch the outputs update. It runs the real simulator, right here on the page.

Open this circuit in the lab →

What you need

Step by step

  1. Place inputs LE, BL, LT, D, C, B, A, probes a to g, and a 7-segment display.
  2. Latch each BCD input in a D latch enabled by NOT LE.
  3. Decode each segment from the latched bits as a minimal sum of products, lit for 0 to 9 only (6 and 9 without tails).
  4. Gate each segment: seg = (BL AND decode) OR NOT LT, and wire a to g to the display.
  5. Count D C B A from 0000 to 1001, then set LE high and change the inputs: the digit stays. Try LT = 0 (an 8) and BL = 0 (blank).

CD4511 truth table

LEBLLTD C B Aa b c d e f gDisplay
XX0X X X X1 1 1 1 1 1 18 (lamp test)
X01X X X X0 0 0 0 0 0 0blank
0110 0 0 01 1 1 1 1 1 00
0110 0 0 10 1 1 0 0 0 01
0110 0 1 01 1 0 1 1 0 12
0110 0 1 11 1 1 1 0 0 13
0110 1 0 00 1 1 0 0 1 14
0110 1 0 11 0 1 1 0 1 15
0110 1 1 00 0 1 1 1 1 16
0110 1 1 11 1 1 0 0 0 07
0111 0 0 01 1 1 1 1 1 18
0111 0 0 11 1 1 0 0 1 19
0111010 to 11110 0 0 0 0 0 0blank
111X X X Xheldthe code latched while LE was 0

CD4511 pinout

PinNamePinName
1B16VDD
2C15f
3LT (active low)14g
4BL (active low)13a
5LE / STROBE12b
6D11c
7A10d
8VSS9e

X means the input does not matter. The truth table, features and 16-pin pinout are from TI's CD4511B datasheet (SCHS072B), checked 2026-10-25; it runs from 3 V to 18 V and is, in the datasheet's words, similar to the MC14511. For common-anode displays the usual choice is an active-low driver such as the 74LS47.

You can also read the full theory in the lesson on binary-coded decimal. Prefer to build it yourself from scratch? Open the digiwleea lab and place the gates on the canvas, or start from the logic gate simulator.

Build more parts from gates

half adderfull adderhalf subtractorfull subtractor2:1 multiplexer4:1 multiplexerXOR gate from NAND gates2-to-4 decoderSR latchD flip-flopJK flip-flopT flip-flop4-bit shift register4-bit ripple carry adderD latch1-to-4 demultiplexer4-bit magnitude comparator4-bit ring counter4-bit Johnson counter4-to-2 priority encoder4-bit synchronous counter3-to-8 decoder8-to-1 multiplexer4-bit carry lookahead adderhalf adder from NAND gates2-bit comparatorBCD to 7-segment decoder4-bit up/down counterdecade counter2-bit multiplier4-bit ALU4-bit array multiplierNOT, AND, OR and NOR from NANDNOT, OR, AND and XOR from NORfull adder from NAND gatesSR latch from NAND gatesparity generator and checker4-bit adder/subtractorBCD adder4-bit universal shift registermod-6 counter4-bit ripple counterbinary to Gray code converterhalf adder from NOR gatesfull adder from NOR gates4-bit register with parallel load1011 sequence detectorbinary to BCD converterD flip-flop from NAND gates1-bit ALUCMOS inverterCMOS NAND gateCMOS NOR gatePISO shift registerSR flip-flop from NAND gatesBCD to excess-3 code converterHamming (7,4) code encoder and correctortraffic light controller4-bit barrel shifterCMOS AND gateCMOS OR gateCMOS XOR gate1-bit magnitude comparatorhalf subtractor from NAND gatesfull subtractor from NAND gates8-to-3 encoderGray to binary converter4-to-16 decoderfull adder using 4:1 multiplexersedge detectorserial adder4-bit carry-select adder4-bit Kogge-Stone adder4-bit carry-skip adder4x4 Wallace tree multiplier8-bit adderfrequency divider (by 2, 4 and 3)switch debouncer (SR latch)3-bit Gray code counterMealy machine (1011 detector)master-slave JK flip-flop (NAND)half subtractor from NOR gates1-to-8 demultiplexerexcess-3 to BCD code convertervending machine FSM4-bit carry-save adder3-bit synchronous counter (JK)CMOS transmission gatetri-state buffer (CMOS)2-to-1 mux from transmission gatesmod-5 counterflip-flop conversion (JK to D)8-bit ALUdecimal to BCD encoderBCD to decimal decoder4-to-1 mux from 2-to-1 muxesXOR gate from NOR gates4-bit LFSR74LS138 decoderBCD subtractor74181 ALUCMOS AOI gate (AOI21)D latch vs D flip-flop74LS47 BCD to 7-segment decoder74HC595 shift register7400 quad NAND gate chip7402 quad NOR gate chip7404 hex inverter chip7408 quad AND gate chip7432 quad OR gate chip7486 quad XOR gate chip7474 dual D flip-flop74HC165 shift registerCD4017 decade counter74LS283 4-bit adder74LS90 decade counter74HC161 4-bit counter74HC151 8-to-1 multiplexer74HC157 quad 2-to-1 multiplexer74HC139 dual 2-to-4 decoder7492 divide-by-12 counter7493 4-bit binary counter74HC244 octal buffer

Each of these is one step from a transistor to a working CPU. Build every gate from CMOS transistors and work all the way up in the free digiwleea lab, with the free theory reference alongside.

Open the CD4511 BCD to 7-segment decoder in the lab →

Frequently asked

What does the CD4511 do?

It decodes a 4-bit BCD digit into the seven segment signals for a common-cathode 7-segment display, with active-high outputs that can source enough current to drive LEDs. It also has an input latch, a lamp test and a blanking input.

Is the CD4511 for common anode or common cathode displays?

Common cathode: its outputs go high to light a segment, sourcing current into the segment, whose cathode goes to ground. For common-anode displays use an active-low decoder like the 74LS47.

What does the LE pin on the CD4511 do?

LE (latch enable, or strobe) controls the input latches. While LE is low the display follows the BCD inputs; when LE goes high the current code is held, so the inputs can change without changing the display.

What does the CD4511 show for inputs above 9?

Nothing: the datasheet's truth table blanks all seven segments for the illegal codes 1010 to 1111.

What is the difference between the CD4511 and the 74LS47?

The CD4511 is CMOS with active-high outputs for common-cathode displays, an input latch, and blank outputs above 9. The 74LS47 is TTL with active-low open-collector outputs for common-anode displays, ripple blanking for leading zeros, and odd symbols for 10 to 14.