Summary
I2C promises two wires and many devices, but only when pull-ups, bus capacitance, addresses, and power sequencing are designed correctly. This article covers open-drain basics, rise-time math, speed grades, level translation, and pull-up selection rules.
I2C promises two wires and many devices. The promise holds when pull-ups, capacitance, addresses, and power sequencing are designed. Otherwise you get a bus that ACKs on the bench and locks in the product cable.
Get pull-ups, bus capacitance, addresses, and power sequencing right first. If the bus is already sticky, false-ACKing, or locking only at temperature, jump to the failure-focused notes in I2C advanced troubleshooting. Board-level bus choice and cable boundaries are covered in the communication interfaces guide.
Open-Drain Basics and Why Rise Time Rules Your Life
SDA and SCL idle high through pull-ups. Devices pull low. Rise time depends on pull-up resistance and bus capacitance. Exceed the rise-time budget and chips disagree about bit values. Strong pull-ups fix rise time until drivers can no longer meet VOL.
Choose pull-ups from rail voltage, driver strength, and estimated C. Parallel devices, connectors, and ESD parts all add C. Long flex is not free.
Addresses, Roles, and Speed Grades
7-bit addresses remain common; 10-bit exists but is rarer in small sensors. Two devices with the same address need a mux, translate bridge, or different part. ACK/NACK is the conversation heartbeat.
Standard-mode and fast-mode budgets differ. Jumping to fast modes without checking C and pull-ups is a self-inflicted edge problem.
| Knob | If too weak/low | If too strong/high |
| Pull-up R | Slow rise, false bits | Hard to pull low, extra power |
| Bus C | Usually good | Rise time fails, margins die |
| Stub length | OK short | Reflections and weird edges |
I2C is an analog RC network wearing a digital protocol shirt.
PCB and Connector Practices
Keep SDA/SCL short and paired as a modest group over a continuous reference. Avoid routing them as antennas around motor stages. Place pull-ups at a sensible single location and document them so two boards do not double up blindly.
Hot-plug I2C needs thought: unpowered chips can clamp lines through ESD diodes. Power switches and series protection may be required on user-accessible connectors.
Levels, Translators, and Multi-Rail Boards
Mixed 1.8 V and 3.3 V devices need proper translators. Resistor tricks fail under temperature and strong pull-ups. Keep translator enable timing aligned with rail sequencing so the bus is not driven into an unpowered chip.
If a sensor island stays alive while the host sleeps, define whether pull-ups remain powered and how leakage is budgeted.
Bring-Up Checks
Verify idle high levels, rise times at the farthest device, and a clean START/STOP on a scope. Confirm every address with a scan and match the silkscreen plan. Clock stretching capable masters matter if slaves stretch.
Save a known-good capture with the production cable attached. Bench jumpers lie about capacitance.
Pull-Up Math You Can Defend
Estimate bus C from devices, trace, connector, and ESD parts. Pick pull-ups that meet rise time at that C while still allowing VOL with the weakest driver. Then measure. If you cannot measure, you are guessing with customer units.
Separate high-C off-board segments with buffers instead of endlessly strengthening pull-ups until every chip violates low-level specs.
Publish the pull-up value and location on the schematic so a daughtercard team does not add a second set “for safety.”
Address Maps and Manufacturing Mistakes
Duplicate addresses sneak in when two vendors use the same default and both straps read the same. Put strap tables on silkscreen and in the test station. Scan addresses in FCT and fail clearly when an unexpected device appears.
Hot-label the connector that exposes I2C so service cannot invent a third spur with unknown C mid-life.
Clock Stretching and Master Timeouts
Some slaves stretch SCL while they compute or fill a buffer. If your master treats every long low as a fault, you will NACK healthy devices. Confirm whether the controller supports stretch and how long the timeout is under your firmware stack.
Stretch-heavy sensors on a shared bus can stall higher-priority traffic. Segment the bus or schedule transactions so a slow environmental sensor cannot freeze a control loop that shares the same master.
When debugging, capture SCL low duration at the slave pin. A software timeout that is shorter than the slave’s worst-case stretch will look like random link loss.
Factory Tests That Catch Soft Buses Early
Address scans alone are weak. Measure rise time at the farthest node with the production cable attached. Log ACK failures by address and temperature if the product sees outdoor or sealed-box heat.
FCT should fail clearly when an unexpected address appears or a required device is missing. Silent partial populations create field units that boot with reduced function and no traveler note.
The Sensor Rail That Locked After the Front Panel Cable Grew
I2C lockups showed up only with the front-panel flex fitted. Bench jumpers stayed polite. Address scans looked clean until the product was whole.
Rise time at the farthest node with the production flex attached was slower than the bare-board setup the pull-ups were sized for. Capacitance from the longer flex ate the margin.
Pull-ups moved within driver VOL limits, a noncritical device went behind a buffer, and firmware gained a documented bus-clear path only after the RC network was honest again on our bench.
Assembly fails on that image stopped. In our notes, cable growth is a hardware change even when software did not. NXP’s I2C specification is the language for timing discussion; the product still has to measure C and pull-ups, which is what we insist on before raising bus speed.
Design the RC Network, Not Only the Driver Init
I2C is an RC network wearing a protocol shirt: pull-ups, bus capacitance, levels, and connector power decide rise time before any driver init table matters. Address maps belong where technicians can see them, and hot-plug or long flex is a capacitance change even when software did not move. Stuck-bus recovery is cheaper to plan before the first field freeze teaches it. Measure rise time at the farthest node with the production cable attached before raising speed; bare-board jumpers lie. NXP’s I2C specification is the shared language for timing discussion. The product still has to measure C and pull-ups on the assembly you ship.
Need Help With a Fragile I2C Sensor Bus?
Send device list, pull-up values, cable or flex details, and a scope shot of SCL/SDA. We check rise time and topology. Start with a PCB design review.
Frequently Asked Questions
Where should I2C pull-ups be placed?
Usually once on the shared bus near the host or a documented central point; avoid accidental duplicates.
Can I run I2C through a long harness?
Sometimes at low speed with careful C and noise design; differential or buffered links may be safer.
Why does an address scan miss a device?
Wrong address, held in reset, shared address conflict, level mismatch, or the device is on a switched rail.
Do I need series resistors on SDA/SCL?
They can help with edge control and protection; they also interact with rise time.
What speed should I start bring-up at?
Start slower than the marketing max until the RC network proves healthy.
Related Reading
- I2C Advanced Tips and Troubleshooting
- PCB Communication Interfaces Guide
- Why Different Communication Interfaces Are Necessary
- Why Use Series Resistors in Signal Lines
- SPI Communication Protocol
- How to Check Clock Signal on PCB
- QSPI Communication Protocol
- RS485 Communication Protocol
References
- NXP Semiconductors – I2C-bus specification and user manual (UM10204): https://www.nxp.com/docs/en/user-guide/UM10204.pdf
- Texas Instruments – RS-485 design and application resources: https://www.ti.com/interface/rs-485/overview.html
- Texas Instruments – LVDS application and design resources: https://www.ti.com/interface/high-speed-serdes/lvds-m-lvds-pecl/overview.html
- JEDEC – serial flash / memory standards hub: https://www.jedec.org/
- IPC – acceptance and design standards overview: https://www.ipc.org/
- IEC – International Electrotechnical Commission: https://www.iec.ch/
- USB-IF – specifications (for high-speed interface practice context): https://www.usb.org/documents
- IEEE Standards Association: https://standards.ieee.org/
