

The above two Boolean functions can be implemented as : The truth table for priority encoder is as follows :
#Decimal to bcd priority encoder code#
In this case, even if more than one input is ‘1’ at the same time, the output will be the (binary) code corresponding to the input, which is having higher priority. Here, the input, Y3 has the highest priority, whereas the input, Y0 has the lowest priority. The above two Boolean functions can be implemented using OR gates :Ī 4 to 2 priority encoder has 4 inputs : Y3, Y2, Y1 & Y0 and 2 outputs : A1 & A0. Logical expression for A3, A2, A1 and A0 : A3 = Y9 + Y8 The truth table for decimal to BCD encoder is as follows: The figure below shows the logic symbol of decimal to BCD encoder : This encoder accepts the decoded decimal data as an input and encodes it to the BCD output which is available on the output lines. Each input line corresponds to the each decimal digit and 4 outputs correspond to the BCD code. The decimal to binary encoder usually consists of 10 input lines and 4 output lines. The above two Boolean functions A2, A1 and A0 can be implemented using four input OR gates : The truth table for 8 to 3 encoder is as follows :

The figure below shows the logic symbol of octal to binary encoder: Each input line corresponds to each octal digit and three outputs generate corresponding binary code.

The 8 to 3 Encoder or octal to Binary encoder consists of 8 inputs : Y7 to Y0 and 3 outputs : A2, A1 & A0. The above two Boolean functions A1 and A0 can be implemented using two input OR gates : Logical expression for A1 and A0 : A1 = Y3 + Y2 The Truth table of 4 to 2 encoder is as follows : The figure below shows the logic symbol of 4 to 2 encoder : At any time, only one of these 4 inputs can be ‘1’ in order to get the respective binary code at the output. The 4 to 2 Encoder consists of four inputs Y3, Y2, Y1 & Y0 and two outputs A1 & A0. Therefore, the encoder encodes 2^n input lines with ‘n’ bits. It will produce a binary code equivalent to the input, which is active High. An Encoder is a combinational circuit that performs the reverse operation of Decoder.It has maximum of 2^n input lines and ‘n’ output lines, hence it encodes the information from 2^n inputs into an n-bit code.
