Multiple PIC talking to same I2C device
I want to implement a circuit where 2 microcontrollers (PIC18F4620 and PIC18F4431) will exchange values with an I2C EEPROM device (24LC32).
18F4620 will both read an write stored values, while 18F4431 will only read values. I have no problem using a single PIC to talk to I2C EEPROM, but was wondering about possible data collision with such a design.
The exact question is what will happen if 18F4431 try to read data while 18F4620 is writing the same or any other memory location at the same time? I would also know what is the best way to avoid/detect/fix data collision in such case.
J-P
I2C-Bus can be a Multi-Master bus
The 18F MSSP has a "Multi-Master" mode for the I2C bus. I've never used it, only know about it from the 18F4620 datasheet and spending a lot of time reading the Phillips I2C Bus Spec Sheet a while back.
It might be worth doing some study. I could be easier to implement than we first realize, especially with 2 PIC in the same basic family (18F).
HTH,
Steve
EDIT: Here is a new link for I2C Specifications. There is a link to a new .pdf file for the bus specs.