Texas Instruments

SN74LS688N 8-Bit Identity Comparator | Texas Instruments

MPN: SN74LS688N ✓ Nakahanda
20-pin plastic DIP (PDIP-N) Package
MOQ: 1 |

SN74LS688N Ulas

The Texas Instruments SN74LS688N is an 8-bit identity and magnitude comparator in a 20-pin plastic dual in-line package. It compares two 8-bit binary or BCD words and provides a dedicated P=Q output, while a low-active enable input controls whether the comparison output is actively driven. The device belongs to the SN74LS TTL logic family and is intended for digital systems that need a fast equality decision without implementing the comparison function in general-purpose logic.

A magnitude comparator is a combinational logic device that evaluates the relative relationship between two multi-bit values. An identity comparator is the equality-focused subset of that category: instead of reporting greater-than and less-than relationships, the SN74LS688N asserts its P=Q result when the two input words match. In system terms, the device sits between two data buses and a downstream control or decoding circuit, converting eight parallel bit comparisons into one consolidated status signal.

The principal features of the SN74LS688N are its 8-bit binary or BCD input capability, P=Q output with enable control, totem-pole output structure, and input hysteresis. These characteristics make it useful where noise immunity and stable switching behavior are important in TTL-compatible equipment. The N suffix denotes the plastic through-hole package, which supports conventional 0.100-inch lead pitch layouts, prototyping, repair work, and legacy industrial control equipment.

Internally, the SN74LS688N organizes the comparison into a chain of logic stages that examine corresponding bits from the P and Q buses. Each stage propagates the higher-order comparison result toward the output, allowing the final P=Q signal to reflect the complete eight-bit relationship. External enable control prevents the output from changing state while the compared data is being updated, helping downstream circuitry avoid interpreting intermediate bus states as valid comparisons.

Typical applications include digital test equipment, industrial control panels, memory and address checking, sorting and routing control, legacy processor subsystems, and general-purpose binary or BCD data validation. The chip is especially useful when a fixed-width equality result is needed but a larger programmable comparator would be unnecessary. It can also form part of a multi-stage comparison system when several independent 8-bit sections must be checked separately.

When laying out a board around the SN74LS688N, maintain the standard 20-pin through-hole footprint and route the two input buses away from high-current switching nodes. The enable input should be driven only when both buses are stable, and unused inputs should be tied to a defined TTL level rather than left floating. Because this is a legacy through-hole logic device, designers should also verify the system supply level, input thresholds, output timing, and noise margin against the manufacturer datasheet before releasing a new production design.

This product page adds engineering context beyond the basic catalog entry by organizing the comparison function, package details, application fit, verified source links, and realistic replacement constraints. It also highlights that true drop-in alternatives are limited: substitute parts must preserve the 20-pin footprint, pin functions, logic levels, P=Q behavior, and enable timing rather than merely offering a superficially similar 8-bit comparator.

Mga alternatibo na pwedeng ilagay na SN74LS688N — parehas na package, pin-to-pin na katugmang. Hindi kasama ang mga bahagi ng iba't-ibang package na nangangailangan ng pagpapaayos ng PCB.

SN74LS688NG4

✅ Drop-In
📦 20-pin plastic DIP (PDIP-N)
Same SN74LS688 function and 20-pin DIP package; G4 identifies the manufacturer ordering grade, with no functional parameter difference identified

📋 Alternatibo na Reference (hindi sa katalogo)

SN74LS688N

✅ Drop-In
Texas Instruments
📦 20-pin plastic DIP (PDIP-N)
8-bit identity/magnitude comparator · SN74LS TTL · 8 bits per data word · Binary or BCD · P=Q · Active-low enable · Totem-pole · Present on P and Q inputs

Magkontak para sa presyo

Tingnan ang Datasheet →

SN74LS688N Mga Pinakamataas na Rating at Electrical Characteristics

Device Type 8-bit identity/magnitude comparator
Logic Family SN74LS TTL
Number of Input Bits 8 bits per data word
Input Code Formats Binary or BCD
Comparison Output P=Q
Enable Control Active-low enable
Type ng Output Totem-pole
Input Hysteresis Present on P and Q inputs
Package Type 20-pin plastic DIP (PDIP-N)
Package Pin Count 20 pins
Body Width 0.300 inch
Lead Pitch 0.100 inch
Uri ng Pagpapasok Through-hole PCB mount

Pin Configuration ng SN74LS688N

