Hans Wedemeyer
Joined: 15 Sep 2003 Posts: 226
|
EEPROM confusion |
Posted: Fri Dec 26, 2003 9:30 pm |
|
|
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 |
|