R01UH0822EJ0100 Rev.1.00
Page 913 of 1041
Jul 31, 2019
RX13T Group
31. Flash Memory (FLASH)
31.4.5
Flash P/E Mode Control Register (FPMCR)
The FPMCR register is used to set the operating mode of the flash memory.
This register is protected. Set its value using the procedure to unlock protection. For details, refer to
Protection Unlock Register (FPR)
.
When entering discharge mode 2 or ROM P/E mode, or during either of these modes, an instruction must be executed on
the RAM.
FMS0, FMS1, and FMS2 Bits (Flash Operating Mode Select 0 to Flash Operating Mode Select 2)
These bits are used to set the operating mode of the flash memory.
[Transition from read mode to ROM P/E mode]
Set the FMS2 bit = 0, the FMS1 bit = 1, the FMS0 bit = 1, and the RPDIS bit = 0.
Wait for ROM mode transition wait time 1 (tDIS, refer to
section 32, Electrical Characteristics
).
Set the FMS2 bit = 1, the FMS1 bit = 1, the FMS0 bit = 1, and the RPDIS bit = 0.
Set the FMS2 bit = 1, the FMS1 bit = 0, the FMS0 bit = 1, and the RPDIS bit = 0.
Wait for ROM mode transition wait time 2 (tMS, refer to
section 32, Electrical Characteristics
[Transition from ROM P/E mode to read mode]
Set the FMS2 bit = 1, the FMS1 bit = 1, the FMS0 bit = 1, and the RPDIS bit = 0.
Wait for ROM mode transition wait time 1 (tDIS, refer to
section 32, Electrical Characteristics
).
Set the FMS2 bit = 0, the FMS1 bit = 1, the FMS0 bit = 1, and the RPDIS bit = 0.
Set the FMS2 bit = 0, the FMS1 bit = 0, the FMS0 bit = 0, and the RPDIS bit = 1.
Wait for ROM mode transition wait time 2 (tMS, refer to
section 32, Electrical Characteristics
[Transition from read mode to E2 DataFlash P/E mode]
Set the FMS2 bit = 0, the FMS1 bit = 1, the FMS0 bit = 0, and the RPDIS bit = 0.
[Transition from E2 DataFlash P/E mode to read mode]
Set the FMS2 bit = 0, the FMS1 bit = 0, the FMS0 bit = 0, and the RPDIS bit = 1.
Address(es): FLASH.FPMCR 007F FF80h
b7
b6
b5
b4
b3
b2
b1
b0
FMS2
LVPE
—
FMS1 RPDIS
—
FMS0
—
Value after reset:
0
0
0
0
1
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b0
—
Reserved
This bit is read as 0. The write value should be 0.
R/W
b1
Flash Operating Mode Select 0
FMS2 FMS1 FMS0
0
0
0: ROM/E2 DataFlash read mode
0
1
0: E2 DataFlash P/E mode
0
1
1: Discharge mode 1
1
0
1: ROM P/E mode
1
1
1: Discharge mode 2
Settings other than above are prohibited.
R/W
b2
—
Reserved
This bit is read as 0. The write value should be 0.
R/W
b3
ROM P/E Disable
0: ROM programming/erasure enabled
1: ROM programming/erasure disabled
R/W
b4
Flash Operating Mode Select 1
See the FMS0 bit.
R/W
b5
—
Reserved
This bit is read as 0. The write value should be 0.
R/W
b6
Low-Voltage P/E Mode Enable
0: Low-voltage P/E mode disabled
1: Low-voltage P/E mode enabled
R/W
b7
Flash Operating Mode Select 2
See the FMS0 bit.
R/W