I want ot use Flash as EEPROM. The whole flash is divided as 512 byte pages. So if the main program is loaded in a particular section of memory, and i want to write my data in another section, am i able to do that? I think this possible because at a time a particular 512 byte can be erased, without disturbing the whole memory. And i am using the MC9S08AC60. But i don,t know how to do that. Does anyone have any idea how to do this? Please help.
Hello, and welcome to the forum.
This is a frequently addressed topic within this forum. A recent thread about the programming process is here. Maybe this will help. But use the forum search engine to find further threads on this topic. However, you will first need to become familiar with the flash erase and programming processes, as described in the datasheet or reference manual, within the "Memory" section.
The simplest situation is where the non-volatile data sector erase occurs sufficiently infrequently that flash "wear out" is not an issue. For more frequent update of the non-volatile data, much more complex "wear spreading" techniques neen to be adopted.
Regards,
Mac