DIP-20 Package Pinout Diagram DIP-20 20-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 20 2 19 3 18 4 17 5 16 6 15 7 14 8 13 9 12 10 11 DIP-20
Pin 1 P0 — P-word input bit 0
Pin 2 P1 — P-word input bit 1
Pin 3 P2 — P-word input bit 2
Pin 4 P3 — P-word input bit 3
Pin 5 P4 — P-word input bit 4
Pin 6 P5 — P-word input bit 5
Pin 7 P6 — P-word input bit 6
Pin 8 P7 — P-word input bit 7
Pin 9 GND — Ground connection
Pin 10 Q0 — Q-word input bit 0
Pin 11 Q1 — Q-word input bit 1
Pin 12 Q2 — Q-word input bit 2
Pin 13 Q3 — Q-word input bit 3
Pin 14 Q4 — Q-word input bit 4
Pin 15 Q5 — Q-word input bit 5
Pin 16 Q6 — Q-word input bit 6
Pin 17 Q7 — Q-word input bit 7
Pin 18 P=Q — Identity comparison output
Pin 19 G — Active-low enable input
Pin 20 VCC — Positive supply connection

Tipikal na mga Gamit

SN74LS688N ay nararapat para sa 6 aplikasyons: Industrial Control Panel Data Validation, Legacy Processor Address and Data Checking, Digital Test Equipment and Pattern Verification, Keypad and Decimal Display Validation, Sorting and Routing Control, Legacy Equipment Repair and Retrofit.

🏭

Industrial Control Panel Data Validation

The SN74LS688N fits industrial control panels that must verify an 8-bit command, set point, or encoded switch position before acting on it. Two 8-bit binary or BCD words are presented at the P and Q inputs, and the P=Q output reports whether the selected position matches the stored command. Because the device includes low-active enable control, the controller can inhibit comparison while a multiplexer changes the data source. The 20-pin plastic DIP package is also convenient for repair sockets in legacy panels. The design should confirm supply compatibility, input thresholds, and output timing against the Texas Instruments datasheet before the board is released for maintenance use.

🖥️

Legacy Processor Address and Data Checking

The SN74LS688N can be used in legacy processor systems to compare two 8-bit address or data segments and generate a single equality flag. The dedicated P=Q output simplifies control-flow logic that would otherwise require multiple gate-level comparisons. The active-low enable allows the system to hold the result during bus multiplexing or address-line transitions, reducing the chance that a temporary bus value is interpreted as a valid match. Its through-hole 20-pin package supports repair and expansion boards built around older TTL processors. Engineers should verify propagation timing and fan-out requirements in the system, particularly when the P and Q buses originate from multiplexed or lightly loaded sources.

🔧

Digital Test Equipment and Pattern Verification

In digital test equipment, the SN74LS688N provides a compact equality check between an expected 8-bit pattern and a captured or generated value. The P and Q inputs accept binary or BCD words, while the P=Q output can trigger pass, fail, or bin-routing logic. The enable input should be asserted only after both patterns are stable, preventing the comparison output from changing during setup or hold intervals. The through-hole package is useful in laboratory fixtures and older ATE interface cards where socketed logic and straightforward troubleshooting remain common. System designers should check the datasheet timing limits and compare the result against the timing window required by the test vector.

📺

Keypad and Decimal Display Validation

The SN74LS688N can validate an 8-bit BCD key code or display command by comparing it with a reference value and producing one P=Q status bit. This is useful in decimal instruments, counter terminals, and legacy numeric controllers where binary encodings are converted to BCD before a display or peripheral is updated. Low-active enable control permits the comparison to be coordinated with the timing of the encoder or display multiplexer. The device avoids the external logic otherwise required to reduce eight BCD comparisons to one result. Because TTL thresholds and timing differ from modern CMOS logic, confirm input levels, output rise and fall behavior, and supply voltage against the manufacturer datasheet before connecting it to a mixed-technology board.

⚡

Sorting and Routing Control

The SN74LS688N can serve as an 8-bit equality stage in a sorting or routing controller by determining whether an incoming code matches one selected destination class. Its P=Q output can be combined with additional comparators or counters to implement multi-level classification without placing the full comparison function inside a microcontroller. The active-low enable is particularly useful when several candidate values share a bus and should be evaluated in sequence. Because the SN74LS688N provides equality rather than a complete greater-than and less-than result set, other functions are required for ordered magnitude decisions. Use the family datasheet to confirm pin assignments and timing before constructing the next logic stage.

🔧

Legacy Equipment Repair and Retrofit

