Sukkur IBA University
Department of Computer Science
ESE-201: Digital Logic Design Lab
Lab # 07 : Decoder by IC 7442
Note: Complete lab work and upload on e learning
Lab Learning Objectives:
Upon successful completion of this experiment, the student will be able:
To implement and verify Decoder operation using 74LS42 IC
Lab Hardware and Software Required:
1. 74LS42 IC (BCD-to-Decimal Decoder)
2. Module KL-33001/ Elvis II
3. Breadboard
4. Connecting Wires
Background Theory:
Decoder:
Decoder is a logic circuit that accepts a set of inputs that represents a binary number and
activates only the output that corresponds to that input number. In other words, a decoder
circuit looks at its inputs, determines which number is present there, and activates one output
that corresponds to that number; all other outputs remain inactive. Before the design of
decoder, we must decide that whether we want an active high level output or an active low
level output to indicate the value selected. For an active-high indication the required output is
high and all other outputs are low; while in case of active-low, the required output is low and
all other outputs are high. Fig 1 (a & b) shows the logic symbol and logic diagram for 2x 4
decoder. It uses all AND gates, so the outputs are active high. For a given input code, the
only output that is active (high), is one corresponding to decimal equivalent of the binary
input code.
Fig 1: (a) Logic Symbol of 2 x 4 Decoder (b) Logic Diagram of 2 x 4 Decoder
74LS42 Decoder IC:
The TTL 74LS42 accepts four lines of input data and it has ten active-low outputs. The inputs
must be supplied by a coder type BCD, which causes the activation of the output line
corresponding to the applied number. Each output goes low only when its corresponding
BCD input is applied, while all other inputs remain high. Fig 2 shows the pin-out of 74LS42
IC.
2
Fig 2: 74LS42 Decoder IC pin configuration
Lab Activity:
Implementation of BCD-to-Decimal Decoder using 74LS42:
Connect the inputs A, B, C and D to the switches
Connect outputs 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 to the LEDs
Compose all binary numbers from 0 to 9 and analyse the state of LEDs
Input Output (Y)
D C B A 0 1 2 3 4 5 6 7 8 9
Table : Observation table of BCD-to-Decimal Decoder