How to use Flash as EEPROM? What care need to be taken?

716 views Asked by At

What are the steps to use internal Flash of the micro-controller as EEPROM instead of using external EEPROM. What cares need to be taken?

1

There are 1 answers

0
Amit Tandel On BEST ANSWER

Thanks for the efforts @jszakmeister.

I googled & found following answers. Just writing here so that if anyone need, he/she can refer.

  1. The FLASH memory is typically organized in pages (1 KByte, 2 KByte, 4 KByte, etc). Usually the full page needs to be erased first before writing in. This takes both time and energy. If one wants to do this while the microcontroller is shutting down because of a power loss, it may be critical.
  2. Interrupts need to be disabled for FLASH programming in many microcontrollers which increases the interrupt latency time.
  3. The number of erase cycles are less for internal FLASH memory than for EEPROM. FLASH(10k-100k cycles) whereas EEPROM (500k-1M cycles).