The SN74LS688N is well suited to repairing TTL-era control, test, and data-acquisition equipment in which an 8-bit identity comparator has failed. Its standard 20-pin plastic DIP format allows a replacement to be installed on a socketed board or soldered into an existing through-hole footprint. The Texas Instruments and onsemi versions provide confirmed sourcing paths for the same core comparator function. Before substitution, compare each pin description, the enable polarity, supply requirements, output characteristics, and timing values in the two manufacturer datasheets. For deployed industrial equipment, also confirm operating-temperature requirements and the availability of any required documentation or traceable inventory.

Buod ng mga Inirekomendang Produkto

SN74LS688NG4 Same-manufacturer 74LS688 ordering alternative Ginagamit sa: Industrial Control Panel Data Validation, Legacy Processor Address and Data Checking, Digital Test Equipment and Pattern Verification, Keypad and Decimal Display Validation, Sorting and Routing Control, Legacy Equipment Repair and Retrofit SN74LS688N Texas Instruments Ginagamit sa: Industrial Control Panel Data Validation, Legacy Processor Address and Data Checking, Digital Test Equipment and Pattern Verification, Keypad and Decimal Display Validation, Sorting and Routing Control, Legacy Equipment Repair and Retrofit
What does the SN74LS688N compare?
The SN74LS688N compares two 8-bit binary or BCD input words and produces a P=Q result indicating whether the words are identical. According to the Texas Instruments SN74LS688 datasheet, the device also includes a low-active enable input and totem-pole output. It is intended for equality checks where greater-than and less-than outputs are not required, reducing the logic count compared with a full magnitude comparator.
Where can I download the SN74LS688N datasheet PDF?
The official SN74LS688N datasheet is available from Texas Instruments at https://www.ti.com/lit/gpn/SN74LS688. The document covers the SN74LS682, SN74LS684, SN74LS685, SN74LS687, and SN74LS688 magnitude and identity comparators. Use the pin-description table and timing diagrams in that document when assigning PCB tracks and verifying enable and P=Q output behavior.
What is the pinout of the SN74LS688N?
The SN74LS688N uses a 20-pin plastic dual in-line package with a 0.100-inch lead pitch and a 0.300-inch body width. Pin 1 is at the left end of the top row when the notch is oriented upward. The official Texas Instruments SN74LS688 datasheet contains the authoritative pin-description table; verify every signal assignment against that table before assigning power, enable, P inputs, Q inputs, and P=Q.
What are the key specifications of SN74LS688N that engineers should know?
The SN74LS688N is an 8-bit identity/magnitude comparator in a 20-pin PDIP-N package. Its documented feature set includes two 8-bit binary or BCD input words, a P=Q output, low-active enable control, totem-pole outputs, and hysteresis on the P and Q inputs. The Texas Instruments product page and SN74LS688 datasheet identify the device as an SN74LS-series logic IC intended for equality comparison functions.
How does the enable input work on the SN74LS688N?
The enable input on the SN74LS688N is active low, allowing the engineer to hold the P=Q output inactive when it is not safe to evaluate the input words. The manufacturer identifies the device as an identity or magnitude comparator with enable. Apply the enable signal only when both 8-bit buses are stable so the downstream circuit does not act on an intermediate comparison result.
Can the SN74LS688N compare BCD values?
Yes, the SN74LS688N can compare 8-bit binary or BCD words according to the Texas Instruments datasheet. The same eight-bit P and Q input structure supports either encoding, making the device useful in decimal displays, keypad scanners, industrial controllers, and legacy data-acquisition systems. Confirm the input logic levels and timing in the application circuit before using the comparator as a general binary subsystem.
Where can I buy SN74LS688N online?
Use the Request a Quote form on this page to request SN74LS688N pricing, stock confirmation, and a current lead time for the 20-pin plastic DIP package. Because this is a mature logic product, availability can vary by inventory channel and order quantity. The Request a Quote route provides one commercial response covering the exact MPN rather than relying on a static price that may no longer reflect current supply.
What is the price of SN74LS688N?
Current SN74LS688N pricing is handled through the Request a Quote form on this page. Submit the required quantity and packaging preference to obtain a current commercial quotation for the exact 20-pin PDIP-N orderable MPN. This approach also allows the supplier to confirm authorized-source inventory and the lead time associated with the requested quantity.
What is the lead time for SN74LS688N?
Request the current SN74LS688N lead time through the Request a Quote form on this page. Lead time depends on the requested quantity, current manufacturer or authorized-channel inventory, and whether a complete tube or reel is required. For production planning, also request the date code and traceability information so incoming inspection can be planned around the actual procurement schedule.
Is the SN74LS688N currently in stock?
Stock status for the SN74LS688N should be confirmed through the Request a Quote form on this page. The part is a cataloged Texas Instruments logic device and is offered by multiple channels, but available quantity can change with order size and packaging requirements. A quotation response should confirm the current allocation, expected ship date, and whether the supplied units are new production stock.
What is the best drop-in replacement for SN74LS688N?
The closest confirmed drop-in choices are the Texas Instruments SN74LS688NG4 and the onsemi SN74LS688N, both associated with a 20-pin through-hole DIP implementation of the same 8-bit identity-comparator function. Confirm pinout, enable polarity, P=Q behavior, supply requirements, and propagation timing in the manufacturer datasheet before substitution. Do not use a different comparator with P>Q or P<Q outputs as a functional replacement.
Can the onsemi SN74LS688N replace the Texas Instruments SN74LS688N?
The onsemi SN74LS688N is a cross-brand candidate for the Texas Instruments SN74LS688N because distributor records identify the same 8-bit magnitude and identity comparator function in a 20-pin PDIP. Final interchangeability depends on matching supply voltage, input thresholds, output timing, enable polarity, and every pin assignment. Review the onsemi and Texas Instruments datasheets together and test the assembled board before a production release.
When should I choose SN74LS688N over a 74LS682 or 74LS684?
Choose the SN74LS688N when the system needs an 8-bit equality result with enable control and does not require separate greater-than or less-than outputs. The related 74LS682 and 74LS684 devices provide additional magnitude relationships and therefore have different output behavior. The Texas Instruments family datasheet should be used to verify which comparator pinout and output set matches the existing board.
Is the SN74LS688N suitable for legacy industrial control equipment?
The SN74LS688N is suitable for repair and modernization of TTL-based industrial control equipment when the board uses the standard 20-pin PDIP footprint and compatible supply level. Its through-hole package is easy to inspect, replace, and socket when required. For newly designed safety-critical systems, verify operating temperature, qualification, timing, and obsolescence status rather than assuming a legacy TTL device is suitable without review.
What can replace SN74LS688N?
A valid replacement must be a pin-compatible 8-bit identity comparator in the same 20-pin DIP footprint with a P=Q output and compatible enable behavior. Confirmed candidates include the Texas Instruments SN74LS688NG4 and the onsemi SN74LS688N. Verify electrical and timing parameters in each manufacturer datasheet, since a comparator that adds P>Q or P<Q outputs is not a drop-in substitute for this device.
How should unused inputs be handled on the SN74LS688N?
Unused inputs should be connected to a defined TTL logic level so they cannot float and create an unpredictable internal state. Do not leave an unused P or Q input disconnected, and do not hold the active-low enable in its asserted state without considering the required output condition. Review the input-hysteresis and enable sections of the Texas Instruments SN74LS688 datasheet when completing the board design.

