Professional Documents
Culture Documents
+5V
0V
1
Encoders
• Used to convert from one numerical system to
another
• Decimal numbers are encoded to a binary
number
• Application
Encoder
• 74147 is a priority encoder
• Accepts a decimal input and gives the equivalent binary output
• The higher order input presented to the chip will be selected if two inputs
are pressed at the same time
• E.g. 8 has priority over 7 etc
2
Truth table
74147
Keypad (Decimal to
BCD output
(Decimal) BCD
(inverted)
Converter)
3
Typical circuit
Active Low outputs
Active Low
inputs
4
74HC148
• The 74HC148 provides the option to
cascade encoders
• They are
– Inputs can be enabled/disabled
– Signals when any input is pressed
– Cascadable to encode more than 8 inputs
74HC148
5
74HC148
74148
(Decimal to
Keypad
BCD
Converter)
16 bit output
74148
(Decimal to
BCD
Converter)
6
Application circuit – Two 74HC148 cascaded together
Decoder
• Decoding is the process of translating data from
a form to another
• Most common
– Binary to Digital outputs
– Binary to 7 Segment displays to indicate a numerical
value
• Applications
– Decode and address from the PC Address bus to
select a particular device
– To select different devices one at a time
• Example 74HC42,74HC138
7
Use of decoders
Input
Process Decode Display
(Encode)
8
74HC42 – BCD to decimal decoder
9
74HC42 – BCD to decimal decoder
Internal logic diagram
10
74HC138
• Decoders come in many different forms!
• Sometimes a single IC needs to be
selected from a group of IC’s
• 74HC138 features
• Demultiplexing capability
• Multiple input enable for easy expansion
• Ideal for memory chip select decoding
• Active LOW mutually exclusive outputs
• Integrated circuit category: MSI
74HC138
11
74HC138
12
74HC138 – Alternative application
circuit
Driven from 5V
13