SN74HC03N: open-drain NAND gates and shared lines explained

Most logic gates actively drive their output both HIGH and LOW. The Texas Instruments SN74HC03N is different: its four 2-input NAND gates can only pull their output LOW. Releasing the output lets an external resistor pull it HIGH. That small difference allows several outputs to share one wire safely. This guide explains open-drain outputs from scratch, shows the pinout, walks through one complete transaction on a shared line, and shows how to choose the pull-up resistor.

What “open drain” means

A NAND gate outputs LOW only when all its inputs are HIGH; otherwise its output is HIGH. In an ordinary push-pull gate, such as a 74HC00, one transistor connects the output to VCC for HIGH and another connects it to GND for LOW.

An open-drain output keeps only the transistor to GND. Think of it as a switch to ground: closed means LOW, open means “not connected”. TI’s function table calls that open state Z (high impedance). On its own, a Z output floats at an undefined level, so every used output needs a pull-up resistor to a supply. The resistor supplies the HIGH level, while the gate supplies the LOW level.

The benefit is that open-drain outputs can be wired together. If any one of them switches to ground, the line goes LOW; it is HIGH only when all outputs are released. This is called wired-AND, and it is how interrupt lines, “ready” signals and the I²C bus work. Never connect push-pull outputs together like this: one driving HIGH and another driving LOW create a short through both chips.

Pins and the function table

The SN74HC03N is the 14-pin plastic DIP (PDIP, N package). All four gates share VCC (pin 14) and GND (pin 7):

  • Gate 1: inputs 1A pin 1 and 1B pin 2, output 1Y pin 3. Gate 2: 2A pin 4, 2B pin 5, 2Y pin 6.
  • Gate 3: output 3Y pin 8, inputs 3A pin 9 and 3B pin 10. Gate 4: output 4Y pin 11, inputs 4A pin 12 and 4B pin 13.
  • Function table: A = H and B = H → Y = L. If either input is L → Y = Z (released). With a pull-up, Z reads as HIGH, so the gate behaves as a NAND.
  • Supply: 2 V to 6 V. The example in this guide uses 5 V.
Top-view pinout of the SN74HC03N in a 14-pin DIP: pins 1 to 7 on the left are 1A, 1B, 1Y, 2A, 2B, 2Y and GND; pins 14 to 8 on the right are VCC, 4B, 4A, 4Y, 3B, 3A and 3Y.
SN74HC03N seen from above. The notch and dot mark the pin-1 end. Outputs are on pins 3, 6, 8 and 11.

Example: two gates share one line

The example connects the outputs of gates 1 and 2 (pins 3 and 6) to a single shared line with one 4.7 kΩ pull-up to +5 V. Each gate represents a “request”: when both of its inputs are HIGH, it pulls the line LOW. The line is therefore LOW if gate 1 or gate 2 is active, and HIGH only when neither is active.

To make the state visible, gate 4 works as an inverter: both its inputs (pins 12 and 13) come from the shared line. A green LED and a 1 kΩ resistor go from +5 V to 4Y (pin 11). The resistor and LED act as 4Y’s pull-up. When the line is HIGH, gate 4 pulls pin 11 LOW and the LED lights. When any request pulls the line LOW, gate 4 releases its output and the LED goes out. Gate 3 is unused, so its inputs go to GND.

Example schematic: outputs 1Y (pin 3) and 2Y (pin 6) of an SN74HC03N are joined into one shared line with a 4.7 kilohm pull-up to +5 V. The line feeds both inputs of gate 4 (pins 12 and 13). Gate 4 output 4Y (pin 11) sinks current through a green LED and 1 kilohm resistor from +5 V. Gate 3 inputs, pins 9 and 10, go to GND.
Teaching example: two open-drain outputs share one pull-up, and gate 4 lights the LED while no gate is pulling the line LOW.

One transaction, step by step

Start with 1A HIGH, 1B LOW and gate 2 inactive. Gate 1 is released, so the 4.7 kΩ resistor holds the line at about 5 V and the LED is lit.

Now 1B goes HIGH. Both inputs of gate 1 are HIGH, so its transistor switches on and pulls the line LOW. This edge is fast: TI specifies a high-to-low delay of at most 20 ns at 4.5 V and 25 °C, and 25 ns from −40 to 85 °C. Gate 4 sees LOW inputs, releases pin 11 and the LED goes out.

Then 1B returns LOW. Gate 1 releases the line, but nothing drives it HIGH. The pull-up must charge the wire and input capacitance, so the line rises along a curve with a time constant of R × C. With 4.7 kΩ and the 50 pF load TI uses for its measurements, that is about 235 ns. The line crosses the guaranteed HIGH threshold of 3.15 V (at 4.5 V) after about one time constant, and only then does the LED come back on. Rising edges are slow; falling edges are fast. This asymmetry is the price of the open-drain output.

