Encoder
Encoder
Learning Intention
• Computers are made up of digital circuits and a logic gate is
the building blocks of these circuits.
• It is necessary to analyse the working of simple logic circuits,
as this fundamental knowledge will be useful in designing
more complex electronic circuits using the logic gates.
Success Criteria
At the end of this unit the student should be able to
• Analyze the working of simple logic circuits
• Design simple logic circuits like the Encoder, Decoder and
Multiplexer using the appropriate logic gates (either
Fundamental or derived)
Lesson Objectives
To be able to
• analyze Encoder circuits
• explain the working of Encoder circuits
• design the block diagrams and truth tables for designing
encoder circuits
• design a 4 to 2 encoder, Octal to Binary encoder, Decimal to
Binary encoder and Hexadecimal to Binary encoder circuits
Encoder
• A binary encoder, is a multi-input combinational logic circuit that
converts its inputs into an equivalent binary code as its output.
The above Encoder is capable of converting 4 digits From the truth table, the Boolean function for each output is
(0 - 4) to a Binary form. A1 = Y3 + Y2
The 4 to 2 Encoder consists of four inputs Y3, Y2, Y1 A0 = Y3 + Y1
The above two Boolean functions can be implemented using
& Y0 and two outputs A1 & A0. At any time, only
two input OR gates. The circuit diagram of 4 to 2 encoder is
one of these 4 inputs can be ‘high’ in order to get
shown in the following figure.
the respective binary code at the output.
A0 has value 1 for input switches 1 and 3 and A1
has value 1 for input switches 2 and 3. Therefore A0
is connected to switches 1 and 3 and A1 is
connected to switches 2 and 3.
Working of the 4 to 2 Encoder
When a HIGH appears on one of the decimal digit input lines, the
appropriate binary equivalent is generated. For instance, if input
line 9 is HIGH, assuming all other input lines are LOW, this
condition will produce a HIGH on outputs A0 and A3 and LOW on
outputs A1 and A2, which is the Binary code, 1001 for decimal 9.
Similarly, when push button 4 is pressed (input line 4 is HIGH),
only A2 gets a HIGH input and A3, A1 and A0 get LOW inputs.
Therefore, A2 produces a HIGH output and A3, A1 and A0 produce
LOW outputs.
A3 A2 A1 A0 = 0100 (which is the binary equivalent of the decimal
digit 4)
The working of the Octal to Binary encoder and Hexadecimal to
Binary encoder circuits can be explained in a similar manner.
Test your understanding
• Draw the block diagram, truth table and the circuit diagram of a
Hexadecimal to Binary Encoder. Give a brief explanation of its
working.