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 R/W more i2c mem on the same line?

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



Joined: 07 Sep 2003
Posts: 32

View user's profile Send private message

How to R/W more i2c mem on the same line?
PostPosted: Sat Dec 27, 2003 8:17 am     Reply with quote

Hi there,

I need to use 2 i2c memories on the same bus line and i referenced i2c codes in 24c128.c I can totally use one i2c mem but two i2c mem; i have no idea how to use it.One friend said that i need to configure i2c via sending addresses before R/W.I use functions in 24cxxx.c that :
write_ext_eeprom and read_ext_eeprom.Should i rewrite them all? If so,
how? How to configure 2 or more memories to R/W?

Thanks.

Analyzer
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Sat Dec 27, 2003 9:43 am     Reply with quote

I think we gave you the answer here:

http://www.ccsinfo.com/forum/viewtopic.php?t=17891


In your test code, you referenced 24c128.c?? Are you using a 24c128 or a 24lc256? Your orginal post said 24LC256. It makes a difference. The 2 devices are not addressed the same.
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