You're currently on: Catalog » Guides » SN74HC03N: open-drain NAND-porte og fælles linjer forklaret » Guides » 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.
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.
The SN74HC03N is the 14-pin plastic DIP (PDIP, N package). All four gates share VCC (pin 14) and GND (pin 7):
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.
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.
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.
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.
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)
We use cookies to provide you with the best possible experience. They also allow us to analyze user behavior in order to constantly improve the website for you.