Pull-up resistor calculator

Circuit diagram

Discussion

This discussion assumes you are familiar with the general principles behind pull-up resistors.

The circuit being analyzed has two sides. The output side outputs an open-drain logic state, and the input side receives a push-pull logic state. The pull-up resistor must meet two criteria:

  • When output is logic-high, and therefore in high impedance state, signal voltage has to exceed minimum logic-high voltage of input
  • When output is logic-low, and therefore tied to ground, signal voltage must not exceed maximum logic-low voltage of input or output

Logic-high

In the first case (logic-high), the supply is sourcing current, output is leaking some current to ground, and the rest of the current is going to input:

Circuit diagram

The lowest value of occurs when supply power is at a minimum, and the two currents are at a maximum; in order for the circuit to function properly, this value of must exceed the minimum logic-high voltage of input, .

Component parameters that determine viable values of the pull-up resistor are:

  • Minimum supply voltage
  • Maximum current on output in logic-high state, also known as open-drain leakage current
  • Maximum current on input
  • Minimum input logic-high voltage

Which leads to:

Logic-low

In the second case (logic low), the supply is sourcing current, output is sinking this current to ground, and input is leaking some current, which output is also sinking to ground:

Circuit diagram

Signal voltage is related to the current sunk by output; the relationship between the two may not be linear, but it is monotonic, so that increasing current sunk by output also increases signal voltage.

is required to remain below the maximum logic-low voltage for output, . That also means that current sunk by output must remain below the current that would produce . This current, , can be found in datasheets as the test current for .

The highest value of occurs when supply voltage is at a maximum, signal voltage is at a mimimum, and input leakage current is at a maximum.

Signal voltage minimum is zero; other component parameters that determine viable values of the pull-up resistor are:

  • Maximum supply voltage
  • Maximum current on input, also known as bias current
  • Maximum output logic-low current

Therefore:

Additionally, is required to remain below the maximum logic-low voltage for input. If this voltage exceeds the maximum logic-low voltage for output, then this requirement is automatically satisfied when .

However, since the relationship between output sink current and signal voltage is generally unknown, when maximum logic-low voltage for input is below the maximum logic-low voltage for output, there is no definitive way to calculate the range of viable pull-up resistors. The only option is to err on the side of larger pull-up resistor values.

Acknowledgements

This calculator and the discussion are based on information from TI Application Report SLVA485 by Ben Hopf.