>>Therefore, care should be taken when doing I2C in this method to make sure >>that the pin is set to output 0 whenever you tris back to an output. > >As an aside, when doing open-collector code I clear the port pin just >before >I change it to output. Just to sure that the pin will be low when I need it >to be! >Helps to avoid having a nasty level collision on a OR'd bus line. >Regards... I would be careful using this method of resetting the latches, because this won't work if you have ISR's that access the port pins. You have to reset the latch inside the ISR, not just before you tris the pin. --Andrew _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics