Designing of 3-Line to 8-Line Decoder and Demultiplexer

A decoder is a combinational logic circuit which is used to change the code into a set of signals. It is the reverse process of an encoder. A decoder circuit takes multiple inputs and gives multiple outputs. A decoder circuit takes binary data of ‘n’ inputs into ‘2^n’ unique output. In addition to input pins, the decoder has a enable pin. This enables the pin when negated, makes the circuit inactive. in this article, we discuss 3 to 8 line Decoder and Multiplexer.

The below is the truth table for simple 1 to 2 line decoder where A is the input and D0 and D1 are the outputs.

1 to 2 Decoder
1 to 2 Decoder

The circuit shows the 1 to 2 decoder logic.

1 to 2 Decoder Circuit
1 to 2 Decoder Circuit

A demultiplexer is a device that takes a single input and gives one of the several output lines. A demultiplexer takes one single input data and then selects any one of the single output lines one at a time. It is the reverse process of a multiplexer. It is also called as a DEMUX or a data distributor. A DEMUX converts the input serial data line into output parallel data. A DEMUX gives ‘2n’ outputs for ‘n’ selection lines with a single input.

Demux
Demux

DEMUX is used when the circuit wishes to send the data signal to one of the many devices. A decoder is used to select among many devices whereas a demultiplexer is used to send the signal to many devices.

The below is the truth table for 1 to 2 demultiplexer with “I” as input data, D0 and D1 are the output data line and A is the selection line.

1 to 2 Demux Truth Table
1 to 2 Demux Truth Table

The circuit shows the 1 to 2 demultiplexer schematic.

1 to 2 Demux
1 to 2 Demux

3 Line to 8 Line Decoder

This decoder circuit gives 8 logic outputs for 3 inputs and has a enable pin. The circuit is designed with AND and NAND logic gates. It takes 3 binary inputs and activates one of the eight outputs. 3 to 8 line decoder circuit is also called as binary to an octal decoder.

3 to 8 Decoder Block Diagram
3 to 8 Line Decoder Block Diagram

The decoder circuit works only when the Enable pin (E) is high. S0, S1 and S2 are three different inputs and D0, D1, D2, D3. D4. D5. D6. D7 are the eight outputs.

Circuit Diagram

3 to 8 Decoder Circuit
3 to 8 Decoder Circuit

3 to 8 Line Decoder Truth Table

The below table gives the truth table of 3 to 8 line decoder.

S0 S1 S2 E D0 D1 D2 D3 D4 D5 D6 D7
x x x 0 0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0 0 1
0 0 1 1 0 0 0 0 0 0 1 0
0 1 0 1 0 0 0 0 0 1 0 0
0 1 1 1 0 0 0 0 1 0 0 0
1 0 0 1 0 0 0 1 0 0 0 0
1 0 1 1 0 0 1 0 0 0 0 0
1 1 0 1 0 1 0 0 0 0 0 0
1 1 1 1 1 0 0 0 0 0 0 0

When the Enable pin (E) is low all the output pins are low.

1 to 8 Demultiplexer

A 1 line to 8 line demultiplexer has one input, three select input lines and eight output lines. It distributes the one input data into 8 output lines depending on the selected input. Din is the input data, S0, S1, and S2 are select inputs and Y0, Y1, Y2, Y3, Y4, Y5, Y6, Y7 are the outputs.

1 to 8 DEMUX
1 to 8 DEMUX

Circuit Diagram

1 to 8 Demux circuit
1 to 8 Demux circuit

3 to 8 Decoder/Demultiplexer

IC 74HC238 is used is used as decoder/ demultiplexer. 3 to 8 line decoder demultiplexer is a combinational circuit that can be used as both a decoder and a demultiplexer. IC 74HC238 decodes three binary address inputs (A0, A1, A2) into eight outputs (Y0 to Y7). The device also has three Enable pins. The same combination is used as a demultiplexer.

Pin Configuration

The below is the pin configuration for the IC74HC238 3 to 8 line decoder or demultiplexer. It is a 16 pin DIP.

Circuit

The logical circuit explains the working of the IC 74HC238.

Features of 74HC238 IC

  • Demultiplexing capability
  • Multiple inputs enable for easy expansion
  • Ideal for memory chip select decoding
  • Active HIGH mutually exclusive outputs
  • Multiple package option

Application of Decoder

  • The Decoders were used in analog to digital conversion in analog decoders.
  • Used in electronic circuits to convert instructions into CPU control signals.
  • They mainly used in logical circuits, data transfer.

Applications of Demultiplexer

  • Used to connect a single source to multiple destinations.
  • The Demux is used in communication systems to carry multiple data signals into a single transmission line.
  • Used in Arithmetic Logic Units
  • Used in serial to parallel converters in data communications.

Therefore, this is the basic information about 3 to 8 line decoder and demultiplexers. Hope you might have got some fundamental concepts about this topic by observing the digital logic circuits and truth tables and their applications. Furthermore, any doubts regarding this article or Latest electronics projects, You can write your views about this topic in the comment section below.

Add Comment