1
\$\begingroup\$

Hi When calculating the pull up resistor value using the formula R = 50 / d, where d is the number of devices on the bus, is the master considered a bus device?

for e.g. If I have a micro controller master and two slave devices on the bus should this count as a total of 3?

For extra credit: Am I using the right formula? if I use 3 as number of devices this tells me I should use 16k6 pull-ups, which seems high... Ta

\$\endgroup\$
1
  • 1
    \$\begingroup\$ At what (bit) frequency do you want to run that I2C bus? \$\endgroup\$
    – Telaclavo
    Apr 17, 2012 at 12:12

1 Answer 1

3
\$\begingroup\$

Three. Electrically the master controls the bus in exactly the same way as the slaves.

I'm not sure where your formula comes from. The spec states that pull-up resistors are to be chosen in function of bus capacitance and speed(page 55):

enter image description here

\$\endgroup\$
3
  • \$\begingroup\$ "function of bus capacitance" - Which would be a related to the number of devices surely? Ta \$\endgroup\$
    – Toby
    Apr 17, 2012 at 12:15
  • \$\begingroup\$ "in function of bus capacitance" and speed. \$\endgroup\$
    – Telaclavo
    Apr 17, 2012 at 12:16
  • \$\begingroup\$ @Telaclavo - Yes, shown in the graphs, but not in the answer. I'll edit it. \$\endgroup\$
    – stevenvh
    Apr 17, 2012 at 12:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.