EE Primers · Communication interfaces · Board-Level Buses

I²C: how the two-wire bus works, from open-drain physics to decoded bits

I²C moves bytes between one or more controllers and many targets over two open-drain wires, SCL (clock) and SDA (data). Everything about the bus follows from that physical choice: the pull-up resistors, the slow rising edges, the wired-AND that makes ACK, clock stretching and arbitration possible, and the timing rules that keep a data change from being mistaken for a START or STOP. This page builds the bus up from the transistor, then walks real transactions bit by bit.

Terminology follows the current NXP specification and TI's guide: controller (formerly master) and target (formerly slave). Primary references: NXP UM10204 Rev. 7 [1] and TI SBAA565, A Basic Guide to I2C [2], whose DAC80501 and ADS1115 transactions are the worked examples below.

01 · At a glance

What I²C is and where it fits

Philips introduced I²C in 1982 for talking between chips on one board; it has been licence-free since 2006 [2]. It trades speed for wiring: two lines serve any number of devices, each with a 7-bit (or 10-bit) address, and the same bus carries writes, reads, acknowledgements and flow control. Typical users are sensors, EEPROMs, PMICs, DAC/ADC configuration, camera and display control, fan controllers and board-management telemetry.

  • Half-duplex, synchronous, serial. One data line, so only one device transmits at a time. The controller generates the clock.
  • Open-drain on both lines. Devices can only pull low; resistors pull high. This gives a wired-AND bus where contention is harmless.
  • Byte-oriented with handshaking. Every byte is 8 bits, MSB first, followed by a ninth acknowledge bit driven by the receiver.
  • Addressed. The first byte after START selects the target and the direction (read or write).
ModeMax bit rateMax tr (30→70 %)Max CbSink current at VOLNotes
Standard-mode (Sm)100 kbit/s1000 ns400 pF3 mA @ 0.4 VThe original bus
Fast-mode (Fm)400 kbit/s300 ns400 pF3 mA @ 0.4 V (6 mA @ 0.6 V)Adds 50 ns spike filter, input hysteresis, minimum fall time
Fast-mode Plus (Fm+)1 Mbit/s120 ns550 pF20 mA @ 0.4 VStronger drivers allow small Rp
High-speed (Hs)3.4 Mbit/s10–80 ns100–400 pF—Entered with a controller code; current-source pull-up on SCL
Ultra Fast-mode (UFm)5 Mbit/s——push-pullWrite-only, no ACK; a different bus in practice
02 · Physical layer

Open drain, pull-ups and the wired-AND

Each SDA and SCL pin contains an NMOS pull-down and a Schmitt-trigger input. Turning the NMOS on drives the line low; turning it off releases it, and the pull-up resistor Rp charges the line high. No device ever drives a line high. The line is therefore low if any device pulls it low and high only when all release it: a wired-AND.

That one property is what makes the protocol work. A target acknowledges by pulling SDA low during the ninth clock; a slow target stretches the clock by holding SCL low; two controllers can start together and sort out who wins without damage. A push-pull bus (SPI, for example) cannot do any of this, because two drivers fighting each other short the supply [2].

VDD = 3.3 V ControllerMCU / SoC Schmitt inNMOS SCLSDA Rp2.2 kΩ Rp2.2 kΩ SCLSDA ADS1115 ADCaddr 48h · ADDR = GND SCLSDA DAC80501addr 49h · A0 = VDD Cb wired-AND: low if any device pulls low Cb = Σ pin C (≈10 pF each) + trace (≈1 pF/cm) + connectors; same on SCL. Wire crossings without a dot do not connect.
Reference circuit. One pair of pull-ups per bus segment, placed anywhere on the bus (usually near the controller). Each target's address pin straps its low address bits. Add 100 nF decoupling at every device; optional 33–100 Ω series resistors at the pins limit ESD current and slow very fast Fm+ fall edges.
Line released

Pull-up charges Cb

