PDA

View Full Version : How can I initiate i2c



icaotyr
- 8th November 2006, 15:04
Im working with two pics in the I2C mode to communicate coth, the one that I have problems is the master cuase i dont know why but I cant initiate the communication. Im working with the MPLAB im a begginer. I think that theres some part of the code that im missing but I dont know what. Please help

Darrel Taylor
- 8th November 2006, 22:00
Hi icaotyr,

Most of your ASM statements are backwards.
For instance,

BTFSS SSPIF,PIR1

should be

BTFSS PIR1,SSPIF