SN54/74LS85 4-BIT MAGNITUDE COMPARATOR 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. * Easily Expandable * Binary or BCD Comparison * OA > B, OA < B, and OA = B Outputs Available 4-BIT MAGNITUDE COMPARATOR LOW POWER SCHOTTKY J SUFFIX CERAMIC CASE 620-09 16 1 N SUFFIX PLASTIC CASE 648-08 16 1 CONNECTION DIAGRAM DIP (TOP VIEW) VCC 16 A3 15 B2 14 A2 13 A1 12 B1 11 A0 10 B0 9 D SUFFIX SOIC CASE 751B-03 16 1 NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package. 1 B3 2 3 IAB OA>B OA=B OA B OA > B OA < B OA = B Parallel Inputs A = B Expander Inputs A < B, A > B, Expander Inputs A Greater Than B Output (Note b) B Greater Than A Output (Note b) A Equal to B Output (Note b) 1.5 U.L. 1.5 U.L. 0.5 U.L. 10 U.L. 10 U.L. 10 U.L. 10 12 13 15 9 11 14 1 LOW 0.75 U.L. 0.75 U.L. 0.25 U.L. 5 (2.5) U.L. 5 (2.5) U.L. 5 (2.5) U.L. NOTES: a) 1 TTL Unit Load (U.L.) = 40 A HIGH/1.6 mA LOW. b) The Output LOW drive factor is 2.5 U.L. for Military (54) and 5 U.L. for Commercial (74) Temperature Ranges. FAST AND LS TTL DATA 5-84 4 2 3 A0 A1 A2 A3 B0 B1 B2 B3 OA>B IA>B OAB A2 B2 (13) (14) (2) AB A1 B1 (6) OA=B (12) (11) (7) OAB3 A3B2 A2B1 A1B0 A0B X X X X X X X X H L X H L IAB OA B IA > B IA < B SN54/74LS85 OA < B OA = B IA = B L L H Bn B n1 B n2 B n3 An A n1 A0 A1 A2 A3 B0 B1 B2 B3 A n2 A n3 SN54/74LS85 A0 A1 A2 A3 B0 B1 B2 B3 IA > B OA > B IA < B SN54/74LS85 OA < B OA = B IA = B A>B A B OA > B #5 OA < B IA < B H IA = B L (MSB) A20 A21 A22 A23 B20 B21 B22 B23 A19 B19 L OA = B A0 A1 A2 A3 B0 B1 B2 B3 IA > B OA > B IA < B #1 OA < B IA = B OA = B NC INPUTS A5 A6 A7 A8 B5 B6 B7 B8 A4 B4 L A0 A1 A2 A3 B0 B1 B2 B3 OA > B IA > B #4 IA < B OA < B IA = B OA = B A15 A16 A17 A18 B15 B16 B17 B18 A10 A11 A12 A13 B10 B11 B12 B13 A9 B9 NC L A0 A1 A2 A3 B0 B1 B2 B3 OA > B IA > B #3 OA < B IA < B IA = B OA = B A14 B14 NC L A0 A1 A2 A3 B0 B1 B2 B3 OA > B IA > B #2 OA < B IA < B IA = B OA = B A0 A1 A2 A3 B0 B1 B2 B3 IA > B OA > B IA < B OA < B #6 IA = B OA = B MSB = MOST SIGNIFICANT BIT LSB = LEAST SIGNIFICANT BIT L = LOW LEVEL H = HIGH LEVEL NC = NO CONNECTION Figure 2. Comparison of Two 24-Bit Words FAST AND LS TTL DATA 5-86 OUTPUTS NC SN54/74LS85 DC CHARACTERISTICS OVER OPERATING TEMPERATURE RANGE (unless otherwise specified) Limits Symbol Parameter VIH Input HIGH Voltage VIL Input LOW Voltage VIK Input Clamp Diode Voltage VOH Output HIGH Voltage VOL Output LOW Voltage Min Typ Unit 2.0 54 V V Guaranteed Input LOW Voltage for All Inputs V VCC = MIN, IIN = - 18 mA 0.8 - 0.65 - 1.5 Test Conditions Guaranteed Input HIGH Voltage for All Inputs 0.7 74 54 2.5 3.5 V 74 2.7 3.5 V VCC = MIN, IOH = MAX, VIN = VIH or VIL per Truth Table 54, 74 0.25 0.4 V IOL = 4.0 mA 74 0.35 0.5 V IOL = 8.0 mA 20 60 A VCC = MAX, VIN = 2.7 V mA VCC = MAX, VIN = 7.0 V - 0.4 - 1.2 mA VCC = MAX, VIN = 0.4 V -100 mA VCC = MAX 20 mA VCC = MAX Input HIGH Current A < B, A > B Other Inputs IIH Max A < B, A > B Other Inputs 0.1 0.3 IIL Input LOW Current A < B, A > B Other Inputs IOS Output Short Circuit Current (Note 1) ICC Power Supply Current - 20 VCC = VCC MIN, VIN = VIL or VIH per Truth Table Note 1: Not more than one output should be shorted at a time, nor for more than 1 second. AC CHARACTERISTICS (TA = 25C, VCC = 5.0 V) Limits Symbol Parameter Min Typ Max Unit tPLH tPHL Any A or B to A < B, A > B 24 20 36 30 ns tPLH tPHL Any A or B to A = B 27 23 45 45 ns tPLH tPHL A < B or A = B to A > B 14 11 22 17 ns tPLH tPHL A = B to A = B 13 13 20 26 ns tPLH tPHL A > B or A = B to A < B 14 11 22 17 ns Test Conditions VCC = 5.0 V CL = 15 pF AC WAVEFORMS VIN 1.3 V 1.3 V tPHL VOUT 1.3 V VIN 1.3 V 1.3 V tPHL tPLH 1.3 V VOUT Figure 3 1.3 V Figure 4 FAST AND LS TTL DATA 5-87 tPLH 1.3 V