Datasheet
Section 19 Flash Memory
Rev. 3.00 Sep. 28, 2009 Page 515 of 710
REJ09B0384-0300
19.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 19.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 19.5 Overview of User Procedure Program
1. Selection of on-chip program to be downloaded
For programming/erasing execution, the FLSHE bit in STCR 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 flash transfer destination address register (FTDAR).