Datasheet

Section 19 Flash Memory
Rev. 3.00 Sep. 28, 2009 Page 552 of 710
REJ09B0384-0300
5. Determine whether erasure of the necessary blocks has completed.
If more than one block is to be erased, update the FEBS parameter and repeat steps 2 to 5.
Blocks that have already been erased can be erased again.
6. After erasure completes, clear FKEY and specify software protection.
If this LSI is restarted by a reset immediately after user MAT erasure has completed, secure
the reset period (period of RES = 0) of 100 μs which is longer than normal.
(4) Erasing and Programming Procedure in User Program Mode
By changing the on-chip RAM address of the download destination in FTDAR, the erasing
program and programming program can be downloaded to separate on-chip RAM areas.
Figure 19.13 shows a repeating procedure of erasing and programming.
Yes
No
1
1
Erasing program
download
Programming program
download
Erasing/ Programming
Start procedure program
Specify a download
destination of erasing
program by FTDAR
Download erasing program
Initialize erasing program
Specify a download
destination of programming
program by FTDAR
Download programming
program
Initialize programming
program
End procedure program
Erase relevant block
(execute erasing program)
Set FMPDR to
program relevant block
(execute programming
program)
Confirm operation
End ?
Figure 19.13 Repeating Procedure of Erasing and Programming
In the above procedure, download and initialization are performed only once at the beginning.
In this kind of operation, note the following: