English
Language : 

SH7059 Datasheet, PDF (747/1042 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
24. ROM (SH7058S)
(1) Download Control
The on-chip program is automatically downloaded by setting the SCO bit to 1. The on-chip RAM area to be
downloaded is the area as much as 3 Kbytes starting from the start address specified by FTDAR. For the address map
of the on-chip RAM, see figure 24.10.
The download control is set by using the programming/erasing interface registers. The return value is given by the
DPFR parameter.
(a) Download pass/fail result parameter (DPFR: one byte of start address of on-chip RAM specified by FTDAR)
This parameter indicates the return value of the download result. The value of this parameter can be used to
determine if downloading is executed or not. Since the confirmation whether the SCO bit is set to 1 is difficult, the
certain determination must be performed by setting one byte of the start address of the on-chip RAM area specified
by FTDAR to a value other than the return value of download (for example, H'FF) before the download start
(before setting the SCO bit to 1). For the checking method of download results, see section 24.5.2, User Program
Mode.
Bit :
7
6
5
4
3
2
1
0
0
0
0
0
0
SS
FK
SF
• Bits 7 to 3—Unused: Return 0.
• Bit 2—Source Select Error Detect (SS): The on-chip program which can be downloaded can be specified as only one
type. When more than two types of the program are selected, the program is not selected, or the program is selected
without mapping, an error occurs.
Bit 2
SS
Description
0
Download program can be selected normally
1
Download error occurs (Multi-selection or program which is not mapped is selected)
• Bit 1—Flash Key Register Error Detect (FK): Returns the check result whether the value of FKEY is set to H'A5.
Bit 1
FK
Description
0
FKEY setting is normal (FKEY = H'A5)
1
FKEY setting is abnormal (FKEY = value other than H'A5)
• Bit 0—Success/Fail (SF): Returns the result whether download has ended normally or not.
Bit 0
SF
Description
0
Downloading on-chip program has ended normally (no error)
1
Downloading on-chip program has ended abnormally (error occurs)
(2) Programming/Erasing Initialization
The on-chip programming/erasing program to be downloaded includes the initialization program.
The specified period pulse must be applied when programming or erasing. The specified pulse width is made by the
method in which wait loop is configured by the CPU instruction. The operating frequency of the CPU must be set.
Since the user branch function is supported, the user branch destination address must be set.
The initial program is set as a parameter of the programming/erasing program which has downloaded these settings.
Rev.3.00 Mar. 12, 2008 Page 657 of 948
REJ09B0177-0300