Datasheet

Section 20 Flash Memory (0.18-μm F-ZTAT Version)
Rev.6.00 Mar. 18, 2009 Page 724 of 980
REJ09B0050-0600
20.1.5 Programming/Erasing Interface
Programming/erasing is executed by downloading the on-chip program to the on-chip RAM and
specifying the program address/data and erase block by using the interface register/parameter.
The procedure program is made by the user in user program mode and user boot mode. An
overview of the procedure is given as follows. For details, see section 20.4.2, User Program Mode.
Initialization execution
(downloaded program execution)
Select on-chip program to be
downloaded and
specify the destination.
Start user procedure
program for programming/erasing.
End user procedure
program
Yes
Programming (in 128-byte units)
or erasing (in one-block units)
(downloaded program execution)
Download on-chip program
by setting FKEY and SCO bits.
No
Programming/erasing
completed?
Figure 20.5 Overview of User Procedure Program
1. Selection of on-chip program to be downloaded
For programming/erasing execution, the FLSHE bit must be set to 1 to transition to user
program mode.
This LSI has programming/erasing programs which can be downloaded to the on-chip RAM.
The on-chip program to be downloaded is selected by setting the corresponding bits in the
programming/erasing interface register. The address of the programming destination is
specified by the FTDAR.