Encode Encoder Decoder Priority Encoder
Encode Encoder Decoder Priority Encoder
These are fundamental digital logic circuits used to convert information between different
formats.
Encoder
An encoder is a combinational circuit that converts information from one format to another,
typically from a set of input lines to a smaller set of output lines. It's like compressing
information.
● Types of Encoders:
○ Binary Encoder: Converts a decimal digit (0-9) into its 4-bit binary equivalent.
○ Priority Encoder: Assigns a priority to each input and outputs the binary code of
the highest priority input that is active. This is useful in scenarios where multiple
inputs might be active simultaneously.
○ Octal Encoder: Converts an octal digit (0-7) into its 3-bit binary equivalent.
○ BCD (Binary Coded Decimal) Encoder: Converts a decimal digit (0-9) into its 4-bit
BCD code.
Decoder
A decoder is a combinational circuit that performs the reverse operation of an encoder. It
converts information from one code to another, typically from a smaller set of input lines to a
larger set of output lines. It's like expanding information.
● Types of Decoders:
○ Binary Decoder: Converts a binary code into a decimal digit.
○ BCD to 7-Segment Decoder: Converts a BCD code into a 7-segment display
format.
○ Decoder with Enable Input: A decoder that requires an enable signal to activate
its output.
Priority Encoder
A priority encoder is a specific type of encoder that assigns a priority level to each input. When
multiple inputs are active, the output corresponds to the input with the highest priority.
Key Differences and Applications
Feature Encoder Decoder Priority Encoder
Function Converts many inputs Converts fewer inputs Assigns priority to
to fewer outputs to many outputs inputs and outputs the
highest priority input
Applications Keyboard encoders, Display drivers, Interrupt controllers,
multiplexer selection memory address data selectors
decoders
Example: 4-to-2 Line Encoder
A 4-to-2 line encoder has four input lines (I0, I1, I2, I3) and two output lines (Y1, Y0). It converts
the active input line into a binary code on the output lines.
Example: 3-to-8 Line Decoder
A 3-to-8 line decoder has three input lines (A, B, C) and eight output lines (Y0, Y1, ..., Y7). It
activates one of the eight output lines based on the binary code on the input lines.
By understanding these fundamental concepts, you can design and analyze various digital
circuits and systems.