Datasheet
Section 19 Flash Memory
Rev. 3.00 Sep. 28, 2009 Page 543 of 710
REJ09B0384-0300
19.4.2 User Program Mode
The user MAT can be programmed/erased in user program mode. (The user boot MAT cannot be
programmed/erased.)
Programming/erasing is executed by downloading the program in the microcomputer.
The overview flow is shown in figure 19.9.
High voltage is applied to internal flash memory during the programming/erasing processing.
Therefore, transition to reset or hardware standby must not be executed. Doing so may damage or
destroy flash memory. If reset is executed accidentally, reset must be released after the reset input
period of 100 μs which is longer than normal.
When programming,
program data is prepared
Programming/erasing
procedure program is
transferred to the on-chip
RAM and executed
Programming/erasing
start
Programming/erasing
end
Make sure that the program data will not overlap the download
destination specified by FTDAR.
The FWE bit is set to 1 by inputting a high level signal to the FWE
pin.
Programming/erasing is executed only in the on-chip RAM.
However, if program data is in a consecutive area and can be
accessed by the MOV.B instruction of the CPU like RAM or
ROM, the program data can be in an external space.
After programming/erasing is finished, input a low level signal to
the FWE pin and transfer to the hardware protection state.
1.
2.
3.
4.
Figure 19.9 Programming/Erasing Overview Flow