Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Digital Logic Design

(EL-227)
LABORATORY MANUAL
Spring-2020

LAB 08
Binary Encoder
________________________________________ __________ ___
STUDENT NAME ROLL NO SEC

______________________________________
INSTRUCTOR SIGNATURE& DATE

MARKS AWARDED: /03


___________________________________________________________________
NATIONAL UNIVERSITY OF COMPUTER AND EMERGING SCIENCES (NUCES), KARACHI
Date: 18-March-2020
Lab Session 08:Binary Decoder
OBJECTIVES:
After completing this lab, you would be able to know
 To study the basic operation and design of the Encoder circuits
 Explain the working principle of 3-8 line Octal to Binary Encoding
 Understand the usage of Priority Encoder
APPARATUS:
 Logics Trainer, Logics works

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.

Figure 1 2x4 Encoder Block Diagram


74148 (8 x 3) Octal to Binary 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.

Figure2 8*3 Priority Encoding

7447 BCD to Seven Segment Driver


7447 IC is particularly used to drive common-anode Seven Segment displays. Its input is a BCD
number and output drives a seven segment display. Refer to appendix A for IC pin configuration.
Function of various pins of these ICs is described below:
1. A, B, C, D: Active high inputs representing BCD digits (D being the MSB).
2. O A through O G: Active low outputs to drive segments although of the display.
3. RBI: Ripple Blanking Input. Turns off all the segments if kept low, provided that LT is kept
high and all other inputs(A,B,C,D,BI)are kept low. Should be kept high otherwise.
4. BI/RBO: Wire-AND logic serving as a Blanking Input and/or Ripple Blanking Output.
5. BI: Turns off all the segments if low.
6. RBO: Goes to a low level (response condition) along with other outputs,when RBI and
inputs A, B, C, and Dare low with LT input at high level.
7. LT: Lamp Test input . Tests whether all segments are working or not. Illuminates all
segments if kept low, provided that high. Should be kept high otherwise.
8. 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,

1. Make connections as shown in figure


2. Select any input from 74148IC and observe the corresponding decimal code being
displayed on the seven segments.

Figure3 8*3 Circuit of Encoder and Segment display


Lab Task#1

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

Implement Decimal to BCD Priority Encoder by Using 74147 IC.

Decimal Inputs Outputs


E1' 1' 2' 3' 4' 5' 6' 7' 8' 9' Q3' Q2' Q1' Q0'

You might also like