Rise is an RC exponential: \(V(t)=V_{\text{DD}}(1-e^{-\text{t}/\text{R}_{\text{p}}\text{C}_{\text{b}}})\). Slow, and set by the board, not by the chip.

Line pulled low

NMOS discharges Cb

Fall is set by the driver's sink current, typically 10–50 ns. Fast and clean, which is why I²C waveforms look like sawteeth with sharp falls and rounded rises.

Inputs

Thresholds scale with VDD

\(V_{\text{IL}}\le 0.3\cdot V_{\text{DD}}\), \(V_{\text{IH}}\ge 0.7\cdot V_{\text{DD}}\), Schmitt \(\text{hysteresis}\ge 0.05\cdot V_{\text{DD}}\) in Fm/Fm+, pin capacitance ≤ 10 pF, leakage ±10 µA [1][2].

03 · Sizing

Choosing the pull-up resistor

Rp has a floor and a ceiling [2][3]. The floor comes from the drivers: the weakest device must be able to pull the line below VOL while sinking the pull-up current. The ceiling comes from the rise-time limit, which the specification measures between 30 % and 70 % of VDD.

$$R_{\text{p}(\min )}=(V_{\text{DD}}-V_{\text{OL}(\max )})/I_{\text{OL}}\qquad \text{e}.\text{g}.\,(3.3-0.4)\ \text{V}/3\ \text{mA}=967\ \Omega$$

For the ceiling, the line crosses 0.3·VDD at \(t_{1}=-RC\cdot \ln 0.7=0.3567\cdot RC\) and 0.7·VDD at \(t_{2}=-RC\cdot \ln 0.3=1.2040\cdot RC\), so

$$t_{\text{r}}=t_{2}-t_{1}=0.8473\cdot R_{\text{p}}C_{\text{b}}\quad \Rightarrow \quad R_{\text{p}(\max )}=t_{\text{r}(\max )}/(0.8473\cdot C_{\text{b}})\qquad \text{e}.\text{g}.\ \text{Sm},400\ \text{pF}:\,1000\ \text{ns}/(0.8473\times 400\ \text{pF})=2.95\ \text{k}\Omega$$

Worked numbers. A Fast-mode bus at 3.3 V with three devices and 15 cm of trace has roughly 3 × 10 pF + 15 pF trace + 20 pF for the controller pin and test point ≈ 65 pF; call it 100 pF with margin. \(R_{\text{p}(\max )}=300\ \text{ns}/(0.8473\times 100\ \text{pF})=3.5\ \text{k}\Omega\), \(R_{\text{p}(\min )}=967\ \Omega\). A 2.2 kΩ pull-up gives \(t_{\text{r}}=186\ \text{ns}\) and 1.3 mA when low. The usual 1–10 kΩ range [2] is a starting point; the calculation tells you which end.

Measuring CbDon't guess. Fit the measured 30→70 % rise on the scope with a known Rp: \(C_{\text{b}}=t_{\text{r}}/(0.8473\cdot R_{\text{p}})\). Use a 10× probe (≈10 pF), or the probe itself adds a device's worth of capacitance.
04 · Protocol

START, STOP, bits, bytes and acknowledgements

The whole protocol rests on one rule: SDA may change only while SCL is low. While SCL is high, SDA must be stable and is read as a data bit. A change of SDA while SCL is high is not data; it is a bus condition [1]:

  • START (S): SDA falls while SCL is high. The bus becomes busy. Then the controller pulls SCL low to begin the first bit.
  • STOP (P): SDA rises while SCL is high. With SDA low and SCL low, the controller releases SCL first, then SDA. The bus becomes free.
  • Repeated START (Sr): a START without a preceding STOP. The controller keeps ownership of the bus while changing direction or target, which is how register reads are done.

Frames. After START, every transfer is a sequence of 9-clock frames: 8 data bits, most significant bit first, then one acknowledge bit. The first frame is the address byte: a 7-bit target address followed by the R/W bit (0 = write, 1 = read). So target 48h becomes 90h for a write and 91h for a read on the wire.

