The main focus will be on the Encoders and Decoders in Digital Electronics here. But first, we will have to learn about Multiplexers and Demultiplexers. Multiplexers and Demultiplexers also work together as many communication systems are bidirectional.
Multiplexer
It
follows the many-to-one rule. It is a
combinational circuit that has at most 2n data inputs where 'n' is
the number of 'selection lines.' Out of these input lines, anyone is selected
and routed to form the only output line.
The
input consists of analog or digital data.
To
handle analog signals, transistor switches and relays are used to build the
multiplexer.
To handle digital signals, logic gates are used to build the multiplexer.
Some types of Multiplexers
- 2-to-1 Multiplexer(with 1 select line).
- 4-to-1 Multiplexer(with 2 select lines).
- 8-to-1 Multiplexer(with 3 select lines).
- 16-to-1 Multiplexer(with 4 select lines).
Applications of Multiplexers
- It is used as a one-way rotary switch also called the wafer switch. The input is selected by rotating the shaft.
- Video and audio data can be transferred through the cables from various channels.
- A GSM satellite is used by the ground system when a satellite's computer system has to communicate data signals with it. Multiplexer plays a key role here.
- The modulation occurs in the transmitter. Before the audio enters the transmitter, subcarriers are added to it. This process is called Multiplexing. Referring to this, Multiplexing, sometimes, is also known as MPX.
- A huge amount of memory can be kept on the computer by using a Multiplexer. Thus, the number of copper lines connecting the memory with the other parts of the computer can also be decreased.
Demultiplexer
It follows the one-to-many rule. It is a combinational circuit that has a single input line and 2n output lines where 'n' is the number of select lines. A multiplexer does the encoding of multiple input signals using a wire while a Demultiplexer does the opposite. The choice of the output line for forwarding the input depends on the value of the selection lines.
Some types of Demultiplexers
- 1-to-2 Demultiplexer(with 1 select line).
- 1-to-4 Demultiplexer(with 2 select lines).
- 1-to-8 Demultiplexer(with 3 select lines).
- 1-to-16 Demultiplexer(with 4 select lines).
Applications of Demultiplexers
- The ALU and parallel data circuits can be reconstructed using Demultiplexer.
- The video and audio data signals transmitted using the Multiplexer at the sender's end are converted into the original form at the receiver's end using the Demultiplexer. Subtitles can also be regenerated using the same.
- Demultiplexer can also get its input from the output of an ALU. Thus, the output can be stored in various storage units or registers.
- The serial data stream can be reconstructed into parallel data using Demultiplexer. Accordingly, it should get the serial input data stream at fixed intervals. The input to the Demultiplexer has to be controlled by attaching a counter. The final output can then be read in parallel after all the data signals get stored.
- A Demultiplexer helps design the digital logic. It can be used as a binary decoder if its input is always true.
Now we will move to the main topic.
Encoder
The applied input signal is changed in a coded binary format at the output using an Encoder. An encoder is a combinational circuit that falls under the category of Medium Scale Integrated Circuit. It has maximum '2n' input lines, out of which at most one will be high(or activated) at a time, and 'n' output lines. Encoder thus helps to decrease the number of data lines.
Some Types Of Encoders
- Priority Encoder.
- Octal to Binary Encoder.
- Hexadecimal to Binary Encoder.
- Decimal to BCD Encoder.
A 4:2 Binary Encoder
Here,
Number
of output lines(n) = 2
Number
of input lines(2n) = 4
If the input line I0(0,0) is activated, then the output will be 0,0(Y0=0, Y1=0). Similarly, if the input line I1(0,1) is activated, then the output will be 0,1(Y0=0, Y1=1) and so on…
The following Truth Table shows the same.
A Priority Encoder
The Truth Table of 4:2 Binary Encoder shows that when the input '1' is applied to the input line I0, both the output lines Y0 and Y1 are high at the same time. This produces ambiguity.
The
Priority Encoder provides a solution by prioritizing every input level. The
highest priority will be assigned to the MSB and the lowest to the LSB. Inputs
having lower priority will be ignored in the presence of the input with higher
priority.
A
Priority Encoder is also called a P-Encoder,
Leading Zero Counter (LZC), Leading Zero Detector (LZD). Recursion can be
used to efficiently construct the Priority Encoders.
Decoder
It transfers the coded input into another form of coded output. In this combinational logic circuit, the input and the output are different from each other. It can also be said to perform the inverse operation of an Encoder. It has ‘n’ number of input lines, an ‘Enable input,’ and maximum ‘2n’ output lines. Out of these output lines, only one will be high(or active) at a time. It thus detects a certain code. The output will be generated only when the ‘Enable input’ line will have the value ‘1.’ No output will be produced for input ‘0.’ For that, AND Gates are fed with the ‘Enable input.’
Some Types Of Decoders
- 2-to-4 Decoder.
- 3-to-8 decoder.
- 4-to-16 decoder.
Applications Of Decoders
- The main application is in data multiplexing and demultiplexing(or data distribution).
- For port-mapped and memory-mapped input/output i.e. in addressing core memory.
- For interfacing to Seven-segment displays.
- For traffic lights.
- To turn the devices ON or OFF at certain intervals by acting as the timing signal.
Comments
Post a Comment