Timing diagram with traces for 1A, 1B and the shared line. 1A stays HIGH. When 1B goes HIGH, the shared line falls quickly, within 25 nanoseconds. When 1B goes LOW, the output releases and the line rises slowly along an RC curve of about 235 nanoseconds (4.7 kilohm times 50 picofarad), crossing the 3.15 volt input threshold.
One transaction: the gate pulls the line LOW quickly, but after release the pull-up resistor raises it slowly.

Choosing the pull-up resistor

Lower limit, from current: when an output is LOW, the full pull-up current flows into the chip. TI guarantees VOL ≤ 0.33 V at 4 mA and 4.5 V (−40 to 85 °C). With a 5 V pull-up, R must be at least (5 − 0.33) V ÷ 4 mA ≈ 1.2 kΩ. A smaller resistor gives faster edges but a higher, unguaranteed LOW level.

Upper limit, from speed and leakage: a larger resistor saves current but makes the rise slower, and released outputs plus inputs leak a few microamps. A few kilohms to about 10 kΩ is a practical range for a short breadboard line. Here, 4.7 kΩ draws about 1 mA while the line is LOW and rises in a few hundred nanoseconds.

The LED: with a green LED at about 2 V, (5 − 2 − 0.3) V ÷ 1 kΩ ≈ 2.7 mA, safely below the 4 mA test point. Do not use the 220–330 Ω values common for push-pull outputs; they would exceed it.

Building it step by step

  1. Place the SN74HC03N across the breadboard channel with the notch to the left. Connect pin 14 to +5 V and pin 7 to GND, and fit a 100 nF ceramic capacitor directly between pins 14 and 7.
  2. Connect gate 3 inputs, pins 9 and 10, to GND. Leave its output, pin 8, open.
  3. Join pins 3 and 6 with a wire. This is the shared line. Connect a 4.7 kΩ resistor from it to +5 V.
  4. Connect pins 12 and 13 to the shared line. Connect the LED cathode to pin 11, and the LED anode through 1 kΩ to +5 V.
  5. Pull each request input (pins 1, 2, 4 and 5) to GND with a 10 kΩ resistor. A jumper wire from any input to +5 V then makes it HIGH. With all inputs LOW, the LED should light.
  6. Lift 1A and 1B to +5 V: the LED goes out. Return one to GND: it lights again. Repeat with 2A and 2B. Lift both pairs: it stays dark until both gates release the line.

Limits and pitfalls

  • The pull-up must go to a voltage between 0 V and the chip’s own VCC. An HC03 output has a protection diode to VCC, so it is not a translator to a higher voltage. Powered at 5 V, it can pull up to 3.3 V for a 3.3 V input (down-translation). For 3.3 V to 5 V, use a part designed for it; see the guides below.
  • Inputs are standard 74HC CMOS inputs. At 4.5 V, HIGH is guaranteed from 3.15 V and LOW up to 1.35 V, so a 3.3 V logic output is not a reliable HIGH at 5 V supply. Input edges must also be fast (at most 500 ns per volt at 4.5 V); clean up slow signals with a Schmitt trigger first.
  • Never leave unused inputs floating; tie them to GND or VCC. A floating CMOS input wastes current and may oscillate.
  • Low-to-high transitions are set by the pull-up and the line capacitance, not by the datasheet tpd. Long wires and many inputs on one line slow the edge further.
  • The outputs are not ideal switches: guaranteed VOL is 0.33 V at 4 mA, and continuous output current must stay within the absolute maximum of ±25 mA. Do not drive relays, motors or high-current LEDs directly.
  • An SN74HC03N cannot simply replace a 74HC00. Without pull-ups, released outputs float.

Related guides

Push-pull versus 3-state outputs are explained in the SN74LS126A 3-state bus buffer guide. For an open-drain buffer that tolerates 5 V pull-ups at a 3.3 V supply, see the SN74LVC07A open-drain buffer guide, and for 3.3 V to 5 V logic, the SN74AHCT08 level-translation guide. Basic gate logic is covered in the MC74HC08 AND gate guide and the SN7404N hex inverter guide. To clean up slow or noisy inputs, use the MC14093B Schmitt trigger guide.

Sources

Pinout, package, function table, absolute maximum ratings, operating conditions, DC values, switching times and application notes: Texas Instruments, SNx4HC03 Quadruple 2-Input NAND Gates with Open-Drain Outputs, SCLS077F (March 1984, revised April 2021), including its package option addendum (SN74HC03N = PDIP N, 14 pins). The example is a teaching circuit, not a tested product design.

See the SN74HC03N product · Texas Instruments SN74HC03 datasheet (PDF)