Decoder

A decoder maps an input code to an output pattern. A binary line decoder selects one output when enabled; a BCD-to-seven-segment decoder can activate several segment outputs for one digit. These are related functions, not the same one-hot truth table.

The SN74HC138 is a 3-to-8 line decoder with active-low outputs. With G1 HIGH and both G2A and G2B LOW, the binary address selects one LOW output while the others remain HIGH. Deactivating any enable forces all outputs HIGH. A display decoder such as CD4511B instead maps a BCD code to a segment pattern and includes separate control functions.

In plain terms

A line decoder is like a switchboard selecting one destination from an address. A display decoder is more like a translator that turns a digit code into several lit segments.

Why designers use it

Best for

Key specifications

When not to use it

Common mistakes

Where you will find it

A short history

Binary line decoding and display-code decoding solve different mapping problems. The SN74HC138 selects one active-low line from eight; CD4511B produces a display pattern from BCD. Checking the truth table is more useful than assuming that every part called a decoder behaves identically.

Related