679
Figure 20-9 shows the procedure for executing the program/erase control program when
transferred to on-chip RAM.
Clear FWE
FWE = high*
Branch to flash memory application
program
Branch to program/erase control
program in RAM area
Execute program/erase control
program (flash memory rewriting)
Transfer program/erase control
program to RAM
MD2, MD1, MD0 = 110, 111
Reset-start
Write the FWE assessment program and 
transfer program (and the program/erase 
control program if necessary) beforehand

Note: * Do not apply a constant high level to the FWE pin. Apply a high level to the FWE pin
only when the flash memory is programmed or erased. Also, while a high level is
applied to the FWE pin, the watchdog timer should be activated to prevent
overprogramming or overerasing due to program runaway, etc.
 For more information on FWE application/cancel, refer to section 20.13, Flash
Memory Programming and Erasing Precautions.
Figure 20-9 User Program Mode Execution Procedure