Interfacing I2C devices
agfa
Posts: 295
I'm going to be playing around with some·I2C devices.· Do I need a current limiting resistor on the SDA line to protect the prop or the device incase of a conflict?
agfa
agfa
Comments
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!
The DIY Digital-Readout for mills, lathes etc.:
YADRO
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Propalyzer: Propeller PC Logic Analyzer
http://forums.parallax.com/showthread.php?p=788230
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Thanks Nick, thanks Steve
edit:
looking at the phillips I2C specs v 2.1 it shows devices of different·voltage suplies tied·directly to the bus.· I didn't see any thing about considerations of tying the bus·to a microcontroller.· I will continue reading.
Post Edited (agfa) : 7/4/2009 3:12:49 PM GMT
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
For a lot of I2C devices > 10 you may be better with the mosfet interface, if you want to prototype or dont want to build it, I have used both i2c level shifter devices and the sparkfun http://www.sparkfun.com/commerce/product_info.php?products_id=8745 board.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 7/4/2009 5:52:32 PM GMT
Actually, it is not a bad idea. One time I had a bear of a time finding a bug in my software that occasionally·caused a conflict, and it was sufficient to pull the power supply low enough for a couple of microseconds·to cause a RESET. Of course this is not supposed to happen but during debugging it has proven that it can.
My experience is that a series resistor on the SDA line -I use 100 ohms- works just fine, and then you also dont have to turn the processor's port bit to an input when the I2C device sends an acknowledge and you are happy to ignore that acknowledge.
Cheers,
Peter (pjv)
Post Edited (pjv) : 7/4/2009 6:07:03 PM GMT