Opens in a new tab

SN74LS85N

4-bit magnitude comparator, A>B/A=B/A<B, cascading, PDIP-16

3000

Effective Inventory

Image for reference only

Manufacturer Part:

SN74LS85N

Package:

PDIP-16 (19.3 x 6.35 x 4.57mm, 2.54mm pitch, through-hole)

Brand:

Quality Commitment

Shipping & Payment

Service & Packaging

Product Manual

Description

Product Overview

The SN74LS85N from Texas Instruments is a 4-bit magnitude comparator that determines whether one 4-bit binary number is greater than, less than, or equal to another, with cascading inputs for comparing numbers wider than 4 bits in a 16-pin PDIP package.

Key Specifications

Function 4-bit magnitude comparator
Logic Family LS (Low-power Schottky)
Supply Voltage 4.75V to 5.25V
Inputs A0-A3, B0-B3 (two 4-bit numbers)
Outputs A>B, A=B, A
Cascade Inputs A>B, A=B, A
Propagation Delay 24ns typical (data to output)
Operating Temperature 0°C to +70°C
Package PDIP-16 (19.3 x 6.35mm)

Features

  • Compares two 4-bit binary or BCD numbers
  • Three outputs: A>B, A=B, A
  • Cascading inputs for comparing 8, 12, 16+ bits
  • Only one output HIGH at a time

Applications

  • Address comparison
  • Digital magnitude comparison
  • Process control (temperature, pressure limits)
  • Sorting and ranking logic
Product Introduction: SN74LS85N Product Introduction

The SN74LS85N from Texas Instruments compares two 4-bit binary numbers (A[3:0] and B[3:0]) and indicates whether A>B, A=B, or AB, A=B, A<B) allow multiple 7485 chips to compare numbers wider than 4 bits. For a standalone 4-bit comparison, the cascade inputs must be set: AB=LOW (indicating that the lower-order bits are equal). For 8-bit comparison, the lower-order 7485’s outputs connect to the higher-order 7485’s cascade inputs. The comparison is performed from the most significant bit downward: if A3>B3, then A>B regardless of lower bits; if A3=B3, the comparison proceeds to A2 vs B2, and so on. If all four bits are equal, the result depends on the cascade inputs. The N suffix denotes the PDIP-16 through-hole package.

Working Principle: SN74LS85N Working Principle

The SN74LS85N performs comparison starting from the MSB: if A3>B3 → A>B output HIGH; if A3<B3 → AB output reflects the cascade A>B input; A<B output reflects the cascade AB=LOW, cascade A<B=LOW. This tells the comparator that the 'lower 0 bits' are equal, so if the 4 data bits are also equal, A=B goes HIGH. For 8-bit comparison: lower 7485 compares A[3:0] vs B[3:0]; its three outputs connect to the upper 7485's cascade inputs; the upper 7485 compares A[7:4] vs B[7:4]. If the upper bits are unequal, they determine the result; if equal, the cascade inputs (from the lower chip) decide. For 12-bit: three chips cascade, and so on.

Pin Description: SN74LS85N Pin Definition and Functions
Pin Name Type Description
1 B3 Input Input B bit 3 (MSB)
2 A<B Input Cascade input: A less than B
3 A=B Input Cascade input: A equals B
4 A>B Input Cascade input: A greater than B
5 A>B Output Output: A greater than B (active HIGH)
6 A=B Output Output: A equals B (active HIGH)
7 A<B Output Output: A less than B (active HIGH)
8 GND Power Ground
9 B0 Input Input B bit 0 (LSB)
10 A0 Input Input A bit 0 (LSB)
11 B1 Input Input B bit 1
12 A1 Input Input A bit 1
13 A2 Input Input A bit 2
14 B2 Input Input B bit 2
15 A3 Input Input A bit 3 (MSB)
16 VCC Power Supply (5V)
Application Scenarios: In which products and applications is SN74LS85N used
  • 4-Bit Compare: Two 4-bit counters → A[3:0] and B[3:0]; cascade inputs: A=B=HIGH, A>B=LOW, A<B=LOW; outputs indicate which counter is ahead
  • 8-Bit Compare: Lower 7485 compares bits 0-3; outputs → upper 7485 cascade inputs; upper compares bits 4-7; upper outputs give 8-bit result
  • Alarm Threshold: ADC output → A[3:0]; threshold set by switches → B[3:0]; A>B output triggers alarm when reading exceeds threshold
  • Sort: Compare two numbers; swap if A>B using multiplexers; building block for sorting networks
