View previous topic :: View next topic |
Author |
Message |
WASSIM
Joined: 01 Apr 2008 Posts: 5
|
I2C pic slave & external eeprom |
Posted: Mon Apr 07, 2008 10:38 am |
|
|
i connected, two PIC16F877 and an eeprom by the I2C bus.
i need to save an array from the pic slave to an external eeprom,
so i save the array in the pic master eeprom, then i write in eeprom. this take much time for the process,
so can I write directly from the pic slave to the eeprom?? |
|
|
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
|
|
Posted: Mon Apr 07, 2008 11:29 am |
|
|
If you have enough RAM in the master PIC, I would read all of the data, from the slave PIC, and place it in RAM. Then, I would write it to the external eeprom. It would take much longer if you tried to bounce back and forth between the slave PIC and the external eeprom.
Ronald |
|
|
Matro Guest
|
|
Posted: Mon Apr 07, 2008 11:35 am |
|
|
Not in this configuration but if your project allow the next way, you can use both of your PICs in master mode and have the bus working in multi-master mode.
Matro |
|
|
|