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 CCS Technical Support

How to access the 24LC256 simeltaneously using 2 pics ?

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



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

How to access the 24LC256 simeltaneously using 2 pics ?
PostPosted: Tue Jul 31, 2007 8:02 am     Reply with quote

Hi,

Is it possible to access a memory like the 24LC256 from two PICs.

I need to implement a system that logs data and also sends the data to a PC simultaneously (or almost)....

thanks
arunb
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Tue Jul 31, 2007 8:10 am     Reply with quote

I have done it with a I2C RIC FM24C04 Fram.
It was used by 2 16F877a,within 6" of each other, running off the same clock and power.

I think I would be possible with any I2C.

I had an extra pin to both pics with a pull-up to indicate
the chip was in use. ie: pull the pin down before using the eprom.

Don't "double up" the pull-up resisters. 1 on sda and 1 on scl should do.
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Tue Jul 31, 2007 8:46 am     Reply with quote

You're, simply, talking about a multi-master system. Each master will be able to talk to any I2C device on the bus, just not at the same time. They'll each need to take control of the I2C bus and take turns. Read up on how multi-master setups work and have fun experimenting.

Ronald
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