In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Coriolis wrote: To distill what Bean is saying, when operating an open collector bus (which I2C is), instead of changing the data in the register, you instead change the pin direction from input to output and vice versa. When you set up the pin, you write a 0 to the bit(s) and you never change it(them) again. When you want the output to be 1, set the pin's direction to input. When you want the output to be 0, you set the pin's direction to output. The key is to allow the external pullup resistor supply the 1 value. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=108403#m108423 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)