Multiplexers and Demultiplexers in Digital Circuits  

Multiplexers and demultiplexers are devices that route signals. A multiplexer also called a data selector takes one of several inputs and connects it to a single output. The input line that is connected is determined by the binary applied to the address lines. The diagram below shows a multiplexer with four input lines:

Four-to-one digital multiplexer
 Figure (a) Four-to-one digital multiplexer

The two address lines can express numbers zero to three corresponding to the four inputs. For instance, if A1A0 = 10, the logic level at D2 appears at the output pin Y. The number of inputs on a multiplexer on a multiplexer is not limited to four and is related to the number of address lines. If there are n selection lines, then the number of maximum possible input lines is 2n and the multiplexer is referred to as a 2n-to-1 multiplexer or 2n x 1 multiplexer.

A digital multiplexer is unidirectional: the digital level at the selected data line is transferred to the output Y, but a digital level applied at Y will not be transferred to the selected data line. Lastly, most multiplexers have an Enable input or Strobe input as shown in figure (a) above. If this input is low, the multiplexer is enabled and the above described operation occurs. If Enable is high, the output is not connected to any data line and has high impedance to ground. This permits the disconnection of Y from any device that follows it. The small circle on the Enable input indicate the fact the logic is reversed (a high level would normally be associated with turning a device ON, not OFF).

In terms of ICs, there are multiplexers of various input line capacities. For example, the 74HC151 8-line-to-1-line multiplexer uses three select inputs (S0, S1, S2) to select among one of eight possible data inputs (I0 to I7) to be routed to the output.

8-line-to-1-line multiplexer
Figure (b) 8-line-to-1-line multiplexer

To create a larger multiplexer, you can combine two smaller multiplexers together. For example, the figure (c) below shows two 8-line-to-1-line 74HC151 ICs combined to create a 16-line-to-1 line multiplexer. Alternatively you could just use the 16-line-1-line multiplexer IC like the 74HC150 shown in figure (d).

Combining two 8-line-to-1-line multiplexer to create a 16-line-to-1 line multiplexer
Figure (c) Combining two 8-line-to-1-line multiplexer to create a 16-line-to-1 line multiplexer

16-line-to-1-line multiplexer IC
Figure (d) 16-line-to-1-line multiplexer IC

A demultiplexers or data distributor is the opposite of a multiplexer. It takes a single data input and routes it to one of several possible outputs. Let’s consider the demultiplexer illustrated below:

One-to-four digital multiplexer
Figure (e) One-to-four digital multiplexer

In this case, the logic level at the single input D is routed to one of several output lines Y in accordance with the binary number applied to the address lines. Unused output lines have high impedance to ground, as does the selected output if the Enable input is high. As with the multiplexers, digital demultiplexers are unidirectional. An IC that contains two functionally separate four-line demultiplexers is the 74HC139 shown in figure (f) below.

74HC139 dual 4-line demultiplexer
Figure (f) 74HC139 dual 4-line demultiplexer

You can also read: The Basics of Ladder Diagrams for Programming PLCs

Please follow us & share:

Author: John Mulindi

John Mulindi is an Industrial Instrumentation & Control Professional with a wide range of experience in electrical and electronics, process measurement, control systems and automation. He writes on technical as well as business related topics. In free time he spends time reading, taking adventure walks and watching football.

Leave a Reply