0% found this document useful (0 votes)
20 views

Lab 7

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Lab 7

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Page |1

DEPARTMENT OF SOFTWARE ENGINEERING


FACULTY OF ENGINEERING AND TECHNOLOGY JAMSHORO
UNIVERSITY OF SINDH JAMSHORO

SUBJECT: DIGITAL LOGIC DESIGN


LAB NO.7
LAB ABILITY TO DATA ANALYSIS
SUBJECT CALCULATION AND OBSERVATION/
PERFORMANCE KNOWLEDGE
CONDUCT AND
CODING RESULTS Presentation SCORE
EXPERIMENT INTERPRETATION
INDICATOR

0.5 0.5 0.5 0.5 0.5 0.5

Name: ____________________________ Roll No _______________________ Score: __________


Signature of Tutor: _______________ Date: ______________

Magnitude Comparator

PERFORMANCE OBJECTIVE
Upon successful completion of this experiment, the student will be able
To verify operations combinational circuits
 RIMS Advanced Trainer
 74LS85 IC. Or 74ls04,86 and 74ls08

EQUIPMENT:
 5V Power supply unit (RIMS)
COMPONENTS:
 IC 74LS85(4-bit Magnitude Comparator)
 Or 74LS04,08 and 86 for combinational circuit of Comparator
 Connecting wires, Hardwires.

NOTE
 Before making any connection to the circuit makes sure that, the power supply is off.
 Take care of the equipments they can be damaged by misuse.
 Before switch on the supply, get it checked by your teacher.
Page |2

INTRODUCTION

Comparator is a combinational logic circuit that compares two input binary numbers and signals if
the two numbers are equal, or if one is higher than the other. The basic function of a comparator is
to compare the magnitude of two quantities to determine the relationship of those quantities. A
binary comparator usually has three outputs: A=B, A>B, A<B. A 1-bit Comparator, compares two
1-bits (A and B) and determines whether they are “greater than,” “less than,” or “equal to” each
other by a high level on the appropriate output. As the outputs exclusively depends on the temporary
inputs, the circuit is composed by logic gates. The logic symbol and logic diagram for 1-bit
Comparator is shown in Fig: 7.1 (a & b).

Fig: 7.1 Logic diagram for 1-bit Comparator

74LS85 Comparator IC

The TTL74LS85 IC is a four-bit magnitude Comparator which will perform comparison of


two 4-bit binary numbers. The pin-out is shown in Fig:7.2. This IC consists of eight
comparing inputs (A0, A1, A2, A3, B0, B1, B2, B3), three cascading inputs (A > B, A < B
and A = B), and three outputs (A > B, A < B and A = B).
This device compares two four-bit words (A and B) and determines whether they are
“greater than,” “less than,” or “equal to” each other by a high level on the appropriate
output. For words greater than four-bits, units can be cascaded by connecting the outputs
(A > B, A < B, and A = B) of the least significant stage to the cascade inputs (A > B, A < B
and A = B) of the next-significant stage. In addition the least significant stage must have a
high level voltage ( V IN (1) )) applied to the A = B input and low level voltage ( V IN ( 0 ) ) applied

to A > B and A < B inputs.


Page |3

Fig: 7.2 Pin Configuration of 74LS 85 Magnitude Comparator IC

OBSERVATION TABLE

INPUTS OUTPUTS
A B A>B A=B A<B
0 0

0 1

1 0

1 1
PROCEDURE
1. Take digital Electronics RIMS and apply 5V power supply from power supply unit
2. Carry out the circuit of Fig: 7.2 on the Module.
3. Connect the inputs A and B to two switches and outputs to three LEDs.
4. Carry out different combinations with the switches and fill the observation table.
5. Use the block COMPARATOR, present on the Module (integrated circuit 74LS85).
6. Connect the inputs related to the binary number A to four switches and the inputs
related the input B to other four switches.
7. Connect inputs A<B, A=B, A>B to ground.
8. Connect outputs A<B, A=B, A>B to three LEDs.
Page |4

9. With the switches compose all combinations between A and B and verify the
comparator operation.

EXERCISE
1.Design the following comparator and verify the results.

REVIEW QUESTIONS:
1. What is basic function of Comparator?
_____________________________________________________________________________
_____________________________________________________________________________
__________________________________________________________________________

2. What are the applications of Comparator?


_____________________________________________________________________________
_____________________________________________________________________________
__________________________________________________________________________

FINAL CHECK LIST

 Clean your equipment/materials and workbenches before you leave.


 Keep all equipment and materials to their proper storage area.
 Submit your answers to questions, together with your data, calculations and results
before the next laboratory.

You might also like