CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

I2C pic slave & external eeprom

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
WASSIM



Joined: 01 Apr 2008
Posts: 5

View user's profile Send private message MSN Messenger

I2C pic slave & external eeprom
PostPosted: Mon Apr 07, 2008 10:38 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Apr 07, 2008 11:29 am     Reply with quote

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







PostPosted: Mon Apr 07, 2008 11:35 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group