# Decoder Circuit with truth table – Digital Systems

Page Contents

## Introduction

Decoder circuit is a combinational logic circuit that intake binary codes, decodes them and produces an output. In other words we can say that decoders are the circuits that perform the opposite operation of the encoders.

A decoder converts numbers of output from n number of inputs. LG Gram 16 inches Intel Evo 11th Gen Core i7 Ultra-Light Laptop

### 2 line to 4 line decoder:

2 line to 4 line converts 2 line inputs into 4 line outputs.

The block diagram of 2 line to 4 line decoder is given below.

In the above diagram A and B are the inputs to the decoder and D0, D1, D2 and D3 are the outputs of decoder.

The truth table of this circuit is given below. Truth table of 2 line to 4 line decoder

From the above truth table

D0 =

D1 =

D2 =

D3 = A.B

So the logic diagram of 2 line to 4 line decoder is as below. Logic diagram of 2 line to 4 line decoder

### 3 line to 8 line decoder:

3 line to 8 line decoder has 3 inputs and 8 outputs.

The block diagram of 3 to 8 line decoder is given below. Block diagram of 3 line to 8 line decoder

In the above diagram A, B and C are the inputs to the decoder circuit and D0, D1, D2, D3, D4, D5, D6 and D7 are the outputs of the decoder circuit.

The truth table of this circuit is given below. Truth table of 3 line to 8 line decoder

From the above truth table

D0 =

D1 =

D2 =

D3 =

D4 =

D5 =

D6 =

D7 = A.B.C

So the logic diagram of 3 to 8 line decoder is as below. Logic diagram of 3 line to 8 line decoder

### Applications of Decoders:

Decoders are used to produce a group of outputs from a particular combination of inputs. These circuits are used to drive Dc motors, relays and LEDs. Decoders are also used as an address pointer in the memory of computers.

Please write in the comment box below if you have any question.

Exclusive NOR/X-NOR gate(Equality detector)

Adder Circuits (Digital Electronics) – Half and Full adders

What are Number systems? How to convert one number system into another?

Multiplexer – Digital Circuits

What is Subtractor Circuit in Digital Electronics

Boolean Algebra in digital electronics

Difference between Analog and digital systems