Datasheet
Section 25 Flash Memory
Rev. 2.00 Aug. 20, 2008 Page 961 of 1198
REJ09B0403-0200
15. After programming finishes, clear FKEY and specify software protection.
If this LSI is restarted by a reset immediately after user MAT programming has finished,
secure the reset period (period of RES = 0) of 100 ยตs which is longer than normal.
(3) Erasing Procedure in User Program Mode
The procedures for download, initialization, and erasing are shown in figure 25.14.
Set FKEY to H'A5
Set SCO to 1 and
execute download
DPFR = 0?
Yes
No
Download error processing
Set the FPEFEQ
parameter
Yes
End erasing
procedure program
FPFR = 0 ?
No
Initialization error processing
Disable interrupts and
bus master operation
other than CPU
Clear FKEY to 0
Set FEBS parameter
Yes
FPFR = 0 ?
No
Clear FKEY and erasing
error processing
Yes
Required block
erasing is
completed?
No
Set FKEY to H'5A
Clear FKEY to 0
1.
2.
3.
4.
5.
6.
1
1
Download
Initialization
Erasing
Initialization
JSR FTDAR setting
+ 32
Erasing
JSR
FTDAR setting
+ 16
Select on-chip program
to be downloaded and
specify download
destination by FTDAR
Start erasing procedure
program
Figure 25.14 Erasing Procedure
The procedure program must be executed in an area other than the user MAT to be erased.
Especially the part where the SCO bit in FCCS is set to 1 for downloading must be executed in the
on-chip RAM.
The area that can be executed in the steps of the user procedure program (on-chip RAM, user
MAT, and external space) is shown in section 25.4.5, Procedure Program and Storable Area for
Programming Data.










