EXPERIMENT NO 4A and 4B
EXPERIMENT NO 4A and 4B
Objectives:
Hardware: Digital IC trainer kit, patch cords, power supply, IC’s- 7485
Theory:
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
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.
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
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?