0% found this document useful (0 votes)
32 views8 pages

EXPERIMENT NO 4A and 4B

Engineering Mechanics

Uploaded by

Aditya Patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views8 pages

EXPERIMENT NO 4A and 4B

Engineering Mechanics

Uploaded by

Aditya Patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

EXPERIMENT NO.

Study of IC-74LS85 as a magnitude comparator

Title: Study of IC-74LS85 as a magnitude comparator

Objectives:

1) Study of magnitude comparator.


2) Design and Implementation of 4 bit and84 bit magnitude comparator using
IC-74LS85.

Aim: To Study and verify magnitude comparator using IC-74LS85.

Hardware: Digital IC trainer kit, patch cords, power supply, IC’s- 7485

Theory:

The comparison of two numbers is an operator that determines one number is


greater than, less than (or) equal to the other number. A magnitude comparator is a
combinational circuit that compares two numbers. A and B and determines their relative
magnitude. The outcome of the comparator is specified by three binary variables that
indicate whether A>B, A=B (or) A<B.
A=A3A2A1A0
B=B3B2B1B0
The equality of the two numbers and B is displayed in a combinational circuit
designated by the symbol (A=B). This indicates A greater than B, then inspect the
relative magnitude of pairs of significant digits starting from most significant position. A
is 0 and that of B is 0. We have A<B, the sequential comparison can be expanded as
A>B = A3B31 + X 3 A 2 B 21 + X 3 X 2 A 1 B 11 + X 3 X 2 X 1 A 0 B 01
A<B = A 31 B 3 + X 3 A 21 B 2 + X 3 X2A 11 B 1 + X 3 X 2 X 1 A 01 B 0

The same circuit can be used to compare the relative magnitude of two BCD
digits.
Where, A = B is expanded as,
A = B = (A 3 + B 3 ) (A 2 + B 2 ) (A 1 + B 1 ) (A 0 + B 0 )
x3 x2 x1 x0
Magnitude Comparator is a logical circuit, which compares two signals A and B and
generates three logical outputs, whether A > B, A = B, or A < B. IC 7485 is a high speed
4-bit Magnitude comparator, which compares two 4-bit words. The A = B Input must be
held high for proper compare operation.
Introduction of IC 74LS85: The SN54/ 74LS85 is a 4-Bit Magnitude Camparator which
compares two 4-bit words (A, B), each word having four Parallel Inputs (A0–A3, B0–
B3); A3, B3

Fig 5.1: Pin diagram of IC 74LS85


Fig 5.2: logic diagram of IC 74LS85

being the most significant inputs. Operation is not restricted to binary codes, the device
will work with any monotonic code. Three Outputs are provided: “A greater than B”
(OA>B), “A less than B” (OA<B), “A equal to B” (OA=B). Three Expander Inputs,
IA>B, IA<B, IA=B, allow cascading without external gates. For proper compare
operation, the Expander Inputs to the least significant position must be connected as
follows: IA<B= IA>B = L, IA=B = H. For serial (ripple) expansion, the OA>B, OA<B
and OA=B Outputs are connected respectively to the IA>B, IA<B, and IA=B Inputs of
the next most significant comparator, as shown in Figure 1. Refer to Applications section
of data sheet for high speed method of comparing large words. The Truth Table on the
following page describes the operation of the SN54/74LS85 under all possible logic
conditions. The upper 11 lines describe the normal operation under all conditions that
will occur in a single device or in a series expansion scheme. The lower five lines
describe the operation under abnormal conditions on the cascading inputs. These
conditions occur when the parallel expansion technique is used.

Table 5.1: Truth Table of 4 bit comparator IC 7485

Design and Implement 4-bit Comparator:


Table 5.2: Truth table of 4-bit Comparator
Logic Diagram for 4-Bit Comparator Using IC 7485:

Fig 5.3: Design of 4 bit comparator


Observation Table:
Table 4.1 Observation table
Input Output
1st operand 2nd operand
A4 A3 A2 A1 B4 B3 B2 B1 A=B A>B A<B

Design and Implement 8-bit Comparator:


Implementing the Solution
1. Plug the chips you will be using into the breadboard. Point all the chips in the same
direction with pin at the upper-left corner. (Pin 1 is often identified by a dot or a
notch next to it on the chip package).
2. Connect +5V and GND pins of each chip to the power and ground bus strips on the
breadboard.
3. Make the connections as per the circuit diagram.
4. Switch on VCC and apply various combinations of input according to truth table.
5. Take two 4bit nos & Write output in observation table.
6. For 8 bit Magnitude Comparator connect two 4 bit Magnitude Comparator as
shown in diagram and compare 8 bit nos.

Fig 4.4: 8 bit comparator

Procedure:
a. Check all the components for their working.
b. Insert the appropriate IC into the IC base.
c. Make connections as shown in the circuit diagram.
d. Verify the Truth Table and observe the outputs.

Observation Table:
Table 4.1 Observation table
Input
Output
1st operand 2nd operand
A7 A6 A5 A4 A3 A2 A1 A0 B7 B6 B5 B4 B3 B2 B1 B0 A<B A=B A>B

Conclusion: IC 74 LS 85 is used as comparator to compare the magnitude of two binary


numbers and it gives three o/p’s A>B,A=B, and A<B. realization of a higher
magnitude comparator using lower bit comparator by expanding input pins IA>B, I A<B
and IA=B. A magnitude comparator is a combinational circuit that compares two
numbers A and B and determines their relative magnitude.

Upon completion of experiment students will be able to:

1. Define and explain magnitude comparator.


2. Design 4 bit and 8 bit magnitude comparator using IC 74LS85 and verify its
truth table

Oral Question Bank

Q. No Description

What is a comparator?
1
2 What are the applications of comparator?

3 How do you realize a higher magnitude comparator using lower bit comparator?

4 Explain 2 bit comparator?

5 Draw logic diagram of 2 bit comparator

6 How many IC 7485 are required to construct 3 bit comparator?

7 If previous input is A<B then what is the effect on output?

8 If previous input is A>B then what is the effect on output?


Can you Implement your comparator design using a 4-to-16 line decoder
9
Which are the output pins of IC 7485?
10

You might also like