8.
Functions of Combinational Logic - II
• Decoders
• Encoders
Dr. Tha Pyay Win Faculty of Computer Systems and Technologies
Encoders
Lesson Outlines Lesson Objectives
1. The Decimal-to-BCD Encoder • To understand the
2. The Decimal-to-BCD Priority Encoder implementation of decimal-
3. A simplified keyboard encoder to-BCD encoder circuit, its
operation and application
2
ㅡ
Dr. Tha Pyay Win Faculty of Computer Systems and Technologies 9
Encoders
1. The Decimal-to-BCD Encoder
Encoder → accepts an active level on one of its inputs (decimal or octal digit) and converts
it to a coded output (BCD or binary).
Logic symbol Truth Table
3
ㅡ
Dr. Tha Pyay Win Faculty of Computer Systems and Technologies 9
Encoders
A3 = 8 + 9
A2 = 4 + 5 + 6 + 7
A1 = 2 + 3 + 6 + 7
A0 = 1 + 3 + 5 + 7 + 9
Logic Diagram of a decimal-to-BCD encoder
4
ㅡ
Dr. Tha Pyay Win Faculty of Computer Systems and Technologies 9
Encoders
2. The Decimal-to-BCD Priority Encoder
The 74HC147 Decimal-to-BCD Priority Encoder
IC Pin diagram Logic symbol
5
ㅡ
Dr. Tha Pyay Win Faculty of Computer Systems and Technologies 9
Encoders
EXAMPLE 8–2.1
If LOW levels appear on pins 1, 4, and 13 of the 74HC147 shown in Figure, indicate
the state of the four outputs. All other inputs are HIGH.
Solution
pin 1 → decimal 4
Pin 4 → decimal 7 (highest)
Pin 13 → decimal 3
7 = 0111
For active-LOW output,
A3 = 1, A2 = 0, A1 = 0, A0 = 0
6
ㅡ
Dr. Tha Pyay Win 9
Faculty of Computer Systems and Technologies
Encoders
3. A Simplified Keyboard Encoder
7
ㅡ
Dr. Tha Pyay Win Faculty of Computer Systems and Technologies 9
Encoders
Problems
1. An encoder essentially performs a reverse decoder function. (T/F)
2. If an octal-to-binary priority encoder has its 0, 2, 5, and 6 inputs at the
active level, the active-HIGH binary output is ------------------.
3. What are the outputs of the 74HC147 if all its inputs are LOW? If all its
inputs are HIGH?
4. (a) What is the A3 A2 A1 A0 output when LOWs are applied to pins 1 and 5
of the 74HC147?
(b) What does this output represent?
74HC147 IC
8
ㅡ
Dr. Tha Pyay Win Faculty of Computer Systems and Technologies 9
Thank You
For your attention
Dr. Tha Pyay Win Faculty of Computer Systems and Technologies