3-to-8 Decoder — IC 74HC138

74HC138 3-to-8 DECODER Active-HIGH outputs Active: A2 A1 A0 Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 0 A2 0 A1 0 A0 0 0 0 0 0 0 0 0 Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7
A = 000 (0)
Y0 is HIGH

Truth Table

A2A1A0DecActive
0000Y0
0011Y1
0102Y2
0113Y3
1004Y4
1015Y5
1106Y6
1117Y7

Yn = Ā2ᵃ·Ā1ᵇ·Ā0ᶜ

Each output is a product of the input variables or their complements. Only the minterm matching the binary input = 1.

Applications

Memory address decoding, chip select logic, 1-of-N selection, BCD-to-decimal, display segment driving.

Decoder vs DEMUX

A DEMUX routes a data signal to one output. A decoder always outputs logic-1 on the selected line (Enable must = 1).