In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: I corrected the arbitration tests also in Read: Another dangerous construction is snb I2CM_NACK ; Check for no acknowledge jmp @do_I2C_W ; try again (similar constructions also in Read:) If for some reason an I2C slave does not acknowledge, your program enters an infinite loop. You should really have a timeout on this. When you timeout, and not lost arbitration, issue STOP sequence on I2C bus. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=85672#m86659 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)