English
Language : 

SH7059 Datasheet, PDF (822/1042 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
25. ROM (SH7059)
25.2.6 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 registers/parameters.
The procedure program is made by the user in user program mode and user boot mode. The overview of the procedure is
as follows. For details, see section 25.5.2, User Program Mode.
Start user procedure
program for
programming/erasing.
Select on-chip program
to be downloaded and
set download destination
Download on-chip
program by setting VBR,
FKEY, and SCO bits.
Initialization execution
(on-chip program execution)
Programming (in 128-byte
units) or erasing (in
one-block units)
(on-chip program execution)
No
Programming/
erasing
completed?
Yes
End user procedure
program
Figure 25.5 Overview of User Procedure Program
(1) Selection of On-Chip Program to be Downloaded and Setting of Download Destination
This LSI has programming/erasing programs and they 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 registers. The
download destination can be specified by FTDAR.
(2) Download of On-Chip Program
The on-chip program is automatically downloaded by clearing VBR of the CPU to H'00000000 and then setting the
SCO bit in the flash key code register (FKEY) and the flash code control and status register (FCCS), which are
programming/erasing interface registers.
The user MAT is replaced to the embedded program storage area when downloading. Since the flash memory cannot
be read when programming/erasing, the procedure program, which is working from download to completion of
programming/erasing, must be executed in a space other than the flash memory to be programmed/erased (for
example, on-chip RAM).
Since the result of download is returned to the programming/erasing interface parameters, whether the normal
download is executed or not can be confirmed.
Note that VBR can be changed after download is completed.
Rev.3.00 Mar. 12, 2008 Page 732 of 948
REJ09B0177-0300