Session_05_Encoder Decoder
Session_05_Encoder Decoder
Topic:
Encoder(74LS148), Decoder(74LS138)
Session No: 05
AIM OF THE SESSION
To familiarize students with the basic concept of Encoders and Decoders using SN74LS148 and 74LS138 ICs respectively.
INSTRUCTIONAL OBJECTIVES
LEARNING OUTCOMES
• 4 to 2 Encoder: The 4 to 2 Encoder consists of four inputs Y3, Y2, Y1 & Y0, and
two outputs A1 & A0. At any time, only one of these 4 inputs can be ‘1’ in order to
get the respective binary code at the output.
Fig. 4 to 2 Encoder
Table:Truth Table of 4 to 2 Encoder
SN74LS148: Priority Encoder
• For all types, data inputs and outputs are active at the low
logic level.
PIN DESCRIPTION OF SN74LS148
Decoder is a combinational circuit that has ‘n’ input lines and maximum of 2n output lines.
One of these outputs will be active High based on the combination of inputs present, when
the decoder is enabled. That means decoder detects a particular code.
2 to 4 line decoder: In the 2 to 4 line decoder, there is a total of three inputs, i.e., A0, and A1 and E and four
outputs, i.e., Y0, Y1, Y2, and Y3. For each combination of inputs, when the enable 'E' is set to “1”, one of these four
outputs will be “1”.
74LS138 : 3 to 8 Line Decoder
• As shown in table first three rows the enable pins needed to be connected appropriately or irrespective of
input lines all outputs will be high.
• After powering, if all buttons are not pressed O0 will be LOW and remaining output will be HIGH as
shown in table.
• If only A0 is pressed, A0=HIGH and O1 will become LOW while remaining will be HIGH.
• Following if only A1 is pressed, A1=HIGH and O2 will become LOW while remaining will be HIGH.
TRADITIONAL ENCODE-DECODE MODEL OF HUMAN COMMUNICATION
SUMMARY
This Session is designed to demonstrate the operation and applications of encoding logic in digital
systems. We have also described the working of SN74LS148 priority encoder integrated circuit. We
have listed out the applications of encoders and decoders. Added to this we have described the
A. 2
B. 3
C. 4
D. 8
SELF-ASSESSMENT QUESTIONS
4. In a 2-to-4 Encoder, if the input is 01, which output line will be active?
A. Output 0
B. Output 1
C. Output 2
D. Output 3
TERMINAL QUESTIONS
Reference Books:
1. Internet of Things: A Hands-On Approach" by Arshdeep Bahga and Vijay Madisetti
2. "Internet of Things: Architectures, Protocols and Standards" by Hossam Mahmoud Ahmad Fahmy
and Ahmed K. Elhakeem