ACK and NACK. On the ninth clock the transmitter releases SDA and the receiver pulls it low (ACK) to say "byte received, continue". If SDA stays high (NACK), either no target recognised the address, the target can't accept more data, or (when the controller is receiving) the controller is telling the target that this was the last byte it wants. The controller must NACK the final byte of a read; otherwise the target would keep driving SDA and could block the STOP.

Which edge does what

EventWhen it happensWho actsWhy
Data launch (SDA changes)After SCL falls, during the low period, no earlier than tHD;DATTransmitter (controller or target)Gives the receiver a stable value for the whole high period
Data valid / sampledSDA must be stable tSU;DAT before SCL rises and for the whole high period; receivers latch on or shortly after the rising edgeReceiverSCL high = "the bit is now valid"
ACK/NACKDriven after the 8th SCL falling edge, sampled on the 9th SCL rising edgeReceiver drives, transmitter samplesHandshake per byte
START / SrSDA falls while SCL is highControllerIllegal as data, so unambiguous
STOPSDA rises while SCL is highControllerIllegal as data, so unambiguous
Clock stretchTarget holds SCL low after the controller releases it (any low period)TargetWired-AND on SCL; controller waits until it sees SCL high
Reserved addresses

16 of 128 are not targets

  • 0000 000 0 General call (06h second byte = reset)
  • 0000 000 1 START byte
  • 0000 001 X CBUS · 0000 010 X other formats · 0000 011 X future
  • 0000 1XX X Hs-mode controller codes
  • 1111 0XX X 10-bit addressing · 1111 1XX X Device ID

Usable 7-bit addresses: 08h–77h [1][2].

10-bit addressing

Two address bytes

First byte 11110 A9 A8 W, then the low eight bits A7–A0, each acknowledged. For a read, write both bytes, send Sr, then repeat only the first byte with \(R=1\). Rare in practice.

Register model

Pointer, then data

Not part of I²C itself, but nearly universal: the first byte after the address is a register pointer (command byte); data follows. Many devices auto-increment the pointer after each byte, so multi-byte reads stream consecutive registers.

05 · Anatomy

Anatomy of a transaction, part by part

Every I²C transfer is built from the same few parts. Point at any part of the transaction below (or tap it on a touch screen) to see what it is, who drives SDA, which edge matters and the timing it has to meet. Click to keep a part selected, and use the arrow keys to step through. The buttons name each part and also cover things that are not in every transaction, such as clock stretching and arbitration.

Transaction
Parts
controller drives SDAtarget drives SDAreleased: pull-up holds SDA highsampling instant (SCL rising edge)numbers over SCL: clock count within each byte

SDA driven by
Edge rule
Timing

Timing values are minimums or maximums for Standard-mode / Fast-mode / Fast-mode Plus, from UM10204 Table 10 [1]. The ADS1115 and DAC80501 transactions are the examples from TI SBAA565 [2], also used in §06.

Sequence view: the same register read over I²C and over SPI

The same job, reading one register from a sensor, drawn as message sequences. Solid arrows carry data from whoever is driving the line; dashed arrows are acknowledgements. I²C needs a START, the target address, a write of the register pointer, a repeated START, a second address and an acknowledgement after every byte. SPI replaces the address with a chip-select line, has no acknowledgements, and moves a byte in each direction on every 8 clocks. See the SPI primer for the waveform.

I²C: read the ADS1115 conversion register (pointer 00h, result 44C0h). 13 messages, 45 SCL clocks.
SPI: read an IMU's WHO_AM_I register (0Fh, answer 6Ch). CS# framing plus 16 SCLK clocks.
06 · Worked example

A byte from controller to target, bit by bit

The diagram below is generated from the bytes you choose. It starts with the DAC80501 write from TI's guide [2]: the controller sets the DAC output to 1.5 V by writing the 16-bit code 4CCDh to register 08h of the target at address 49h. Select the ADS1115 presets to see a configuration write and a register read with a repeated START, where the target drives SDA.

