cancel
Showing results for 
Search instead for 
Did you mean: 

regarding EEPROM emulator code

babidesai123
Associate II
Posted on May 13, 2003 at 16:37

regarding EEPROM emulator code

2 REPLIES 2
babidesai123
Associate II
Posted on May 17, 2011 at 11:54

Hello,

I tried to go through the Eeprom emulator code.

In that i found that.with that one byte programming is possible.

But according to ST 3233 data sheet.''THE MCU MAY ERASE FLASH MEMORY ALL AT ONCE OR BY-SECTOR,BUT NOT BYTE-BY BYTE

I would like to know that with this code can we overwrite the previously programmed byte?
joseph2399
Associate II
Posted on May 17, 2011 at 11:54

You can always program one byte at a time, if the memory loction that you want to write to is blank(0xFF). However, if a memory is already written to, you must erase it first before you can write to it again. You can not just erase one byte only, you must erase the whole sector. The EEPROM emulation code uses a software linked-list data storage algorithm to emulate the EEPROM function. Please see the attached code example.