I2C Formula

in #electronicslast month

I2C is one of the most versatile and valuable protocols you can probably use. Here's how you calculate the values for the pull-up resistors:
R = (V - V_IL) t_r / (3 C_b)
Where:
R is the value of the pull-up resistor in ohms.
V is the supply voltage.
V_IL is the maximum input low voltage.
t_r is the maximum rise time of the signal.
C_b is the total bus capacitance.