Chapter 7-Code Converter
Chapter 7-Code Converter
Chapter 7
Code Converter
Outline
• Code Converter
• Encoder
• Priority Encoder
• Priority Encoder IC
• Decoder
• Decoder IC
• Decoder Application
• Display Decoder
Code Converter
• Code converter circuit is a general category of
circuits used to perform the operation of
converting from one code to another.
• Code conversion is performed by encoder,
decoder and code converter circuits.
• Example, code conversion takes place each
time a key is pressed on a computer keyboard,
telephone pad, a microwave oven keypad or
any similar device where input values are
entered into a system for processing.
• Code conversion is required to operate the
electronic displays that show numbers or letters
on calculators and clocks.
Block diagram of a simple calculator
• The input device is a keyboard where you enter
numbers.
• Between the keyboard and the CPU is an
encoder. The encoder translates the decimal
number pressed on the keyboard into a binary
code such as BCD code.
• The CPU performs its operation in binary and
puts out a binary code. The decoder translates
the binary code from the CPU to a display.
Encoder
• Used extensively in keyboard applications where
activation of a single key must produce a
unique binary code to represent its value.
• Encoders have several inputs, but it converts
only one input at a time into a binary code.
• Encoders are usually specified by the number of
inputs to outputs such as 4:2, 8:3 ,10:4 or 16:4
encoders.
Example
• The job of the encoder in the calculator is to translate
a decimal input to a BCD number.
• A block diagram for a decimal-to-BCD or 10:4 encoder
is shown below.
• The encoder has 10 inputs on the left and 4 outputs
on the right.
• The encoder may have one active input and produces
a unique output.
Truth Table For A 10:4 Encoder
• The inputs are normally low. If a decimal input 4 is
activated (active high), the output is 0100.
Encoder Output Expression and
Obtained Logic Circuit
Example 1 - 4:2 Encoder