depending of the EEPROM you're using...
If you use an 93C serie(Microwire), everything will be simple.You must isolate EEPROM pins with diodes(CS,CLK,DI)... DO pin will be connected directly to each PIC.
Every PIC must CHECK at least CS PIN of the EEPROM to determine if he's available. OR you can use one PIN of every pic as a BUSY line too.
But for I2C.... Since pins are input/output... will be different. Can use the same idea of the BUSY line and connecte every PIC pins to SDA & SCL of EEPROM too without anything. The only thing you have to do, finish acces to EEPROM by a I2CREAD to make PIC PINS as input.. that way, no PIC will shut down EEPROM pins to ground.
Some I2C EEPROM (like 24lc64) have the ability to be select by Software chip select. You must set A0-A2 EEPROM pins and acces to them by a specific Control Word. BUT I'M REALLY NOT SURE it will work when changing these pin in run-time...
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks