Lab 7
Lab 7
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).
74LS85 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?
_____________________________________________________________________________
_____________________________________________________________________________
__________________________________________________________________________