How to read it: shading on SDA shows who is driving the line (teal for the controller, amber for the target). The number above each SCL high period is the bit the receiver samples at the dashed line, the SCL rising edge. Rising edges are drawn as RC curves because they are made by the pull-up; falling edges are steep because a transistor makes them.

Transaction builder

Scroll sideways on narrow screens. S = START, Sr = repeated START, P = STOP, A = ACK, N = NACK. Dashed verticals: SCL rising edges, where each bit is sampled.

Reading the DAC80501 write step by step

  1. Idle. Both lines high; every device has released them.
  2. START. The controller pulls SDA low while SCL is still high, then pulls SCL low. Every target on the bus resets its receive logic and listens.
  3. Address byte \(\text{92h}=1001\ 0010\). The first seven bits, 100 1001, are 49h; the eighth is \(R/W=0\). For each bit the controller sets SDA while SCL is low, then releases SCL; targets sample on the rising edge.
  4. ACK. After the 8th falling edge the controller releases SDA. The DAC80501 recognises 49h and pulls SDA low; the controller samples 0 on the 9th rising edge. The ADS1115 at 48h saw a mismatch on the last address bit and stays silent for the rest of the transaction.
  5. Pointer \(\text{08h}=0000\ 1000\), ACK. Selects the DAC_DATA register.
  6. Data \(\text{4Ch}=0100\ 1100\), ACK; CDh = 1100 1101, ACK. MSB then LSB of the 16-bit code. The DAC latches the register when the second byte is complete.
  7. STOP. With SCL low the controller holds SDA low, releases SCL, then releases SDA while SCL is high.

On a scope the transaction is \(4\times 9=36\) clocks plus START and STOP: about 95 µs at 400 kHz for 16 bits of payload. The ADS1115 read shows the other half of the protocol: after Sr and the read address 91h, the target drives the data bits (amber) and the controller drives the ACK after the MSB and the NACK after the LSB.

07 · Timing

Bit-level timing parameters

All timing is referenced to the 30 % and 70 % points of VDD (the VIL and VIH limits). The figure zooms into a START, a 1, a 0, a STOP and the bus-free time before the next START.

Dotted lines: 30 % and 70 % thresholds. Dashed teal: data sampled on the SCL rising edge. Rise times are drawn exaggerated for clarity.
SymbolParameterSmFmFm+What it protects
fSCLClock frequency0–100 kHz0–400 kHz0–1 MHzNo minimum: I²C is fully static
tHD;STAHold after (repeated) START, before first SCL fall≥ 4.0 µs≥ 0.6 µs≥ 0.26 µsEvery target sees START before the clock begins
tLOWSCL low period≥ 4.7 µs≥ 1.3 µs≥ 0.5 µsTime for SDA to change and rise
tHIGHSCL high period≥ 4.0 µs≥ 0.6 µs≥ 0.26 µsTime to sample
tSU;STASetup for repeated START≥ 4.7 µs≥ 0.6 µs≥ 0.26 µsSCL high long enough before Sr
tHD;DATData hold after SCL fall≥ 0 ns≥ 0 ns≥ 0 nsPlus ≥ 300 ns internal hold in transmitters (see §08)
tSU;DATData setup before SCL rise≥ 250 ns≥ 100 ns≥ 50 nsSDA settled before sampling
tVD;DAT, tVD;ACKSCL low to SDA valid (data, ACK)≤ 3.45 µs≤ 0.9 µs≤ 0.45 µsTransmitter is quick enough
trRise time, 30→70 %≤ 1000 ns20–300 ns≤ 120 nsSet by Rp·Cb
tfFall time, 70→30 %≤ 300 ns20·(VDD/5.5 V)–300 ns20·(VDD/5.5 V)–120 nsMinimum limits EMI and ringing
tSU;STOSetup for STOP≥ 4.0 µs≥ 0.6 µs≥ 0.26 µsSCL high before SDA rises
tBUFBus free between STOP and START≥ 4.7 µs≥ 1.3 µs≥ 0.5 µsAll devices see the bus idle
tSPSpike suppressed by input filter—0–50 ns0–50 nsGlitches and ringing ignored
CbCapacitive load per line≤ 400 pF≤ 400 pF≤ 550 pFSets Rp range

