Author Topic: Data EEPROM on a PIC12F675  (Read 4123 times)

0 Members and 1 Guest are viewing this topic.

Offline deephaven

  • Frequent Contributor
  • **
  • Posts: 783
  • Country: gb
  • Civilization is just one big bootstrap
    • Deephaven Ltd
Data EEPROM on a PIC12F675
« on: December 22, 2011, 10:35:56 am »
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.
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline deephaven

  • Frequent Contributor
  • **
  • Posts: 783
  • Country: gb
  • Civilization is just one big bootstrap
    • Deephaven Ltd
Re: Data EEPROM on a PIC12F675
« Reply #2 on: December 22, 2011, 04:15:41 pm »
http://www.microchip.com/forums/tm.aspx?m=59054&mpage=1&settheme=Mobile

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.
 

Offline Graham1904

  • Contributor
  • Posts: 7
Re: Data EEPROM on a PIC12F675
« Reply #3 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 :)
 

Offline deephaven

  • Frequent Contributor
  • **
  • Posts: 783
  • Country: gb
  • Civilization is just one big bootstrap
    • Deephaven Ltd
Re: Data EEPROM on a PIC12F675
« Reply #4 on: January 22, 2012, 04:04:21 pm »
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 :)

Sounds like a good scheme! My requirement is as minimalist as you could get, I only need to save the state of one bit!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf