# 8 Bit Comparator Using 74LS85

<Back

## Aim

To study and Verify the 8 Bit Comparator Using 74LS85.

## Learning Objectives

1. To understand the behavior and demonstrate the Implementation of 8-Bit Magnitude Comparator using IC 74LS85.
2. To apply knowledge of the fundamental gates to create truth tables.
3. To develop digital circuit building and troubleshooting skills.
4. To understand key elements of TTL logic specification or datasheets.

## IC Used

For 8 Bit Comparator Using 74LS85:
IC NumberIC Name
74LS854-Bit Magnitude comparators

## Procedure

1. Place the IC on IC Trainer Kit.
2. Connect VCC and ground to respective pins of IC Trainer Kit.
3. Implement the circuit as shown in the circuit diagram.
4. Connect the inputs to the input switches provided in the IC Trainer Kit.
5. Connect the outputs to the switches of O/P LEDs
6. Apply various combinations of inputs according to the truth table and observe the condition of LEDs.
7. Note down the corresponding output readings for various combinations of inputs.
8. Power Off Trainer Kit, disconnect all the wire connections and remove IC's from IC-Base.

## Theory

8-Bit Magnitude Comparator - ​ Comparators with three output terminals and checks for three conditions i.e greater than or less than or equal to is magnitude comparator. The Comparator is another very useful combinational logic circuit used to compare the value of two binary digits.

A magnitude digital Comparator is a combinational circuit that compares two digital or binary numbers in order to find out whether one binary number is equal, less than or greater than the other binary number. We logically design a circuit for which we will have two inputs one for A and another for B and have three output terminals, one for A > B condition, one for A = B condition and one for A < B condition.

Digital Magnitude Comparators are made up from standard AND, NOR and NOT gates that compare the digital signals present at their input terminals and produce an output depending upon the condition of those inputs. An 8-bit comparator compares the two 8-bit numbers by cascading of two 4-bit comparators. The circuit connection of this comparator is shown below in which the lower order comparator A<B, A=B, and A>B outputs are connected to the respective cascade inputs of the higher-order comparator.

For the lower order comparator, the A=B cascade input must be connected High, while the other two cascading inputs A, B must be connected to LOW. The outputs of the higher-order comparator become the outputs of this eight-bit comparator.

## Block Diagram ## Precautions

1. Make the connections according to the IC pin diagram.
2. The connections should be tight on trainer kit.
3. The Vcc and ground should be applied carefully at the specified pin only.

## Conclusion

We have learned the Implementation of 8-Bit Magnitude Comparator using IC-74LS85.