>Yes, you can completely reset the IIC hardware from software. Great! Thanks, Olin. Is that best done by clearing SSPEN, then setting it again, or is there another approach? I dug out the reference which suggested that the I2C interface couldn't be reset properly from software - it's at: http://www.howell1964.freeserve.co.uk/MyPICPage.htm The source appears to be none other than Microchip! Quoting from the fourth paragraph on the above page: > The PIC's I2C slave interface is very unfriendly. If you don't use it > just right, it can lock up in a fault state. It sets a bit to flag the > error condition, but I couldn't see anyway of clearing the condition. > I talked to Microchip USA again and they confirmed that this amazingly > stupid behaviour is indeed the case! Perhaps this refers to a problem which was fixed in a later revision of silicon and/or more recent devices. -- Ian Chapman Chapmip Technology, UK -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body