Screaming_Rabbit Posted September 19, 2008 Report Share Posted September 19, 2008 Does anybody have experience how long the I2C bus lines can be without running into trouble?In other words: Without calculating the capcity... what is the average cable lenght while still being on the safe side?Thanks and greetsRoger Quote Link to comment Share on other sites More sharing options...
stryd_one Posted September 20, 2008 Report Share Posted September 20, 2008 This is not an answer really, but I expect that the practical max length will vary greatly depending in cable used... Quote Link to comment Share on other sites More sharing options...
Screaming_Rabbit Posted September 20, 2008 Author Report Share Posted September 20, 2008 THX stryd. - Your answer gave me some imput for googling (... and I finally found some time to do so).I was surfing a bit... for your interest (I put the links to the wiki too):Original-Specifikation NXP Semiconductors V2.1 http://www.nxp.com/acrobat/literature/9398/39340011.pdfOriginal-Specifikation NXP Semiconductors V03 http://www.nxp.com/acrobat_download/usermanuals/UM10204_3.pdfFrom: http://www.esacademy.com/faq/i2c/q_and_a/i2cqena.htmQuestion: What is the maximum distance of the I2C bus? This depends on the load of the bus and the speed you run at. In typical applications, the length is a few meters (9-12ft). The maximum capacitive load has been specified (see also the electrical Spec's in the I2C FAQ). Another thing to be taken into account is the amount of noise picked up by long cabling. This noise can disturb the signal transmitted over the bus so badly that it becomes unreadable.The length can be increased significantly by running at a lower clock frequency. One particular application - clocked at about 500Hz - had a bus length of about 100m (300ft). If you are careful in routing your PCB's and use proper cabling (twisted pair and/or shielded cable), you can also gain some length. If you need to go far at high speed, you can use an active current source instead of a simple pull-up resistor. Philips has a standalone product for this purpose. Using a charge pump also reduces "ghost signals" caused by reflections at the end of the bus lines.From the Spec:17.3 Wiring pattern of the bus linesIn general, the wiring must be so chosen that crosstalk andinterference to/from the bus lines is minimized. The buslines are most susceptible to crosstalk and interference atthe HIGH level because of the relatively high impedance ofthe pull-up devices.If the length of the bus lines on a PCB or ribbon cableexceeds 10 cm and includes the VDD and VSS lines, thewiring pattern must be:--SDA--VDD--VSS--SCLIf only the VSS line is included, the wiring pattern must be:--SDA--VSS--SCLThese wiring patterns also result in identical capacitiveloads for the SDA and SCL lines. The VSS and VDD linescan be omitted if a PCB with a VSS and/or VDD layer isused.If the bus lines are twisted-pairs, each bus line must betwisted with a VSS return. Alternatively, the SCL line can betwisted with a VSS return, and the SDA line twisted with aVDD return. In the latter case, capacitors must be used todecouple the VDD line to the VSS line at both ends of thetwisted pairs.If the bus lines are shielded (shield connected to VSS),interference will be minimized. However, the shieldedcable must have low capacitive coupling between the SDAand SCL lines to minimize crosstalk.Greets, Roger Quote Link to comment Share on other sites More sharing options...
stryd_one Posted September 21, 2008 Report Share Posted September 21, 2008 Thanks Rog'! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.