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

Reserve EEPROM & Write data after 1st time power on

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



Joined: 05 Mar 2007
Posts: 1

View user's profile Send private message

Reserve EEPROM & Write data after 1st time power on
PostPosted: Mon Mar 05, 2007 4:07 am     Reply with quote

How to reserve eeprom to store some calibration data
How to make sure reserved eeprom is empty before write any data after 1st time power on
Ttelmah
Guest







PostPosted: Mon Mar 05, 2007 10:44 am     Reply with quote

Since nothing except your code talks to the EEPROM, it is all 'reserved', till you start to change it.
You can preset values in it during programming, using the #ROM directive. It is at address 0x2100, on 16 chips, and 0xF00000 on 18 chips.
The normal practice, would be to preload a 'marker' byte, that says that the area is not yet programmed. Perhaps something like 0X55, which you change to 0xAA once you have saved the required calibration.

Best Wishes
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