Impormasyon ng Talumpati sa Engineering for SN74LS688N — ikabit, gabay sa disenyo, at impormasyon ng pagsunod sa kautusan.

Paunawang Hanapin

Choose the Texas Instruments SN74LS688N for legacy TTL systems that require an 8-bit binary or BCD equality comparison with a dedicated P=Q output and active-low enable. Its 20-pin plastic DIP package is appropriate for socketed maintenance, prototype boards, and legacy industrial equipment. Consider the SN74LS688NG4 when you need an additional same-manufacturer ordering path for procurement continuity; the core function and package remain the same. Consider the onsemi SN74LS688N when dual sourcing matters, but verify pin assignments, supply requirements, enable polarity, and timing against both manufacturers' datasheets before releasing it into production. Do not choose a 74LS682, 74LS684, 74LS685, or 74LS687 solely by package similarity, because their available magnitude outputs differ from the SN74LS688N. For new mixed-signal or CMOS-heavy designs, a modern comparator family may offer easier integration, but it will generally require a different footprint and a planned logic-level migration.

Ikabit sa Mga Alternatibo

Parametro Ito ang Producto SN74LS688NG4 SN74LS688N
Brand Texas Instruments Texas Instruments onsemi
Package 20-pin plastic DIP (PDIP-N) 20-pin plastic DIP (PDIP-N) 20-pin plastic DIP (PDIP-N)
Function 8-bit identity/magnitude comparator 8-bit identity/magnitude comparator 8-bit magnitude/identity comparator
Input Word Width 8 bits per word 8 bits per word 8 bits per word
Supported Data Formats Binary or BCD Binary or BCD Binary or BCD
Comparison Output P=Q P=Q P=Q
Enable Control Active-low enable Active-low enable Active-low enable
Output Structure Totem-pole Totem-pole Totem-pole
Input Hysteresis Present on P and Q inputs Present on P and Q inputs Present on P and Q inputs
Mounting Style Through-hole PCB mount Through-hole PCB mount Through-hole PCB mount
Lead Pitch 0.100 inch 0.100 inch 0.100 inch

