Difference between Encoder and Decoder
Combinational logic is the concept in which two or more input state define one or more output state. Encoder and Decoder are the combinational logic circuits. In which we implement combinational logic with the help of boolean algebra.
To encode something is to convert an unambiguous piece of information into a form of code that is not so clearly understood and the device which performs this operation is termed ad Encoder.
1. Encoder :
An Encoder is a device that converts the active data signal into a coded message format or it is a device that converts analogue signal to digital signals. It is a combinational circuit, that converts binary information in the form of a 2N input lines into N output lines which represent N bit code for the input. When an input signal is applied to an encoder then logic circuitry involved within it converts that particular input into coded binary output.
To decode is to perform the reverse operation :converting a code back into an unambiguous form code and the device which perform this operation is termed as Decoder.
2. Decoder :
A decoder is also a combinational circuit as encoder but its operation is exactly reverse as that of the encoder. A decoder is a device that generates the original signal as output from the coded input signal and converts n lines of input into 2n lines of output. An AND gate can be used as the basic decoding element because it produces a high output only when all inputs are high.
Difference between encoder and decoder :
|1||Encoder circuit basically converts the applied information signal into a coded digital bit stream.||Decoder performs reverse operation and recovers the original information signal from the coded bits.|
|2||In case of encoder, the applied signal is the active signal input.||Decoder accepts coded binary data as its input.|
|3||The number of inputs accepted by an encoder is 2n.||The number of input accepted by decoder is only n inputs.|
|4||The output lines for an encoder is n.||The output lines of an decoder is 2n.|
|5||The encoder generates coded data bits as its output.||The decoder generates an active output signal in response to the coded data bits.|
|6||The operation performed is simple.||The operation performed is complex.|
|7||The encoder circuit is installed at the transmitting end.||The decoder circuit is installed at the receiving side.|
|8||OR gate is the basic logic element used in it.||AND gate along with NOT gate is the basic logic element used in it.|
|9||It is used in E-mail, video encoders etc.||It is used in Microprocessors, memory chips etc.|