SN74LS85 4-Bit Magnitude Comparator The SN74LS85 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" (OAB, IAB = L, IA=B = H. For serial (ripple) expansion, the OA>B, OAB, IAB, OAB 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 B Greater than A Output A Equal to B Output HIGH LOW 1.5 U.L. 1.5 U.L. 0.5 U.L. 10 U.L. 10 U.L. 10 U.L. 0.75 U.L. 0.75 U.L. 0.25 U.L. 5 U.L. 5 U.L. 5 U.L. NOTES: a) 1 TTL Unit Load (U.L.) = 40 A HIGH/1.6 mA LOW. LOGIC SYMBOL 10 12 13 15 9 11 14 1 4 2 3 A0 A1 A2 A3 B0 B1 B2 B3 OA>B IA>B OAB A1 B1 (6) OA=B (12) (11) (7) A0 B0 OA>B OAB3 A3B2 A2B1 A1B0 A0B X X X X X X X X H L X H L IAB OA B OA > B OA < B IA < B SN74LS85 IA = B OA = 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 SN74LS85 A0 A1 A2 A3 B0 B1 B2 B3 OA > B IA > B IA < B SN74LS85 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 http://onsemi.com 4 OUTPUTS NC SN74LS85 DC CHARACTERISTICS OVER OPERATING TEMPERATURE RANGE (unless otherwise specified) Limits Symbol Min Parameter VIH Input HIGH Voltage VIL Input LOW Voltage VIK Input Clamp Diode Voltage VOH Output HIGH Voltage VOL Output LOW Voltage Typ Max 2.0 0.8 -0.65 2.7 -1.5 3.5 Unit Test Conditions V Guaranteed Input HIGH Voltage for All Inputs V Guaranteed Input LOW Voltage for All Inputs V VCC = MIN, IIN = -18 mA V VCC = MIN, IOH = MAX, VIN = VIH or VIL per Truth Table 0.25 0.4 V IOL = 4.0 mA 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 ICC Power Supply Current 20 mA 2. Not more than one output should be shorted at a time, nor for more than 1 second. VCC = MAX Input HIGH Current A < B, A > B Other Inputs IIH 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 2) -20 VCC = VCC MIN, VIN = VIL or VIH per Truth Table AC CHARACTERISTICS (TA = 25C, VCC = 5.0 V) Limits 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 Symbol Min Parameter 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 tPHL tPLH 1.3 V 1.3 V VOUT Figure 3. tPLH 1.3 V 1.3 V Figure 4. http://onsemi.com 5 SN74LS85 PACKAGE DIMENSIONS N SUFFIX PLASTIC PACKAGE CASE 648-08 ISSUE R NOTES: 1. DIMENSIONING AND TOLERANCING PER ANSI Y14.5M, 1982. 2. CONTROLLING DIMENSION: INCH. 3. DIMENSION L TO CENTER OF LEADS WHEN FORMED PARALLEL. 4. DIMENSION B DOES NOT INCLUDE MOLD FLASH. 5. ROUNDED CORNERS OPTIONAL. -A- 16 9 1 8 B F C DIM A B C D F G H J K L M S L S SEATING PLANE -T- K H G D M J 16 PL 0.25 (0.010) T A M M INCHES MIN MAX 0.740 0.770 0.250 0.270 0.145 0.175 0.015 0.021 0.040 0.70 0.100 BSC 0.050 BSC 0.008 0.015 0.110 0.130 0.295 0.305 0 10 0.020 0.040 MILLIMETERS MIN MAX 18.80 19.55 6.35 6.85 3.69 4.44 0.39 0.53 1.02 1.77 2.54 BSC 1.27 BSC 0.21 0.38 2.80 3.30 7.50 7.74 0 10 0.51 1.01 D SUFFIX PLASTIC SOIC PACKAGE CASE 751B-05 ISSUE J -A- 16 NOTES: 1. DIMENSIONING AND TOLERANCING PER ANSI Y14.5M, 1982. 2. CONTROLLING DIMENSION: MILLIMETER. 3. DIMENSIONS A AND B DO NOT INCLUDE MOLD PROTRUSION. 4. MAXIMUM MOLD PROTRUSION 0.15 (0.006) PER SIDE. 5. DIMENSION D DOES NOT INCLUDE DAMBAR PROTRUSION. ALLOWABLE DAMBAR PROTRUSION SHALL BE 0.127 (0.005) TOTAL IN EXCESS OF THE D DIMENSION AT MAXIMUM MATERIAL CONDITION. 9 -B- 1 P 8 PL 0.25 (0.010) 8 M B S G R K F X 45 C -T- SEATING PLANE J M D 16 PL 0.25 (0.010) M T B S A S http://onsemi.com 6 DIM A B C D F G J K M P R MILLIMETERS MIN MAX 9.80 10.00 3.80 4.00 1.35 1.75 0.35 0.49 0.40 1.25 1.27 BSC 0.19 0.25 0.10 0.25 0 7 5.80 6.20 0.25 0.50 INCHES MIN MAX 0.386 0.393 0.150 0.157 0.054 0.068 0.014 0.019 0.016 0.049 0.050 BSC 0.008 0.009 0.004 0.009 0 7 0.229 0.244 0.010 0.019 SN74LS85 PACKAGE DIMENSIONS M SUFFIX SOEIAJ PACKAGE CASE 966-01 ISSUE O 16 NOTES: 1. DIMENSIONING AND TOLERANCING PER ANSI Y14.5M, 1982. 2. CONTROLLING DIMENSION: MILLIMETER. 3. DIMENSIONS D AND E DO NOT INCLUDE MOLD FLASH OR PROTRUSIONS AND ARE MEASURED AT THE PARTING LINE. MOLD FLASH OR PROTRUSIONS SHALL NOT EXCEED 0.15 (0.006) PER SIDE. 4. TERMINAL NUMBERS ARE SHOWN FOR REFERENCE ONLY. 5. THE LEAD WIDTH DIMENSION (b) DOES NOT INCLUDE DAMBAR PROTRUSION. ALLOWABLE DAMBAR PROTRUSION SHALL BE 0.08 (0.003) TOTAL IN EXCESS OF THE LEAD WIDTH DIMENSION AT MAXIMUM MATERIAL CONDITION. DAMBAR CANNOT BE LOCATED ON THE LOWER RADIUS OR THE FOOT. MINIMUM SPACE BETWEEN PROTRUSIONS AND ADJACENT LEAD TO BE 0.46 ( 0.018). LE 9 Q1 M E HE 1 8 L DETAIL P Z D e VIEW P A A1 b 0.13 (0.005) c M 0.10 (0.004) http://onsemi.com 7 DIM A A1 b c D E e HE L LE M Q1 Z MILLIMETERS MIN MAX --2.05 0.05 0.20 0.35 0.50 0.18 0.27 9.90 10.50 5.10 5.45 1.27 BSC 7.40 8.20 0.50 0.85 1.10 1.50 10 0 0.70 0.90 --0.78 INCHES MIN MAX --0.081 0.002 0.008 0.014 0.020 0.007 0.011 0.390 0.413 0.201 0.215 0.050 BSC 0.291 0.323 0.020 0.033 0.043 0.059 10 0 0.028 0.035 --0.031 SN74LS85 ON Semiconductor and are trademarks of Semiconductor Components Industries, LLC (SCILLC). SCILLC reserves the right to make changes without further notice to any products herein. SCILLC makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does SCILLC assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation special, consequential or incidental damages. "Typical" parameters which may be provided in SCILLC data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including "Typicals" must be validated for each customer application by customer's technical experts. SCILLC does not convey any license under its patent rights nor the rights of others. SCILLC products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the SCILLC product could create a situation where personal injury or death may occur. Should Buyer purchase or use SCILLC products for any such unintended or unauthorized application, Buyer shall indemnify and hold SCILLC and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that SCILLC was negligent regarding the design or manufacture of the part. SCILLC is an Equal Opportunity/Affirmative Action Employer. PUBLICATION ORDERING INFORMATION Literature Fulfillment: Literature Distribution Center for ON Semiconductor P.O. Box 5163, Denver, Colorado 80217 USA Phone: 303-675-2175 or 800-344-3860 Toll Free USA/Canada Fax: 303-675-2176 or 800-344-3867 Toll Free USA/Canada Email: ONlit@hibbertco.com JAPAN: ON Semiconductor, Japan Customer Focus Center 4-32-1 Nishi-Gotanda, Shinagawa-ku, Tokyo, Japan 141-0031 Phone: 81-3-5740-2700 Email: r14525@onsemi.com ON Semiconductor Website: http://onsemi.com For additional information, please contact your local Sales Representative. N. American Technical Support: 800-282-9855 Toll Free USA/Canada http://onsemi.com 8 SN74LS85/D