Remove the PMOS from a push-pull output and what remains is an open-drain output: a transistor that can connect the wire to ground, or let go. A resistor to a supply pulls the wire high whenever nobody is pulling it low. Any number of such outputs can share one wire, and two of them can never short the rails, because only one level is ever actively driven. The price is the rising edge: it is an RC charge through the resistor, slow and asymmetric, and the whole art of open-drain design is choosing that resistor. This page covers wired-AND logic, the rise- and fall-edge math, pull-up sizing, ways to beat the RC, free level translation, and three users of the idea: I²C, 1-Wire and LIN.
Picture the wire as a rope held up by a spring (the pull-up resistor). Every device on the bus has a hand that can pull the rope down, and no device can push it up. If anyone pulls, the rope is down. Only when everyone lets go does the spring raise it again, and it rises at the pace the spring allows. Nobody can be harmed by two hands pulling at once.
Electrically the "hand" is an NMOS transistor (open drain) or an NPN transistor (open collector) with its source or emitter at ground and nothing above it on the chip. "Open" means the upper terminal is brought out to the pin and left for the board to complete.
With "released" read as 1 and "pulling" read as 0, the bus level is the AND of every device's output: the line is 1 only if all devices output 1. Read in active-low terms (pulling = asserting), the same line is the OR of all assertions. That is why a single open-drain wire can serve as a shared interrupt request (any device can assert, the controller polls to find which), a shared reset (any supervisor can hold the system in reset), or a power-good line (good only if every rail is good).
| Device A | Device B | Bus | Current from VDD |
|---|---|---|---|
| released | released | 1 (VDD) | 0 (only leakage) |
| pulling | released | 0 | (VDD − VOL)/Rp |
| released | pulling | 0 | (VDD − VOL)/Rp |
| pulling | pulling | 0 | (VDD − VOL)/Rp, shared |
The current is always set by the resistor, never by two transistors in series across the supply, so the worst case is a few milliamps. This is what makes non-destructive arbitration possible: in I²C, a controller that transmits a 1 but reads back a 0 knows another controller is transmitting a 0 at the same time, and backs off. Nothing was damaged and the winner's bit arrived intact. CAN uses the same principle on a differential pair.
When the last device releases, the bus capacitance Cb (trace, plus every pin on the bus) charges through Rp from its low level toward VDD:
The time between two fractions k1 and k2 of VDD (ignoring VOL) is RpCb ln[(1 − k1)/(1 − k2)], giving the two constants every I²C designer uses:
The I²C specification (UM10204) measures rise time between 0.3 VDD and 0.7 VDD, hence 0.8473.
Worked example. Fast-mode I²C at 3.3 V, \(C_{\text{b}}=200\ \text{pF}\), \(R_{\text{p}}=1.5\ \text{k}\Omega\): \(\tau =300\ \text{ns}\), \(t_{\text{r}}=254\ \text{ns}\), inside the 300 ns limit. The same bus with a 4.7 kΩ pull-up (a common copy-paste value) has \(t_{\text{r}}=797\ \text{ns}\): fine for 100 kHz standard mode (1000 ns limit), illegal at 400 kHz.
When a device pulls low, its NMOS starts in saturation and sinks a large, roughly constant current while the pull-up keeps feeding in a small one. The capacitor discharges at
A 20 mA sink into 200 pF at 3.3 V falls through the 30–70 % band in about 13 ns, twenty times faster than the 254 ns rise above. Fast falls ring on long buses and radiate, so I²C devices limit their fall slew (UM10204 sets a minimum tf of 20 ns × VDD/5.5 V in Fast-mode).
Lower limit: the output must still reach a valid low. The weakest device on the bus guarantees VOL only up to its rated sink current IOL, so the resistor must not supply more:
Upper limit: the edge must rise in time.
A third, usually weaker, upper limit comes from leakage: the bus must stay above VIH with every input and every released output leaking, as for tri-state pull-ups. If \(R_{\text{p},\min}\gt R_{\text{p},\max}\) there is no solution: reduce Cb (shorter bus, fewer devices, split it with a buffer or multiplexer), use devices with more sink current (Fm+ parts sink 20 mA), or use an active pull-up.
Power. Each line dissipates (VDD − VOL)·VDD/Rp while held low: 11 mW at 1 kΩ and 3.3 V. With a 50 % duty clock and data, a 400 kHz bus with 1 kΩ pull-ups averages roughly 10 mW. In battery products use the largest resistor that meets the rise time, and do not leave a line held low in sleep.
| I²C mode | fSCL | tr max (30–70 %) | IOL at \(V_{\text{OL}}=0.4\ \text{V}\) | Cb max | Rp window at 3.3 V, 200 pF |
|---|---|---|---|---|---|
| Standard | 100 kHz | 1000 ns | 3 mA | 400 pF | 967 Ω – 5.9 kΩ |
| Fast | 400 kHz | 300 ns | 3 mA | 400 pF | 967 Ω – 1.77 kΩ |
| Fast-mode Plus | 1 MHz | 120 ns | 20 mA | 550 pF | 145 Ω – 708 Ω |
The resistor's weakness is that its current falls as the bus rises: at 70 % of the way up it delivers only 30 % of its initial current. A constant current source with the same maximum current charges the bus in a straight line:
For 200 pF at 3.3 V with 3 mA (the same current a 967 Ω resistor gives at VOL): 88 ns, against 164 ns for the resistor. Same static current when the line is low, almost twice as fast. I²C Hs-mode controllers use a switched current-source pull-up on SCL for exactly this reason.
Rise-time accelerators (for example LTC4311-type parts) sit on the bus as a two-terminal device. They watch for a rising edge (bus above about 0.6 V and rising) and then switch on a strong pull-up current until the bus reaches near VDD. The static pull-up can then be large (low power, valid VOL), while the edge is fast. They allow I²C buses of several nanofarads.
Buffers and multiplexers split one heavily loaded bus into segments each with its own pull-up and capacitance budget. A bus buffer must preserve the wired-AND across the split, which is why I²C buffers use special offset low levels (the buffer's own low output is about 0.5 V so it can tell its own pull-down from a device's).
An open-drain output does not care what its pull-up connects to, within the transistor's voltage rating. A 1.8 V device can signal a 3.3 V receiver by pulling down a line that is pulled up to 3.3 V, provided its pin is tolerant of 3.3 V (no ESD diode to its 1.8 V rail). Open-collector parts such as comparators (LM339) and Darlington arrays (ULN2003) take this to 30–50 V.
For a pin that is not tolerant, and for bidirectional lines like I²C, the standard circuit is one N-channel MOSFET per line (BSS138 class) with its gate at the lower supply, source on the low side, drain on the high side, and pull-ups on both sides.
Each side keeps its own RC rise, so size each pull-up for its own side's capacitance.
Maxim's 1-Wire bus is a single open-drain line plus ground, with a pull-up (typically 4.7 kΩ) to 3–5 V. All timing is set by the controller's falling edges: it pulls low to start each time slot, and devices either respond by holding the line low or leave it to rise.
That 15 µs window is where the RC matters. After a 1 the line must rise above VIH before the sample point: \(t=R_{\text{p}}C\,\ln [V_{\text{DD}}/(V_{\text{DD}}-V_{\text{IH}})]\). With 4.7 kΩ and \(V_{\text{IH}}\approx 2.2\ \text{V}\) at 5 V, \(\ln (5/2.8)=0.58\), so C must be below about (15 µs − release time)/\((0.58\times 4.7\ \text{k}\Omega )\approx 4.5\ \text{nF}\). Cable at 50 pF/m limits a passive bus to tens of metres; longer networks use an active pull-up.
Parasitic power. Devices can run without a supply pin by charging an internal capacitor through a diode from the data line while it is high. During high-current operations (a DS18B20 temperature conversion draws up to about 1.5 mA) a 4.7 kΩ pull-up would have to drop 7 V, which is impossible, so the controller switches in a strong pull-up (a PMOS to the rail) for the duration. The topology becomes briefly push-pull, and the controller must not start that while anyone could be pulling low.
The Local Interconnect Network (ISO 17987) is a single-wire automotive bus up to 20 kbit/s, referenced to the battery rather than a logic supply. Physically it is an open-drain bus; the "master–slave" description refers to the protocol, where the master schedules every frame by sending its header, not to the electrical drive.
Bus time constant. The specification bounds the RC of the whole network to \(\tau =1\)–5 µs. With a master (1 kΩ) and n slaves (30 kΩ each) in parallel:
Ten slaves \((R_{\text{eq}}=750\ \Omega )\) with the master's 220 pF, 10 × 220 pF at the slaves and 40 m of wire at 150 pF/m (6 nF): \(\tau =750\ \Omega \times 8.4\ \text{nF}=6.3\ \text{µs}\), too slow. Fewer metres of wire, smaller slave capacitors or a stronger master pull-up bring it back into range.
Why the duty-cycle limits exist. At 20 kbit/s a bit lasts 50 µs. A dominant-to-recessive edge rises with τ while the recessive-to-dominant edge falls with the controlled slope, and the thresholds move with ground shift between nodes. The specification therefore guarantees the received duty cycle only within limits (at 20 kbit/\(s\,D_{1}\ge 0.396\) and \(D_{2}\le 0.581\)), and the sample point is placed near the middle of the bit.
| Use | Why open-drain | Typical pull-up |
|---|---|---|
| I²C, SMBus, PMBus | Multi-controller arbitration, clock stretching, ACK from the receiver on the same wire | 1–10 kΩ (by mode and capacitance) |
| Shared interrupt (IRQ̅), alert (SMBALERT̅) | Wired-OR of active-low requests | 4.7–100 kΩ |
| System reset from supervisors | Any supervisor can hold reset; no fight with the processor's own reset output | 10–100 kΩ |
| Power-good chains | Wired-AND of every rail's status | 10–100 kΩ |
| Level translation, relay and LED drive | Pull-up rail independent of the driver's supply | by load |
| 1-Wire | Single line for data, timing and parasitic power | 4.7 kΩ + strong pull-up |
| LIN | Single wire at battery voltage, robust to node loss and shorts | 1 kΩ master, 30 kΩ slaves |
\(R_{\min}=2.9/3\ \text{mA}=967\ \Omega\); \(R_{\max}=300\ \text{ns}/(0.8473\times 320\ \text{pF})=1.11\ \text{k}\Omega\). A 1 kΩ resistor fits, with \(t_{\text{r}}=271\ \text{ns}\). Little margin: split the bus or add an accelerator.
Only the low level is actively driven. With any combination of outputs the only path from the supply to ground passes through the pull-up resistor, which limits the current to about VDD/Rp.
Current source: \(200\ \text{pF}\times 1.32\ \text{V}/3\ \text{mA}=88\ \text{ns}\). Resistor: \(0.8473\times 967\times 200\ \text{pF}=164\ \text{ns}\). About 1.9× faster for the same static current.
If the master loses its battery feed, the bus (held up by other nodes) would otherwise back-power the master through its pull-up. The diode blocks reverse current.
No strong pull-up during conversion. The 4.7 kΩ resistor cannot supply ≈ 1.5 mA, the device's storage capacitor droops, and it resets.