67. Design I2C Open-Drain SDA and SCL Hardware

Loading simulator…

1. SDA Pull-Up Network

A 4.7 kΩ resistor connects +5 V to the shared SDA_Bus.

When every SDA NMOS is OFF, no pull-down path exists, so the resistor raises the bus to a digital HIGH level.

No participant actively drives the line HIGH.

2. SDA Parallel NMOS Pull-Down Paths

The controller and two targets each use one NMOS device.

Every drain connects to SDA_Bus, every source connects to GND, and each gate connects to its active-HIGH *_SDA_PullLow input.

A HIGH control turns its NMOS ON and pulls the shared bus LOW; a LOW control turns it OFF and releases the line.

The resulting digital behavior is:

SDA_Bus = (Controller_SDA_PullLow + Target0_SDA_PullLow + Target1_SDA_PullLow)'

This equation describes the observed behavior only; the MOSFET/resistor network implements it without logic gates.

3. SCL Pull-Up and Pull-Down Network

SCL uses a separate copy of the same hardware. A pull-up resistor connects +5 V to SCL_Bus, while the controller and two targets provide three parallel NMOS paths from SCL_Bus to GND.

Its equivalent behavior is:

SCL_Bus = (Controller_SCL_PullLow + Target0_SCL_PullLow + Target1_SCL_PullLow)'

Any active pull-down keeps SCL LOW, including when several participants pull LOW at the same time.

4. Shared-Line Resolution

The circuit demonstrates open-drain ownership directly: NMOS OFF means release, and NMOS ON means pull LOW.

After every pull-down control returns LOW, all devices switch OFF and the pull-up resistor restores the bus HIGH.

5. Component Restriction

The learner-facing component set is limited to the physical parts needed for these two networks.

Logic gates are excluded so the open-drain behavior must be produced by the NMOS pull-down paths and pull-up resistors rather than by a Boolean shortcut.