Values from UM10204 Rev. 7, Table 10 [1]. Note that 1/(tLOW,min + tHIGH,min) is above the nominal rate (e.g. \(1/(1.3+0.6\ \text{µs})=526\ \text{kHz}\) in Fm); the frequency limit and the period limits must both be met, and real controllers usually run tLOW longer than tHIGH.

08 · Signal integrity

Rise time, fall time and SDA-to-SCL skew

I²C is slow, so it is easy to treat it as immune to signal-integrity problems. It isn't. Its failures just look different from those of push-pull buses: they come from slow, load-dependent rising edges, very fast falling edges, and the fact that SDA and SCL are two separate RC networks that do not track each other.

Rising edges: the low period is a budget

When the transmitter sends a 1 it releases SDA some time after SCL falls; SDA then has to climb through the pull-up and be above VIH tSU;DAT before SCL starts to rise. That gives a budget for the low period:

$$t_{\text{LOW}}\ge t_{\text{VD};\text{DAT}}+t_{\text{r}(\text{SDA})}+t_{\text{SU};\text{DAT}}\qquad \text{Sm}:\,3.45+1.0+0.25=4.7\ \text{µs}\quad \text{Fm}:\,0.9+0.3+0.1=1.3\ \text{µs}$$

For Standard- and Fast-mode the published limits close this budget exactly, which is how the specification was derived. Exceed tr and the budget goes negative: the receiver samples SDA while it is still climbing through the undefined region and reads a 0 or a 1 at random. The failures are data-dependent (only 0→1 transitions fail) and temperature-dependent, which makes them look intermittent.

Rising edges also stretch the clock

SCL rises through the same kind of RC. A controller that implements clock synchronization correctly starts counting tHIGH only when it sees SCL above its own VIH, so every period grows by roughly 1.2·RpCb. A "400 kHz" bus with a 2.2 kΩ pull-up and 200 pF actually runs near 330 kHz. This is benign, but it surprises people comparing scope captures with register settings. The calculator in §03 shows the effect.

Falling edges: too fast is also a problem

A 20 mA Fm+ driver discharging a lightly loaded line can fall in a few nanoseconds. That edge excites ringing on longer traces and cables, couples into neighbours, and radiates. Fm and Fm+ set a minimum fall time of 20 ns × (VDD/5.5 V) for this reason, and devices implement slope-controlled outputs. On a board, 33–100 Ω in series with each pin slows the edge and limits ESD current; keep it small enough that the series drop at IOL plus VOL stays below VIL at the far end.

Skew between SDA and SCL

SDA and SCL rarely have equal RpCb. SDA may connect to more pins (an extra device, a test point, a level translator), use a different pull-up, or run on a longer route. Skew matters at two points in every bit:

  • Setup side (SDA slower than SCL). A slow SDA rise eats directly into tSU;DAT. If SCL rises faster than SDA, SCL can reach VIH while SDA is still below it. Size Rp against the worse of the two lines, not against SCL alone.
  • Hold side: the undefined region of SCL's falling edge. tHD;DAT is specified as 0 ns from the SCL falling edge, measured at 30 %. But a receiver with its threshold near 70 % sees SCL fall earlier than one with its threshold near 30 %. If a transmitter changed SDA immediately, a receiver that still sees SCL high would see SDA move while SCL is high and decode a false START or STOP. UM10204 therefore requires every device to hold SDA internally for at least 300 ns after SCL falls, to bridge the undefined region of SCL's falling edge [1]. Controllers implemented in firmware or FPGAs often get this wrong.
  • Through translators and buffers. Each buffer adds a propagation delay and, in some parts, a static low-level offset (e.g. a buffered side that only pulls to 0.5–0.6 V). Delay on SCL but not on SDA (or vice versa) shifts the sampling point. Check the buffer datasheet's maximum frequency and its offset rules before cascading two buffers.

