Open collector and open drain outputs have no high level of their own and need an external pull up, which also enables wired AND and level shift. This page covers use and the pull up math.
A push pull output drives both ways, but an OC or OD output stage only pulls down; the high level comes from an external pull up resistor, so without it the output can never go high. That is exactly why several OC outputs can be tied together as wired AND: any one pulling low makes the bus low, and only when all release does the pull up make it high, sharing an interrupt or bus. It also shifts levels by pulling to the target voltage.
Pull up R has two bounds: minimum set by sink current, Rmin equals (VCC minus VOL) over IOL so low level sink stays within drive; maximum set by rise time, roughly Rmax equals t over (0.69 times C load times N). Experience: I2C pull up 4.7 k at 5 V, 2.2 k at 3.3 V. Too small sinks too much and heats, too large is slow and noise prone on fast buses. Account for total load capacitance.
| Item | Point | Value |
|---|---|---|
| Need pull up | else no high | external R |
| Wired AND | tie OC | shared bus |
| Level shift | pull target | cross domain |
| Rmin | limit sink | by IOL |
| Rmax | limit slow | by C t |
| Wrong | no pull up | stuck low |
OC OD must have an external pull up to reach high, can be wired AND for a shared bus and shift across voltage domains. Pick R between Rmin (sink limit) and Rmax (speed limit), about 4.7 k at 5 V for I2C. Never skip the pull up, do not exceed the next stage voltage, and a failed low device sticks the bus.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Open drain interface per GB/T 4728; I2C to IEC 60204-1 and GB/T 5226.1. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.