RX610 Group
26. ROM (Flash Memory for Code Storage)
R01UH0032EJ0120 Rev.1.20
Page 832 of 1006
Feb 20, 2013
26.2.8
Flash P/E Mode Entry Register (FENTRYR)
b7
b6
b5
b4
b3
b2
b1
b0
Value after reset:
0
0
0
0
0
0
0
0
FENTRYD
—
—
—
—
—
FENTRY1 FENTRY0
Address: 007F FFB2h
b15
b14
b13
b12
b11
b10
b9
b8
Value after reset:
0
0
0
0
0
0
0
0
FEKEY[7:0]
Bit
Symbol
Bit Name
Description
R/W
b0
FENTRY0
ROM P/E Mode Entry 0
0: ROM within 1 Mbyte
*
1
is in ROM read mode
1: ROM within 1 Mbyte
*
1
is in ROM P/E mode
R/W
b1
FENTRY1
*
1
ROM P/E Mode Entry 1
0: ROM more than 1 Mbyte is in ROM read mode
1: ROM more than 1 Mbyte is in ROM P/E mode
R/W
b6 to b2
Reserved
These bits are always read as 0. The write value should always be 0.
R/W
b7
FENTRYD
Data Flash P/E Mode
Entry
See section 27, Data Flash (Flash Memory for Data Storage).
R/W
b15 to b8 FEKEY[7:0]
Key Code
These bits enable or disable rewriting of the FENTRYD, FENTRY1
*
2
and FENTRY0 bits.
R/(W)
*
3
Notes: 1. ROM within 1 Mbyte: Address for reading, FFF0 0000h to FFFF FFFFh
Address for writing/erasing, 00F0 0000h to 00FF FFFFh
ROM more than 1 Mbyte: Address for reading, FFE0 0000h to FFEF FFFFh
Address for writing/erasing, 00E0 0000h to 00EF FFFFh
2. Cannot be used in a product whose ROM size is equal to or smaller than 1 Mbyte.
3. Write data is not retained.
FENTRYR is a register to place the ROM/data flash in P/E mode.
To place the ROM/data flash in P/E mode so that the FCU can accept commands, one of the FENTRYD, FENTRY1*,
and FENTRY0 bits must be set to 1. Note that if more than one of these bits is set to 1, the ILGLERR bit in FSTATR0 is
set and the FCU enters the command-locked state.
In case of access to the FENTRYR register to select ROM reading mode, read the FENTRYR register to confirm that the
new setting is in place before proceeding to read the ROM.
Only specific values written to the upper byte in word access are valid. Any other writing causes the register to be
initialized. Data written to the upper byte is not retained.
When on-chip ROM is disabled, the data read from FENTRYR is 0000h and writing is disabled.
FENTRYR is initialized by a reset, or when the FRESET bit in FRESETR is set to 1.
Note: * Cannot be used in a product whose ROM size is equal to or smaller than 1 Mbyte.