Skip to content
A project ofgwark.dev

TI / Nexperia / many · Integrated circuit

74HC04 Hex Inverter

Six plain inverters. The cheapest logic chip there is, and the wrong one if your input edge is slow.

Cheat sheet (SVG)
Logic level
2-6 V (HC)
Package
PDIP-14 / SOIC-14

1.Pinout diagram

Highlight a signalhover to preview, click to keep

Pins 1-7

74HC04

Pins 8-14

Pin detail

Hover a pin for its mappings and gotchas. Click to keep it here.

Logic level
2-6 V (HC)
Package
PDIP-14 / SOIC-14

Fig. 1. 74HC04 Hex Inverter, PDIP-14. Hover or tap a signal to light up every pin that carries it.

2.Watch out

3.Crystal oscillator

What has to go around the chip before it will run.

VCCGND74HC0422 pF between 1A (1) and GND22 pF22 pF between 1Y (2) and GND22 pF100 nF between VCC (14) and GND100 nFGND (7) to GNDVCC (14) to VCC1 MOhm between 1A (1) and 1Y (2)1 MOhmCrystal between 1A (1) and 1Y (2)Crystal1A 11A 11Y 21Y 2GND 7VCC 14VCC 14
Fig. 2. Crystal oscillator, drawn from Table 1. Crossing wires are not connected.
Table 1. External parts, and why each one is there.
PartBetween
1 MOhm1A (1) to 1Y (2)
Crystal1A (1) to 1Y (2)
22 pF1A (1) to GND
22 pF1Y (2) to GND
100 nFVCC (14) to GND

Buffer the output with a second inverter before you use it anywhere, so loading the oscillator does not pull it off frequency. An HCU04, the unbuffered version, oscillates more reliably here than the HC04.

4.Full pin reference

Every pin, alias and mapping. This is the table that prints.

Table 2. Pin assignments.

Complete pin reference for 74HC04 Hex Inverter
PinNameFunctions

Looking for a substitute?

Primary sources

Found a wrong pin? The whole board is one file, data/boards/sn74hc04.json.

Edit this file on GitHubReport it instead