There is input condition check “V” to make sure there is any input. If D 2 input is high then the output will be 10 whether the D 1 input is low or high. This encoder will prioritize D 3 over D 2,D 1, and D 0. This encoder prioritizes the highest input and produces output for that highest priority input regardless of the value of the other inputs. Also read: MUX – Digital Multiplexer | Types, Construction & Applications.To remove this ambiguity, Priority encoders are designed. However, there is a limitation, when D 1 and D 2 are high at the same time then the output will be 1 1, which neither represent D 1 nor D 2 output. Schematic diagram of 4 to 2 line encoder using or gates it given below.
This encoder can be implemented with 2 OR gates as shown in the figure below. Line encoders are an example of Encoder in which multi-input lines are converted into a few binary outputs.Īccording to the truth table of 4 to 2 encoder:Īs from the above expressions, we deduce that binary encoder only needs OR gate s. Block diagram of binary encoder is given below. When we want to process data received from many data lines and we have few available input ports or we want to conserve the input ports of a system then we apply an encoder to reduce the number input data lines. It has 2 n input lines and “n” output lines. In simple words, Binary Encoder used to encode a Binary Codes. Its operation is exactly opposite of Binary Decoder.
DECIMAL TO BCD PRIORITY ENCODER K MAP CODE