Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Thu Feb 05, 2004 6:50 am
#use fast_io() just tells the compiler not to control the tris register when accessing the I/O. It should not have an affect on I2C.
chava
Joined: 07 Sep 2003 Posts: 56
I2C is bi-directional communication
Posted: Thu Feb 05, 2004 8:08 am
Hello
I2C is a bi-directional communication, so the SDA line has to change roll from input to output during the transmition.
you should check if, when you use I2C, the tris is been changed by the program (ie if the compiler generated a code that take care of the tris, inspite of the use fast io directive.)
if not, you should cancel the fast io for the program part which related to the I2C communication
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum