I2C cable communications
FredBlais
Posts: 380
Hi,
Does someone here tried to communicate with i2c between several boards? If so, what is the maximum cable length you think i2c is capable of without needing any kind of buffer (like P82B96)?
Thanks
Does someone here tried to communicate with i2c between several boards? If so, what is the maximum cable length you think i2c is capable of without needing any kind of buffer (like P82B96)?
Thanks
Comments
I don't know the max length immediately, but I go here for the information:
http://www.i2c-bus.org/
Later,
DJ
Al
I was looking for personal experiences
yup, it is almost that
what are you using for pull-up value?
Do you think it would work with non twisted-pair cable and no shield?
I am using 5K pull-ups on both SDA and SCL.
The twisted-pair is probably what is helping the most, plus the fact that in each pair I have one one signal line and one DC or ground line. My shield is not connected to ground, although in a perfect world, it should be.
I just thought about the CAT-5 cables as used for Internet connections and decided to try it since my data rates are much lower. Also, the CAT-5 cables I have seen do not have the shield connected.
Al
(I have always problem with that kind of calculation)
If I'd like to reuse the propeller I2C bus, do I have to change the existing pull-up(or parallel new one)? Is it bad if the pull-up is not in the slave side?
Thanks
The capacitance figure you come up with above (depending on your cable and its length) - combined with the pull up resistor form a RC circuit. The lower the RC value, the lower the "time constant", and the higher the frequency you will be able to transmit data over the I2C bus. If you encounter problems starting at say 100kHz, you can always slow down until it works reliably.
I'm not sure what you're asking about the pull-up - there is normally a single pull-up near the master. That way any number of slaves can be added and they don't need to worry about the pull-up. It would still work with a distributed pull up (multiple resistors), but I don't see an advantage (marginal noise advantage if any).