Quote:
Originally Posted by Donut
For those of you using EEPROM; what's the advantage in storing values in there rather than in ROM data?
|
EDIT:Ignore this, and read page 15 of the MCC18 user's guide instead. (Foot, meet mouth...)
IIRC, when you declare a variable as "rom", it is still stored in EEPROM, but the location is allocated by the linker. When you use Kevin's library, you choose the location itself. Data is never stored in the program memory (flash). Also, "rom" variables are reset to default values when the program is downloaded.
Meaning you probably shouldn't be mixing the "rom" keyword and Kevin's code.
If you're really interested in the details, experiment. Look at the list file after playing with a rom variable. And yes, you can store to a rom variable.