A seven-segment display cannot take BCD directly; a decoder driver sits between them. This page shows how 74LS47 turns 4-bit BCD into segment signals, how to wire it to a common-anode display, and how the blanking and lamp-test pins work.
74LS47 is a BCD-to-seven-segment open-collector decoder meant for common-anode displays. Inputs A0 to A3 take 4-bit BCD from 0000 to 1001, and outputs a to g are active low, sinking current to light each segment. The 0 to 9 patterns are built in, so you skip segment-code maths. Inputs 1010 to 1111 are illegal and the display misbehaves.
Three control pins are easily missed. LT bar (lamp test) forced low lights every segment for power-up self-check; BI bar over RBO bar is blanking input and ripple-blanking output, grounded to blank all; RBI bar (ripple blanking input) grounded blanks a leading zero when the input is 0. Chain RBI bar and RBO bar across digits to suppress leading zeros.
Wiring needs current-limit resistors. The common anode ties to plus 5V through a resistor per digit, about 150 to 330 ohm by brightness; 74LS47 sinks, segment current set by the resistor, typically 5 to 10 mA per segment. Multiplexed big displays need a driver transistor on the digit select or they go dim.
| Pin | Name | Function |
|---|---|---|
| A0 to A3 | BCD input | 0000 to 1001 valid |
| a to g | Segment out | Low lights |
| LT bar | Lamp test | Low all on |
| BI/RBO | Blank/RBO | Low blanks all |
| RBI bar | Ripple blank in | Low blanks zero |
| VCC/GND | Supply | 5V |
Use static wiring for one digit, multiplex for many to save IO. On power-up pull LT bar low to confirm every segment lights, then release to normal.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Device interface per GB/T 4728 and IEC 60748 logic family. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.