Pangunahing mga Pagkakaiba

  • Dedicated identity-comparator output with enable control (kumpara saSN74LS682)
  • Confirmed same-brand procurement alternative (kumpara saSN74LS688NG4)
  • Cross-brand sourcing for legacy repair (kumpara saSN74LS688N)

Talaan ng Disenyo

Do not treat every 8-bit comparator as an interchangeable replacement. The SN74LS688N is defined around the P=Q output and active-low enable; related 74LS682, 74LS684, 74LS685, and 74LS687 members have different output sets. Before substitution, compare the complete pin-description table, enable polarity, supply range, and timing values in each manufacturer datasheet. A PCB footprint match alone does not establish electrical or functional interchangeability.

The P and Q inputs feature hysteresis, which helps reject small disturbances, but it does not eliminate bus-transition errors. Assert the active-low enable only after both 8-bit buses have reached stable logic levels, and deassert it while a multiplexer or counter changes the compared value. Keep comparator inputs away from high-current switching nodes and provide a clean ground return so the equality output does not trigger during data updates.

Lay out the board for the standard 20-pin 0.100-inch-lead-pitch plastic DIP footprint and preserve pin 1 orientation using the notch or pin-one marker. Place the device near the sources of the compared buses to minimize trace length, especially where the P and Q inputs originate from multiplexers. Route the P=Q output away from noisy switching nodes and respect the input and output fan-out limits specified by the manufacturer.

Confirm the system supply voltage and TTL input thresholds before connecting the SN74LS688N to modern CMOS or mixed-technology logic. The comparator's enable input must be driven to a defined state rather than left floating, and every unused P or Q input should also be tied to a defined TTL level. Review the manufacturer's recommended operating conditions and absolute maximum ratings before applying power, particularly in industrial systems with temperature variation.

Impormasyon ng Pagsunod sa Kautusan

RoHS
Unknown
REACH
Unknown
AEC-Q100
Not Applicable
Walang Lead
Unknown
Walang Halogen
Unknown
Mga Conflict Mineral
Unknown

The verified product and distributor listings do not explicitly state RoHS, REACH, halogen-free, conflict-minerals, or automotive-qualification status. AEC-Q100 is not applicable to this standard commercial SN74LS logic device based on the available ordering information.

Data napatotohanan sa: 2026-11-19 — impormasyon na pinatunayan at pinapatakbo ng pangkat ng engineering ng XAIPART's component engineering team

Kaugnay na Hanapin

sn74ls688n datasheet SN74LS688N datasheet PDF SN74LS688N pinout SN74LS688N replacement SN74LS688N equivalent SN74LS688N drop-in substitute SN74LS688N vs onsemi SN74LS688N Texas Instruments SN74LS688N SN74LS688N 20 pin DIP SN74LS688N price and stock SN74LS688N identity comparator application SN74LS688N P=Q enable pin

Mga kaugnay na Mga Komponente at mga Tuntunin

Texas Instruments SN74LS688N SN74LS688 SN74LS688NG4 onsemi 8-bit magnitude comparator 8-bit identity comparator combinational logic TTL logic SN74LS series P=Q output active-low enable binary data BCD totem-pole output input hysteresis 20-pin PDIP-N PDIP package through-hole mount 0.100-inch lead pitch digital test equipment industrial control legacy computer RoHS REACH
Mabilis na Tanggap na RFQ
Ihanda ang buong detalye — ang aming pangkalakal na koponan ay tutugon sa loob ng 24 oras
Numero ng Parte Mga Tagagawa Pakete QTY Target na Halaga Pinalawak
✓
Quote na inilabas!

Ating tumugon sa iyong email sa loob ng 24 oras

1
RFQ Naisumite
2
Received na ang Kwaliksik
3
Nai-order
4
Pagbabayad
5
Inihanda
6
Naihanda
Tingnan ang Detalye ng RFQ