Nopnop
Joined: 10 Aug 2007 Posts: 7
|
I2C and multi master and bus collision |
Posted: Tue Dec 11, 2007 3:23 pm |
|
|
Hi,
I have a few questions on multi master and bus collision.
My project: I have two PIC 18F452 and EEPROM 24FC1025 who communicate on I2C.
The first PIC write EEPROM at address 0X00 and the second PIC read the data at address 0X00.
In my code I have adding the interrupt INT_BUSCOLL. In the interrupt code I reset the BCLIF bit.
My first question is which code I can add?
In the manual, the function I2C_write return 2 when there are collisions.
My second question is how to use the I2C_write function when there are collisions.
Thanks for your answers. _________________ made by www.nopnop.fr |
|