Overview

The 74HC688 (commonly SN74HC688N in a 20-pin DIP package) is a high-speed CMOS 8-bit magnitude identity comparator IC. It compares two 8-bit binary words (P0P7P_0 \dots P_7 and Q0Q7Q_0 \dots Q_7) and asserts an active-LOW output (P=Q\overline{P=Q}) when all corresponding bit pairs are identical (P=QP = Q).

Featuring an active-LOW enable input (G\overline{G}), the 74HC688 is widely used in microcomputer memory address decoding, bus matching, dip-switch address verification, and digital hardware pattern matching.

Quick reference

Logic FamilyHigh-Speed CMOS (HC)
Package20-Pin DIP (Through-Hole) / SOIC-20 / TSSOP-20
Supply Voltage Range (VCCV_{CC})2.0 V2.0\text{ V} to 6.0 V6.0\text{ V} DC
Word Width8 Bits (P0P7P_0 \dots P_7 compared to Q0Q7Q_0 \dots Q_7)
Propagation Delay (tpdt_{pd})17 ns17\text{ ns} typical at VCC=4.5VV_{CC} = 4.5\text{V}
Enable ControlActive-LOW Enable (G\overline{G})
Output StateActive-LOW Equality Output (P=Q\overline{P=Q})

Pinout (20-Pin DIP Package)

text
        ┌──────────────┐
     ~G~ ─│ 1         20 │─ VCC
      P0 ─│ 2         19 │─ ~P=Q~
      Q0 ─│ 3         18 │─ Q7
      P1 ─│ 4         17 │─ P7
      Q1 ─│ 5         16 │─ Q6
      P2 ─│ 6         15 │─ P6
      Q2 ─│ 7         14 │─ Q5
      P3 ─│ 8         13 │─ P5
      Q3 ─│ 9         12 │─ Q4
     GND ─│ 10        11 │─ P4
        └──────────────┘
PinNameDescription
1~G~Active-LOW Enable input (LOW = Enable comparison, HIGH = Force output HIGH)
2, 4, 6, 8, 11, 13, 15, 17P0P7Word P 8-bit input pins
3, 5, 7, 9, 12, 14, 16, 18Q0Q7Word Q 8-bit input pins
10GNDGround reference (0 V)
19~P=Q~Active-LOW equality output pin (LOW when P=QP = Q and G=0\overline{G} = 0)
20VCCPower supply input (+2.0V to +6.0V DC)

Function Table

Inputs (Pn,QnP_n, Q_n)Enable Input (G\overline{G})Equality Output (P=Q\overline{P=Q})
P=QP = QLow (0)Low (0)
PQP \neq QLow (0)High (1)
X (Don't care)High (1)High (1)

Specifications

ParameterSymbolMinTypMaxUnitConditions
Supply Voltage RangeVCCV_{CC}2.05.06.0VOperational range
High-Level Input VoltageVIHV_{IH}3.15VVCC=4.5VV_{CC} = 4.5\text{V}
Low-Level Input VoltageVILV_{IL}1.35VVCC=4.5VV_{CC} = 4.5\text{V}
High-Level Output VoltsVOHV_{OH}4.44.5VVCC=4.5V,IOH=20μAV_{CC} = 4.5\text{V}, I_{OH} = -20\mu\text{A}
Low-Level Output VoltsVOLV_{OL}0.10.4VVCC=4.5V,IOL=4mAV_{CC} = 4.5\text{V}, I_{OL} = 4\text{mA}
Propagation Delay (PnP=QP_n \to \overline{P=Q})tpdt_{pd}1730nsVCC=4.5V,CL=50pFV_{CC} = 4.5\text{V}, C_L = 50\text{pF}

Common mistakes

  • Floating unused bit inputs: Unused bit pairs (e.g. if comparing only 4 bits) must NOT be left floating. Tie matching unused PnP_n and QnQ_n input pairs to GND or VCCV_{CC} so they evaluate as equal (Pn=QnP_n = Q_n).
  • Expecting active-HIGH output: The equality output pin is active-LOW (P=Q\overline{P=Q}). It pulls LOW when words match. Add an inverter if an active-HIGH match signal is needed.

Notes

  • Address Decoding: Easily cascades by tying the P=Q\overline{P=Q} output of one chip into the G\overline{G} enable input of another to compare 16-bit or 32-bit bus addresses.

Assets & downloads