Glitches, crosstalk and the spike filter

A fast neighbour (an SPI clock, a switching node, a motor PWM line) coupling a few-nanosecond spike onto SCL can add a clock edge; on SDA while SCL is high it can create a false START or STOP. Fm and Fm+ inputs must reject spikes shorter than 50 ns (tSP), which handles short coupled spikes and moderate ringing, but not slow ground bounce or long cable pickup. Route SDA and SCL as a pair away from aggressors with an unbroken reference plane underneath; the pair does not need length matching, because the timing margins are in hundreds of nanoseconds.

Rule setSize Rp for the slower line. Keep tr well below the limit (≤ 70 % of it is a good target). Keep tf above 20·(VDD/5.5) ns in Fm/Fm+; add series resistance if fall edges ring. Make sure firmware or FPGA controllers hold SDA ≥ 300 ns after SCL falls. Expect an effective clock below the programmed rate.
09 · Bus control

Clock stretching, synchronization and arbitration

Clock stretching. A target that needs time (to fetch data, finish an EEPROM write, wake from sleep) holds SCL low after the controller releases it. Because SCL is wired-AND, the controller sees SCL still low and waits. The I²C specification sets no time limit; SMBus does (35 ms) [2]. Every controller must support stretching, but some (certain SoC hardware blocks, Raspberry Pi's older BCM2835 controller, bit-banged drivers that never read SCL back) do not, and fail with stretched targets.

The controller releases SCL after an ACK; the target holds it low until it is ready. The next high period begins only when both have released the line.

Clock synchronization. With several controllers clocking at once, SCL's low period is the longest of their low periods and its high period the shortest of their high periods: each controller counts its low time from when SCL falls and its high time from when SCL actually goes high. Arbitration then happens on SDA, bit by bit. A controller that transmits a 1 but reads back a 0 has lost; it releases SDA and becomes a receiver for the rest of the transfer. The winner never sees the conflict, so no data is lost [1][2]. Lower addresses win, since 0 dominates.

Two controllers start the same transfer. They agree on the first two bits; on the third, controller 2 sends 0 while controller 1 sends 1, so the bus reads 0 and controller 1 drops out.
10 · Mixed voltages

Level translation, buffers, switches and long buses

Because thresholds scale with each device's own VDD, mixed-voltage buses fail in specific ways [2]:

  • Pull-ups at 3.3 V, 5 V target: \(V_{\text{IH}}=0.7\times 5\ \text{V}=3.5\ \text{V}\), which a 3.3 V pull-up never reaches. The target may never see a 1.
  • 1.8 V controller, pull-ups at 5 V: the bus exceeds the controller's absolute-maximum input rating and can damage it through its ESD diodes.
  • 5 V pull-ups, 3.3 V target: works only if the target's pins are 5.5 V tolerant (open-drain pins without a diode to VDD).

The robust fix is a translator with separate pull-ups on each side. The classic discrete version is one N-channel MOSFET per line [4]:

VDD(L) = 1.8 VVDD(H) = 3.3 V Controller1.8 V I/O Target3.3 V I/O RpLRpH SDA_LSDA_H GSD Q1: BSS138 / 2N7002, one per line Same circuit on SCL. Integrated translators (PCA9306, TCA9406) do the same with matched, characterised switches.
How it works. Both sides released: \(V_{\text{GS}}=0\), the FET is off, each side sits at its own rail. Low side pulls low: \(V_{\text{GS}}=1.8\ \text{V}\), the FET turns on and pulls the high side low through the channel. High side pulls low: the body diode pulls the source down to about 0.6 V, VGS rises, the FET turns on and pulls the low side fully low.
Translators

Pass-FET translators

PCA9306, TCA9406 and the discrete FET add almost no delay but share capacitance: both sides' Cb must be charged through whichever pull-up is active, so size Rp for the combined load. The FET's Ron adds to VOL.

Buffers

Bus repeaters

TCA9517, TCA9617, PCA9515 isolate capacitance (each side gets its own 400 pF budget) and translate levels, at the cost of delay and, in some parts, a static offset on one side that forbids putting two such sides back to back.

Address conflicts

Multiplexers and switches

TCA9548A-style switches connect one of several downstream segments, solving duplicate addresses (eight identical sensors) and splitting capacitance. Each downstream channel needs its own pull-ups.

Distance

Cables and long runs

Beyond a board, capacitance and noise dominate. Use differential extenders (PCA9615), current-mode buffers (P82B715) or move to a bus designed for cables (CAN, RS-485). Keep I²C off long harnesses where possible.

11 · When it breaks

Failure modes, bus recovery and debug signatures

SymptomLikely causeCheck / fix
SDA stuck low after reset or a brown-outController reset mid-read; target is still mid-byte, driving a 0 and waiting for clocksBus recovery: clock SCL up to 9 times until the target releases SDA, then send STOP [1]. Do this at every boot. Some targets also have a reset pin or SMBus timeout.
Bus pulled low or stuck when one device is powered offBack-powering: the unpowered device's ESD diode to its VDD clamps the bus to ~0.6 VUse parts with fail-safe (powered-off high-impedance) I/O, put the pull-ups and all devices on the same switched rail, or isolate with a switch/buffer.
Every address NACKsWrong address format (8-bit vs 7-bit confusion: a datasheet's "0x90" means 48h), missing pull-ups, device in reset, wrong supplyScope SDA and SCL; check idle level is VDD. Shift datasheet 8-bit addresses right by one.
Intermittent wrong bits, mostly 0→1Rise time too slow for the clock rate (too much Cb or Rp)Measure 30→70 % rise; recompute Rp; lower fSCL.
False START/STOP, transfers abortHold-time violation at SCL falling edge; glitch on SDA during SCL high; crosstalkVerify ≥ 300 ns data hold; look for ringing on SCL falls; add series R; reroute.
Two devices ACK the same addressAddress strap collisionRe-strap or use a switch/mux.
Transfers hang with a particular targetController doesn't support clock stretchingCheck the controller's SCL readback; use a hardware controller or a different target mode.
VOL sits at 0.5–0.8 VRp too small for the sink current, or a buffer offset\(R_{\text{p}}\ge R_{\text{p}(\min )}\); follow buffer offset rules.
Debug setupProbe both lines with 10× probes referenced to a nearby ground, trigger on SDA falling while SCL is high (most scopes have an I²C START trigger), and turn on the protocol decoder. Then switch to a wide view and read the rise time, VOL and the gap between SCL falling and SDA changing directly from the waveform.
12 · Relatives

SMBus, PMBus and I3C

I²CSMBus / PMBusI3C (MIPI)
Clock range0–1 MHz (3.4 Hs)10–100 kHz (1 MHz in SMBus 3.x)up to 12.5 MHz SDR
DriversOpen-drainOpen-drainPush-pull data, open-drain only for arbitration
TimeoutNone (stretch forever)35 ms clock-low timeout resets the deviceDefined
ThresholdsProportional to VDDFixed levels (low-power variant)Proportional
Extras—Packet error checking (CRC-8), SMBALERT#, address resolution; PMBus adds a power command setDynamic addressing, in-band interrupts, HDR modes; backward compatible with I²C targets on the same bus

Also seen: TWI (Atmel/Microchip naming for I²C, usually without START byte or Hs mode), DDC (display EDID over I²C), IPMB in server management [2].

13 · Design review

Schematic and layout checklist

Schematic
  • One pull-up pair per segment, sized from Rp(min) and Rp(max) with measured or budgeted Cb
  • Address table for every segment; no duplicates; reserved addresses avoided
  • Every device's VIH met by the pull-up rail; translators where rails differ
  • Powered-off behaviour of every device on the bus (back-powering)
  • Bus recovery path: controller can toggle SCL as GPIO, or targets have reset/timeout
  • Test points on SDA and SCL of each segment
Layout
  • SDA and SCL routed together over solid ground; no length matching needed
  • Keep away from clocks, switching nodes and high-current edges, or guard with ground
  • Short stubs to each device; pull-ups anywhere on the segment
  • Series resistors (optional) placed at the pins they protect
  • Connector pins: ground between I²C and fast signals
Bring-up
  • Measure tr, tf, VOL and actual fSCL on every segment
  • Scan addresses; confirm each device ACKs once
  • Check data hold ≥ 300 ns after SCL falls on controller-driven bits
  • Power-cycle targets and reset the controller mid-transfer to test recovery
14 · Self-check

Questions

On which SCL edge is SDA sampled, and on which may it change?

Sampled while SCL is high, effectively at the rising edge (it must be valid tSU;DAT before SCL rises and remain stable for the whole high period). It may change only while SCL is low, after the falling edge plus the hold time. A change during SCL high is a START or STOP.

Why does a 5 V target sometimes ignore a bus pulled up to 3.3 V?

Its VIH is \(0.7\times 5\ \text{V}=3.5\ \text{V}\), above the 3.3 V the pull-up can reach. Use a level translator, or a target with fixed (TTL-like) thresholds.

Bus at 3.3 V, Fm, measured \(C_{\text{b}}=250\ \text{pF}\). What range of Rp is legal?

\(R_{\text{p}(\min )}=2.9\ \text{V}/3\ \text{mA}=967\ \Omega\). \(R_{\text{p}(\max )}=300\ \text{ns}/(0.8473\times 250\ \text{pF})=1.42\ \text{k}\Omega\). A 1.2 kΩ resistor works, with \(t_{\text{r}}=254\ \text{ns}\).

What is the address byte on the wire for a read from target 1Dh?

(1Dh « 1) \(|\,1=\text{3Bh}=0011\ 1011\).

Why must the controller NACK the last byte of a read?

A target that gets an ACK prepares to send the next byte and drives its first bit on SDA. If that bit is 0, SDA is held low and the controller cannot create the STOP (SDA rising while SCL is high). The NACK tells the target to release SDA.

Why does UM10204 require a 300 ns internal SDA hold time when tHD;DAT is 0?

Devices' input thresholds sit anywhere between 30 % and 70 %, so during the SCL fall (up to 300 ns) some receivers still see SCL high. If SDA changed immediately, they would decode a START or STOP. Holding SDA ≥ 300 ns bridges that undefined region.

A board's SDA is stuck low after a watchdog reset. What should firmware do?

Configure SCL as GPIO, toggle it up to nine times while watching SDA; once SDA is high, generate a STOP (SDA low → SCL high → SDA high), then re-enable the I²C peripheral.

15 · Further reading

References

  1. NXP Semiconductors, UM10204: I²C-bus specification and user manual, Rev. 7.0, 2021. The normative source for levels, timing (Table 10) and bus recovery. Link
  2. J. Wu, A Basic Guide to I2C, Texas Instruments application note SBAA565, Nov. 2022. Physical layer, protocol, DAC80501 and ADS1115 worked transactions, reserved addresses, arbitration, level translation and pull-up sizing. Link
  3. Texas Instruments, I2C Bus Pullup Resistor Calculation, application report SLVA689. Link
  4. NXP Semiconductors, AN10441: Level shifting techniques in I²C-bus design. Link
  5. System Management Interface Forum, System Management Bus (SMBus) Specification, Version 3.x.
  6. Texas Instruments, DAC80501 and ADS1115 data sheets (register maps used in the worked examples).
SPI primer →Choosing an interface →Signal integrity →LVCMOS levels →