A demultiplexer is the mirror image of a multiplexer. A MUX picks one of many inputs for a single output. A DEMUX takes a single input and delivers it to one of many outputs.
It has one data input D, n select lines and 2ⁿ outputs. The selected output copies D. Every other output is 0.
Each output is D ANDed with the minterm of its select code. For a 1-to-4 DEMUX (S1 is the MSB):
- Y0 =
- Y1 =
- Y2 =
- Y3 =
Compare that with a decoder with an enable input: its outputs are E times each minterm. They are the same circuit. Wire the data to the enable and use the decoder's inputs as selects, and a decoder is a DEMUX. That's why chip catalogs often sell one part as a "decoder/demultiplexer".
Typical use: sharing one wire between several destinations, for example sending a stream of bits to one of several devices, one at a time.