Q
What happens if the power supply falls during a program or erase of the
Flash/EE data
memory?
A
If the power supply falls below 2.7V during a Flash/EE program or erase
instruction then the core
cannot guarantee that the instruction will execute correctly.
Also, because the Flash/EE program or erase instruction takes much longer than
a typical
instruction, the time required to respond to interrupts can be greatly
increased if the interrupt
occurs during a flash/EE program or erase instruction.
For instance, if a power-supply-monitor (PSM) interrupt occurs during a
Flash/EE program or
erase instruction, it will only be processed after the instruction is complete.
In this way, the PSM
can be used to indicate when power has dropped below a specified threshold
during a Flash/EE
program or erase instruction, thereby indicating that the instruction may not
have executed
correctly