Binary Decoder: Working, Truth Table, Logic Diagram, and Applications

Introduction

A binary decoder is a combinational logic circuit in digital electronics that converts binary information from n coded inputs into a maximum of 2n unique outputs. Binary decoders are widely used in various applications such as instruction decoding, data multiplexing and demultiplexing, seven-segment displays, and memory address decoding.

Regardless of its type or size, a decoder is an electronic circuit that uses multiple input and output signals to convert each unique combination of input states into a specific output combination. Some decoders include one or more enable inputs, which control the active state of the circuit. When the enable input is set to 0 (disabled), all decoder outputs remain inactive.

2-to-4 Binary Decoder

A 2-to-4 line binary decoder has three inputs — A0, A1, and E (Enable) — and four outputs — Y0, Y1, Y2, and Y3. When the enable input E is set to 1, one of the four outputs becomes high (logic 1) based on the binary input combination.

Block Diagram

Truth Table

Enable (E) A1 A0 Y3 Y2 Y1 Y0
0 x x 0 0 0 0
1 0 0 0 0 0 1
1 0 1 0 0 1 0
1 1 0 0 1 0 0
1 1 1 1 0 0 0

Logical Expressions

Logical Diagram

The logical diagram of a 2-to-4 decoder uses AND and NOT gates.
Each output is activated for a specific combination of binary inputs when the enable signal is high.

3-to-8 Binary Decoder

A 3-to-8 binary decoder converts three binary inputs (A, B, and C)
into eight unique outputs (Y0 to Y7).
It also includes an Enable (E) input that activates the decoder.
When E = 1, one of the eight outputs is high depending on the input combination.

Block Diagram

Truth Table

E A2 A1 A0 Output (Y0–Y7)
0 x x x All 0
1 0 0 0 Y0 = 1
1 0 0 1 Y1 = 1
1 0 1 0 Y2 = 1
1 0 1 1 Y3 = 1
1 1 0 0 Y4 = 1
1 1 0 1 Y5 = 1
1 1 1 0 Y6 = 1
1 1 1 1 Y7 = 1

Logical Expressions

Logical Expressions

This decoder can be implemented using AND and NOT gates, where only one output line is high for each binary input combination when E is active.

Applications of Binary Decoder

Conclusion

A binary decoder plays a crucial role in digital systems by converting binary input codes into unique output combinations. It serves as a foundation for digital logic applications, including memory addressing, control systems, and data distribution. Understanding binary decoders is essential for anyone studying or working with digital electronics.