Alternative Models: What chips are recommended as replacements for SN74LS85N
Model Manufacturer Key Difference Package Supply
74LS85N TI/Nexperia Original TTL version with 5V-only supply, typical propagation delay 10-15ns DIP-16 5V TTL
74LS85D TI/Nexperia Surface-mount SOIC version of LS with identical logic function SOIC-16 5V TTL
74HC85D TI/Nexperia CMOS version with wide 2-6V supply range, lower power consumption and higher noise immunity SOIC-16 2-6V CMOS
74HC85N TI/Nexperia Through-hole DIP version of HC family for prototyping and repair DIP-16 2-6V CMOS
74HCT85D TI/Nexperia CMOS with TTL-compatible input levels, ideal for mixing with LS devices at 5V SOIC-16 4.5-5.5V TTL-in
74HCT85N TI/Nexperia Through-hole DIP version of HCT family for prototyping and repair DIP-16 4.5-5.5V TTL-in

The 7485 is a 4-Bit Magnitude Comparator. Family variants span from the original LS TTL (5V only) to modern LVC/AUP (down to 0.8V). HC and HCT versions offer 2-6V CMOS operation with HCT providing TTL-compatible input thresholds for mixed 5V systems. CD4000-series equivalents offer the widest 3-18V supply range at the cost of lower switching speed. DIP packages (N suffix) are through-hole; SOIC (D suffix) and TSSOP are surface-mount.

Recommend Parts

0751.0505

Schurter fuse, 0751.0505

Brand: schurter

Package: See datasheet

IN STOCK: 6768pcs

Cargo cycle: 3-7 Days

The minimum order is 1

TL062CDR

Low-power JFET-input dual op-amp, 1MHz GBW, 30pA Ibias, SOIC-8, ±3.5V to ±18V

Brand: TI

Package: SOIC-8 (3.9 x 4.9 x 1.75mm)

IN STOCK: 11576pcs

Cargo cycle: 3-7 Days

The minimum order is 1

P89LPC922FN

8-bit 80C51 MCU, 8KB Flash, 256B RAM, 20-SSOP

Brand: NXP

Package: SSOP-20 (7.2 x 5.3 mm)

IN STOCK: 12628pcs

Cargo cycle: 3-7 Days

The minimum order is 1

AC0603JR-070RL

Chip Resistor, 0Ω (Zero Ohm Jumper), ±5%, 0603 (1608 Metric), 1/10W (100mW)

Brand: Yageo

Package: 0603 (1608 Metric)

IN STOCK: 100000pcs

Cargo cycle: 3-7 Days

The minimum order is 1

LMR34206FSC5RNXRQ1

42V 2A sync buck, 5V fixed, 2.2MHz, 18uA Iq, AEC-Q100, SOT-563

Brand: TI

Package: SOT-563 (1.6 x 1.2 x 0.55mm)

IN STOCK: 6500pcs

Cargo cycle: 3-7 Days

The minimum order is 1

AO3402

30V N-channel trench MOSFET, SOT-23, 4A, RDS(on) 52m ohm max @ 10V, Qg 10nC, 2.5V gate drive capable, -55C to +150C.

Brand: aosmd

Package: SOT-23 (2.9 x 1.6 x 1.25mm)

IN STOCK: 14066pcs

Cargo cycle: 3-7 Days

The minimum order is 1