Section 18 ROM
Program/erase?
Transfer user program/erase control
program to RAM
Branch to user program/erase control
program in RAM
Execute user program/erase control
program (flash memory rewrite)
Branch to flash memory application
Do not constantly apply a high level to the FWE pin. Only apply a high level to the FWE pin
Note: *
when programming or erasing the flash memory. To prevent excessive programming or excessive
erasing, while a high level is being applied to the FWE pin, activate the watchdog timer in case of
handling CPU runaways.
Figure 18.6 Programming/Erasing Flowchart Example in User Program Mode
Rev. 6.00 Mar 15, 2006 page 470 of 570
REJ09B0211-0600
Reset-start
No
Yes
FWE = high *
Clear FWE
program
Branch to flash memory application
program