22320_DT_CO3_Encoder Decoder
22320_DT_CO3_Encoder Decoder
It basically decodes the coded bits into another Blanking input (BI) which can be used to control
The particular coded data is converted into original output; Used for cascading multiple LED’s
1. The encoder circuit basically converts the applied information signal into a coded digital bit stream. While a decoder performs reverse
operation and recovers the original information signal from the coded bits.
2. The applied input in case of an encoder is an active input signal. As against decoder accepts coded binary data as its input.
3. The encoder generates coded data bits as its output that is fed to the decoder. On the contrary, a decoder provides an active output
signal (original message signal) in response to the coded data bits.
4. The number of inputs accepted by an encoder is 2n but decoder accepts only n inputs.
n
5. The output lines for an encoder are n while for the decoder it is 2 .
6. The operation of an encoder is quite simple but the operation of the decoder is complex as it needs to understand the coding format of
the encoder.
7. In a communication system, the encoder is installed at the transmitting end whereas decoder circuit is installed at the receiving side.
Comparison between ENCODER and DECODER:-
Input applied Active input signal (original message signal Coded binary input
Output generated Coded binary output Active output signal (original message)
n
Input lines 2 N
n
Output lines n 2
Basic logic element OR gate AND gate along with NOT gate
Above figure shows the logic symbol and truth table of a 10-line decimal to four-line BCD encoder providing priority encoding for higher-order
Digits, with digit 9 having the highest priority. In the functional table shown, the input line with highest priority having a LOW on it is encoded
irrespective of the logic status of the other input lines.
Octal to binary Priority encoder
Let us take the case of an octal-to-binary encoder. Such an encoder would have eight input lines, each representing an octal digit, and three
output lines representing the three-bit binary equivalent.
The truth table of such an encoder is given in that D0 to D7 represent octal digits 0 to 7. A, B and C represent the binary digits.
The eight input lines would have 28= 256 possible combinations.
However, in the case of an octal-to-binary encoder, only eight of these 256 combinations would have any meaning. The remaining combinations
of input variables are ‘don’t care’ input combinations. Also, only one of the input lines at a time is in logic ‘1’ state.
Figure shows the hardware implementation of the octal-to-binary encoder described by the truth table. This circuit has the shortcoming that it
produces an all 0s output sequence when all input lines are in logic ‘0’ state. This can be overcome by having an additional line to indicate an all
0s input sequence.
Let us also assume that input lines D2, D4 and D7 are all simultaneously in logic ‘1’ state. Inthat case, only D7 will be encoded andthe output will
be 111. The truth table of such a priority encoder will then be modified it implies that, if D7 = 1, then, irrespective of the logic status of other
inputs, the output is 111 as D7 will only be encoded.