Yes! There is a risk of collision, the more times you read and write the bigger the risk.
I think think one way to fix this is with one extra line between the PICs. Call it 'Enable EE2' and make the PIC that wants to access the EE2 pull it high or low before it accesses the EE2 and keep it high/low untill you are done. When it is not used it is regarded as an input in the TRIS setting. Of course before you do this you check that it is not in an "enabled" state. There are many more ways of doing this, I bet it can be solved with a software function also by checking the SDA and SCL for traffic but if you have extra pins this is the easiest way.
Bookmarks