Professional Documents
Culture Documents
Digital Logic Design (EL-227) : Laboratory Manual Spring-2020
Digital Logic Design (EL-227) : Laboratory Manual Spring-2020
(EL-227)
LABORATORY MANUAL
Spring-2020
LAB 08
Binary Encoder
________________________________________ __________ ___
STUDENT NAME ROLL NO SEC
______________________________________
INSTRUCTOR SIGNATURE& DATE
Introduction:
An encoder is a combinational circuit that performs the inverse operation of a decoder. An encoder
has a maximum of 2n input lines and n output lines. The encoder generates binary code at its output
lines that represents which input line is active at a given time. In encoder, it is assumed that only one
input is active high at a time, if more than one inputs are high simultaneously then ambiguous output
is generated. In order to resolve this ambiguity, there must be some input priority function to ensure
that only one input is encoded at a time.
A priority encoder is a combinational circuit that encodes the input using priority function i.e. if more
than one inputs are high simultaneously than the input having the highest priority will take
precedence. Each input line is assigned priority. The most significant input line may be given highest
priority and least significant input line the lowest or vice versa. The priority encoder has an additional
output to ensure that at least one input line is active high and the binary code at the output lines is
valid. Figure 7-2 shows the block diagram of 2nxn priority encoder.
The 74148 is a priority encoder with active-low inputs for decimal digits. There are nine inputs lines
(including an enable input) and five output lines, of which three represents the binary code for the octal
digit. Function of various pins of this IC is described below:
0 through 7: Active low data inputs representing the octal digits
A2,A1,A0: Active low output lines representing the binary code
E1: Active low enable Input
E0: Active low output indicating none of the inputs is high
GS: Active low output indicating any of the inputs is high
VCC and GND: Supply connections lines.
You are required to display the outputs of a 74148 encoder IC on a seven segment display.
The circuit is given in figure,
Implement Octal to Binary Priority Encoder on Bread Board by Using 74148 IC.
INPUTS OUTPUTS
D7 D6 D5 D4 D3 D2 D1 D0 Z2 Z1 Z0
Lab Task#2