In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: Change RA_init to RA_init equ %11110100 ;SX18/20/28/48/52 port A latch init ;could the problem be here????????????????? The latch bits 0 and 1 must be 0, so when direction bits 0 and 1 are 0, output is low, and when direction bits 0 and 1 are 1, output is pulled high by the external 4.7k ohm pullup resistors. lines SDA and SCL must have 4.7k pullups) All the changes are done in the attached code. 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#m86657 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)