Section 17 Flash Memory (0.18-(m F-ZTAT Version)
Rev. 3.00 Mar. 14, 2006 Page 610 of 804
REJ09B0104-0300
(3)
Erasing Procedure in User Program Mode
The procedures for download of the on-chip program, initialization, and erasing are shown in
figure 17.12.
Set FKEY to H'A5
Set SCO to 1 after initializing
VBR 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.
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
1
1
Figure 17.12 Erasing Procedure in User Program Mode
electronic components distributor