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

EEPROM confusion

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



Joined: 15 Sep 2003
Posts: 226

View user's profile Send private message

EEPROM confusion
PostPosted: Fri Dec 26, 2003 9:30 pm     Reply with quote

From the PIC18F252 data sheet.
I simply do not understand this. On the one hand it says data EEPROM should not be used to store data that changes infrequenntly such as constants ID's etc. It then goes on to explain If data EEPROM is used for such variables then a referesh should be performed. OK so far.

Further down is a Note:

Note: If data EEPROM is only used to store constants and/or data that changes
rarely, an array refresh is likely not required. See specification D124

Does this make sense... Please explain it to me, slowly, I don't read that fast..... Perhaps the key words here are "only used"

from the data sheet:
6.8 Using the Data EEPROM
The data EEPROM is a high endurance, byte addressable array that has been
optimized for the storage of frequently changing information (e.g., program
variables or other data that are updated often). Frequently changing values
will typically be updated more often than specification D124.

If this is not the case, an array refresh must be performed. For this reason,
variables that change infrequently (such as constants, IDs, calibration, etc.)
should be stored in FLASH program memory.

A simple data EEPROM refresh routine is shown in Example 6-3.

here the refresh code example:

Note: If data EEPROM is only used to store constants and/or data that changes
rarely, an array refresh is likely not required. See specification D124
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Dec 26, 2003 11:14 pm     Reply with quote

There was a discussion on that issue in this post:
http://www.ccsinfo.com/forum/viewtopic.php?t=3673
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