Pull-up resistor calculator (I²C, GPIO)

I²C Rp min/max from UM10204, rise time; GPIO pull-up limits from leakage and sink current.

How to use it

  1. For I²C, set VDD, the speed (100 kHz, 400 kHz or 1 MHz) and the bus capacitance: about 10 pF per pin plus the traces.
  2. Read the smallest pull-up the drivers can sink and the largest that still meets the rise time, and the standard values between them.
  3. For a GPIO or open-drain line, give the input’s high threshold, leakage and the driver’s sink current to see the limits and the rise time with 10 kΩ.

Questions

Where do the I²C limits come from?

From NXP’s I²C specification UM10204: the low-level sink current (3 mA, or 20 mA in fast mode plus) sets the minimum, and the rise time for the speed (1000, 300 or 120 ns) with the bus capacitance sets the maximum.

No standard value fits. What now?

The bus capacitance is too high for that speed. Lower the speed, shorten the bus or use fewer devices on it, or add an I²C buffer.

What can I type?

Values take engineering prefixes: 4k7 or 4.7k, 100n, 2.2u, 1M. The inputs are kept in the address, so “Copy link” shares the result.

Related tools

Also useful for: pullup, i2c, rise time, bus capacitance, open drain, um10204.