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

Error while writing/reading I2C EEPROM

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



Joined: 30 Jul 2007
Posts: 112
Location: Moscow, Russia

View user's profile Send private message

Error while writing/reading I2C EEPROM
PostPosted: Thu Aug 09, 2007 2:09 am     Reply with quote

When i write the int number into eeprom and then read it, it is not the same. For ex. when i write 0 - i read 0, when i write 1, i read 127, when i write 2 or 3 i read 128, when i write 4 - i read 129... when i write 25 - i read 134. What is wrong?
i use standart 2464.c driver for 24LC64 and my functions are:

#define ADR_TMODE 5
int tmode

write_ext_eeprom(ADR_TMODE, tmode);

tmode=read_ext_eeprom(ADR_TMODE);
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