74LS85 (On) PDF
74LS85 (On) PDF
74LS85 (On) PDF
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 http://onsemi.com
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 LOW
Expander Inputs, IA > B, IA < B, IA = B, allow cascading without external POWER
gates. For proper compare operation, the Expander Inputs to the least
significant position must be connected as follows: IA < B= IA > B = L, SCHOTTKY
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
SN74LS85 under all possible logic conditions. The upper 11 lines 16
describe the normal operation under all conditions that will occur in a
1
single device or in a series expansion scheme. The lower five lines
describe the operation under abnormal conditions on the cascading PLASTIC
N SUFFIX
inputs. These conditions occur when the parallel expansion technique
CASE 648
is used.
• Easily Expandable
• Binary or BCD Comparison
• OA > B, OA < B, and OA = B Outputs Available
16
GUARANTEED OPERATING RANGES 1
ORDERING INFORMATION
VCC A3 B2 A2 A1 B1 A0 B0
16 15 14 13 12 11 10 9
NOTE:
The Flatpak version has the same
pinouts (Connection Diagram) as
the Dual In-Line Package.
1 2 3 4 5 6 7 8
B3 IA<B IA=B IA>B OA>B OA=B OA<B GND
LOADING (Note a)
PIN NAMES HIGH LOW
A0 – A3, B0 – B3 Parallel Inputs 1.5 U.L. 0.75 U.L.
IA = B A = B Expander Inputs 1.5 U.L. 0.75 U.L.
IA < B, IA > B A < B, A > B, Expander Inputs 0.5 U.L. 0.25 U.L.
OA > B A Greater than B Output 10 U.L. 5 U.L.
OA < B B Greater than A Output 10 U.L. 5 U.L.
OA = B A Equal to B Output 10 U.L. 5 U.L.
NOTES:
a) 1 TTL Unit Load (U.L.) = 40 mA HIGH/1.6 mA LOW.
LOGIC SYMBOL
10 12 13 15 9 11 14 1
A0 A1 A2 A3 B0 B1 B2 B3
4 IA>B OA>B 5
2 IA<B OA<B 7
3 IA=B OA=B 6
VCC = PIN 16
GND = PIN 8
http://onsemi.com
2
SN74LS85
LOGIC DIAGRAM
(15)
A3
B3
(1)
(5)
OA>B
(13)
A2
B2
(14)
(2)
A<B (3) (6)
A=B (4) OA=B
A>B
(12)
A1
B1
(11)
(7)
OA<B
(10)
A0
B0
(9)
TRUTH TABLE
CASCADING
COMPARING INPUTS OUTPUTS
INPUTS
A3,B3 A2,B2 A1,B1 A0,B0 IA>B IA<B IA=B OA>B OA<B OA=B
A3>B3 X X X X X X H L L
A3<B3 X X X X X X L H L
A3=B3 A2>B2 X X X X X H L L
A3=B3 A2<B2 X X X X X L H L
A3=B3 A2=B2 A1>B1 X X X X H L L
A3=B3 A2=B2 A1<B1 X X X X L H L
A3=B3 A2=B2 A1=B1 A0>B0 X X X H L L
A3=B3 A2=B2 A1=B1 A0<B0 X X X L H L
A3=B3 A2=B2 A1=B1 A0=B0 H L L H L L
A3=B3 A2=B2 A1=B1 A0=B0 L H L L H L
A3=B3 A2=B2 A1=B1 A0=B0 X X H L L H
H = HIGH Level
A3=B3 A2=B2 A1=B1 A0=B0 H H L L L L L = LOW Level
A3=B3 A2=B2 A1=B1 A0=B0 L L L H H L X = IMMATERIAL
http://onsemi.com
3
SN74LS85
A n3
A n2
A n1
B n3
B n2
B n1
An
Bn
A0 A1 A2 A3 B0 B1 B2 B3
A0 A1 A2 A3 B0 B1 B2 B3 A0 A1 A2 A3 B0 B1 B2 B3
L IA > B OA > B IA > B OA > B A>B
L IA < B SN74LS85 OA < B IA < B SN74LS85 OA < B A<B
H IA = B OA = B IA = B OA = B A=B
L = LOW LEVEL
H = HIGH LEVEL
APPLICATIONS
Figure 2 shows a high speed method of comparing two when comparing two 24-bit words. The parallel technique
24-bit words with only two levels of device delay. With the can be expanded to any number of bits, see Table 1.
technique shown in Figure 1, six levels of device delay result
Table 1
WORD LENGTH NUMBER OF PKGS.
1 – 4 Bits 1
5 – 24 Bits 2–6 NOTE:
25 – 120 Bits 8 – 31 The SN74LS85 can be used as a 5-bit comparator only
when the outputs are used to drive the A0–A3 and B0–B3
inputs of another SN74LS85 as shown in Figure 2 in posi-
tions #1, 2, 3, and 4.
INPUTS
(LSB) (MSB)
A0 A1 A2 A3 B0 B1 B2 B3 A20 A21 A22 A23 B20 B21 B22 B23
A0 A1 A2 A3 B0 B1 B2 B3 A0 A1 A2 A3 B0 B1 B2 B3
L IA > B OA > B A19 IA > B OA > B
L IA < B #5 OA < B B19 IA < B #1 OA < B
H IA = B OA = B L IA = B OA = B NC
INPUTS
A5 A6 A7 A8 B5 B6 B7 B8 A10 A11 A12 A13 B10 B11 B12 B13 A15 A16 A17 A18 B15 B16 B17 B18
A0 A1 A2 A3 B0 B1 B2 B3 A0 A1 A2 A3 B0 B1 B2 B3 A0 A1 A2 A3 B0 B1 B2 B3
A4 IA > B OA > B A9 IA > B OA > B A14 IA > B OA > B
B4 IA < B #4 OA < B B9 IA < B #3 OA < B B14 IA < B #2 OA < B
L IA = B OA = B NC L IA = B OA = B NC L IA = B OA = B NC
A0 A1 A2 A3 B0 B1 B2 B3
IA > B OA > B
IA < B #6 OA < B OUTPUTS
IA = B OA = B
http://onsemi.com
4
SN74LS85
tPLH Any A or B to A = B 27 45 ns
tPHL 23 45
AC WAVEFORMS
Figure 3. Figure 4.
http://onsemi.com
5
SN74LS85
PACKAGE DIMENSIONS
N SUFFIX
PLASTIC PACKAGE
CASE 648–08
ISSUE R
NOTES:
–A– 1. DIMENSIONING AND TOLERANCING PER ANSI
Y14.5M, 1982.
2. CONTROLLING DIMENSION: INCH.
16 9 3. DIMENSION L TO CENTER OF LEADS WHEN
FORMED PARALLEL.
B 4. DIMENSION B DOES NOT INCLUDE MOLD FLASH.
1 8 5. ROUNDED CORNERS OPTIONAL.
INCHES MILLIMETERS
DIM MIN MAX MIN MAX
F C L A 0.740 0.770 18.80 19.55
B 0.250 0.270 6.35 6.85
S C 0.145 0.175 3.69 4.44
D 0.015 0.021 0.39 0.53
SEATING F 0.040 0.70 1.02 1.77
–T– PLANE G 0.100 BSC 2.54 BSC
H 0.050 BSC 1.27 BSC
H K M J 0.008 0.015 0.21 0.38
J K 0.110 0.130 2.80 3.30
G L 0.295 0.305 7.50 7.74
D 16 PL
M 0_ 10 _ 0_ 10 _
0.25 (0.010) M T A M S 0.020 0.040 0.51 1.01
http://onsemi.com
6
SN74LS85
PACKAGE DIMENSIONS
D SUFFIX
PLASTIC SOIC PACKAGE
CASE 751B–05
ISSUE J
–A–
NOTES:
1. DIMENSIONING AND TOLERANCING PER ANSI
Y14.5M, 1982.
16 9 2. CONTROLLING DIMENSION: MILLIMETER.
3. DIMENSIONS A AND B DO NOT INCLUDE
–B– MOLD PROTRUSION.
P 8 PL
4. MAXIMUM MOLD PROTRUSION 0.15 (0.006)
1 8
0.25 (0.010) M B S 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.
G
MILLIMETERS INCHES
DIM MIN MAX MIN MAX
F A 9.80 10.00 0.386 0.393
K R X 45 _ B 3.80 4.00 0.150 0.157
C 1.35 1.75 0.054 0.068
D 0.35 0.49 0.014 0.019
C F 0.40 1.25 0.016 0.049
–T– SEATING G 1.27 BSC 0.050 BSC
PLANE
M J J 0.19 0.25 0.008 0.009
K 0.10 0.25 0.004 0.009
D 16 PL M 0_ 7_ 0_ 7_
P 5.80 6.20 0.229 0.244
0.25 (0.010) M T B S A S R 0.25 0.50 0.010 0.019
http://onsemi.com
7
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.
http://onsemi.com SN74LS85/D
8
This datasheet has been downloaded from:
www.DatasheetCatalog.com