Electronics > Microcontrollers
Data EEPROM on a PIC12F675
(1/1)
deephaven:
It would be convenient for me to use the Data EEPROM to save some initialisation data in the EEPROM section of the PIC12F675. However, Microchip recommends using the FLASH program memory for such storage which I'd prefer not to do. They talk about the need to do an "array refresh" in order to use the EEPROM but can't see any info on what that entails. Can anyone enlighten me?
This is from their datasheet:
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 specifications D120 or D120A. 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.
Bored@Work:
http://www.microchip.com/forums/tm.aspx?m=59054&mpage=1&settheme=Mobile
deephaven:
--- Quote from: BoredAtWork on December 22, 2011, 03:57:15 pm ---http://www.microchip.com/forums/tm.aspx?m=59054&mpage=1&settheme=Mobile
--- End quote ---
Many thanks, I did do a search on that very forum, but missed that thread. Sounds like it will be ok as long I don't have frequently changing data updating the EEPROM as well.
Graham1904:
OOI I use the PIC's own EEPROM all the time for such configuration data. I even put ASCII text in the EEPROM next to the variable to remind me in the future what the variable is there for :)
deephaven:
--- Quote from: Graham1904 on January 22, 2012, 10:06:53 am ---OOI I use the PIC's own EEPROM all the time for such configuration data. I even put ASCII text in the EEPROM next to the variable to remind me in the future what the variable is there for :)
--- End quote ---
Sounds like a good scheme! My requirement is as minimalist as you could get, I only need to save the state of one bit!
Navigation
[0] Message Index
Go to full version