English
Language : 

SH7059 Datasheet, PDF (828/1042 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
25. ROM (SH7059)
Bit 0
EPVB
0
1
Description
On-chip erasing program is not selected
[Clearing condition] When transfer is completed
On-chip erasing program is selected
(Initial value)
(4) Flash Key Code Register (FKEY)
FKEY is a register for software protection that enables download of the on-chip program and programming/erasing of
flash memory. Before setting the SCO bit to 1 in order to download the on-chip program or executing the downloaded
programming/erasing program, these processings cannot be executed if the key code is not written.
Bit :
7
6
5
4
3
2
1
0
K7
K6
K5
K4
K3
K2
K1
K0
Initial value :
0
0
0
0
0
0
0
0
R/W :
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
• Bits 7 to 0—Key Code (K7 to K0): Only when H'A5 is written, writing to the SCO bit is valid. When a value other
than H'A5 is written to FKEY, 1 cannot be written to the SCO bit. Therefore downloading to the on-chip RAM cannot
be executed.
Only when H'5A is written, programming/erasing of flash memory can be executed. Even if the on-chip
programming/erasing program is executed, flash memory cannot be programmed or erased when a value other than H'5A
is written to FKEY.
Bits 7 to 0
K7 to K0
H'A5
H'5A
H'00
Description
Writing to the SCO bit is enabled (The SCO bit cannot be set by a value other than H'A5.)
Programming/erasing is enabled (A value other than H'A5 enables software protection state.)
Initial value
(5) Flash MAT Select Register (FMATS)
FMATS specifies whether user MAT or user boot MAT is selected.
Bit :
Initial value :
Initial value :
R/W :
7
MS7
0
1
R/W
6
MS6
0
0
R/W
5
MS5
0
1
R/W
4
MS4
0
0
R/W
3
MS3
0
1
R/W
2
MS2
0
0
R/W
1
MS1
0
1
R/W
0
MS0
0 (When not in
user boot mode)
0 (When in
R/W user boot mode)
• Bits 7 to 0—MAT Select (MS7 to MS0): These bits are in user-MAT selection state when a value other than H'AA is
written and in user-boot-MAT selection state when H'AA is written.
The MAT is switched by writing a value in FMATS.
When the MAT is switched, follow section 25.8.1, Switching between User MAT and User Boot MAT. (The user boot
MAT cannot be programmed in user programming mode if user boot MAT is selected by FMATS. The user boot MAT
must be programmed in boot mode or in programmer mode.)
Rev.3.00 Mar. 12, 2008 Page 738 of 948
REJ09B0177-0300