SUNTEC Technical Team · Suzhou Shengyatai Electronics Co., Ltd.
This method covers a conventional, same-voltage, open-drain bus without active rise-time acceleration. It is the case we see most often, and the one where a simple calculation prevents most of the problems.
Define the bus and the device limits
Start by listing every device on the connected bus segment. Use complete ordering codes — MCP23017-E/SP, 24LC256-I/P — not family names. A catalog entry tells you the part exists; the applicable datasheet tells you its electrical limits.
Open-drain outputs can pull a line low or release it. The pull-up resistor raises the released line. For each line, record the pull-up voltage, the operating mode, and an estimated capacitance. That capacitance includes device pins, traces, cables, and connectors. More capacitance slows the rising edge. Keep estimates separate from measured values — they answer different questions.
Next, identify every output that can pull that line low. Sink current is the current an output carries while holding the line low. Use the guaranteed low-level voltage at a stated current, supply, and temperature. Check receiver thresholds and allowable pin voltages at the same time.
One detail that trips people up: on the MCP23017, the GPPU register controls GPIO pull-ups, not SDA or SCL pull-ups. Keep those functions separate when you prepare the calculation inputs.
Calculate the allowable resistance range
A smaller resistor demands more sink current. A larger resistor takes longer to charge the bus capacitance. That gives you two limits: a lower resistance limit and an upper resistance limit.
TI's I2C pull-up calculation note gives:
Rmin = (Vpullup − VOLmax) / IOL
Rmax = trmax / (0.8473 × Cb)
Vpullup is the pull-up supply. VOLmax is the guaranteed low-level output voltage at sink current IOL. Cb is the capacitance of one line. trmax is the allowed rise time, calculated over the 30% to 70% voltage interval. Use volts, amperes, seconds, and farads in these equations. The upper bound covers RC rise time; leakage can impose a tighter limit.
For illustration, assume the inputs below. The assumed output guarantee applies to every relevant driver, and receiver thresholds must accept that low level. These values do not state the named catalog parts' guarantees at 3.3 V. This is an arithmetic example, not a measured circuit.
| Item | Illustrative input | Result or use |
|---|---|---|
| Pull-up voltage | 3.3 V | Calculation input |
| Output guarantee | 0.4 V at 3 mA | Rmin ≈ 0.97 kΩ |
| Capacitance per line | 100 pF | Assumed total load |
| Allowed rise time | 300 ns | Rmax ≈ 3.54 kΩ |
The illustrative window is about 0.97–3.54 kΩ, so 2.2 kΩ is a nominal candidate. On each real line, calculate Rmin for every possible pull-low driver. Use the largest lower bound and the strictest applicable rise-time limit. Check supply extremes and resistor tolerance before accepting a candidate. If the limits do not overlap, change the conditions or the topology — not the arithmetic.
Check the fitted pull-ups and choose a value
Now compare the fitted network with the calculated window. Inspect both the main board and any attached modules. Adding an ADS1115IDGSR module, for example, can add capacitance and fitted resistors. Check the module schematic or the fitted components; the chip code does not identify its resistors.
Resistors on the same connected line and pull-up rail act in parallel:
1 / Req = 1 / R1 + 1 / R2 + …
Two 4.7 kΩ resistors give 2.35 kΩ nominal. Compare that equivalent value with the window instead of adding another resistor automatically. Check the entire equivalent-resistance range with tolerance, not just the nominal value.
Separate supply rails, buffers, and switched branches need their own circuit analysis. Do not treat every resistor shown anywhere in the schematic as one permanent parallel network.
Mark which resistors remain, which change, and which operating configurations the choice covers. That marked schematic becomes the starting point for waveform checks.
Verify the waveform and record the selection
Verify each line under its intended load. Check rise time and the low level for every relevant driver. Also check that the released line reaches every receiver's minimum high-input voltage. A successful transaction alone does not establish these margins.
The NXP I2C specification also considers input leakage when limiting pull-up resistance. If the high level is insufficient, investigate leakage and supply paths. Include probe loading in measurements. Any resistor change must satisfy both timing and logic-level limits.
| Observation | Next check | Record after correction |
|---|---|---|
| Slow rising edge | Reduce resistance or capacitance within the low-level limit | Rise time under the same load |
| Low level too high | Check driver current; recheck rise time before increasing resistance | Low voltage for that driver |
| Released high level too low | Check leakage, pin limits, and supply paths | High voltage against receiver requirements |
| Timing and logic levels pass | Review tolerances and operating configurations | Scope of the accepted selection |
Change one identified cause, then repeat the same measurement. Retain the selected resistance, supply, clock, connected modules, and trace location. Then you can state which configuration passed and which still needs work.
Record complete part codes, pull-up voltage, and connected loads when preparing the bus requirement. We compare candidate devices against the same output, input, and timing conditions before changing the BOM. Send SUNTEC the required models, quantities, and project conditions for a quotation.
Prepared by the SUNTEC Technical Team at Suzhou Shengyatai Electronics Co., Ltd.