L8-2 Encoders
L8-2 Encoders
• Decoders
• Encoders
2
ㅡ
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
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
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