R01UH0822EJ0100 Rev.1.00
Page 912 of 1041
Jul 31, 2019
RX13T Group
31. Flash Memory (FLASH)
31.4.3
Protection Unlock Register (FPR)
This write-only register is used to protect the FPMCR register from being rewritten inadvertently when the CPU runs out
of control. Writing to the FPMCR register is enabled only when the following procedure is used to access the register.
Procedure to unlock protection
(1) Write A5h to the FPR register.
(2) Write a set value to the FPMCR register.
(3) Write the inverted set value to the FPMCR register.
(4) Write a set value to the FPMCR register again.
When a procedure other than the above is used to write data, the FPSR.PERR flag is set to 1.
31.4.4
Protection Unlock Status Register (FPSR)
PERR Flag (Protect Error Flag)
When the FPMCR register is not accessed as described in the procedure to unlock protection, data is not written to the
register and this flag is set to 1.
[Setting condition]
The FPMCR register is not accessed as described in the procedure to unlock protection.
[Clearing condition]
The FPMCR register is accessed according to the procedure to unlock protection described in
Protection Unlock Register (FPR)
.
Address(es): FLASH.FPR 007F C0C0h
b7
b6
b5
b4
b3
b2
b1
b0
Value after reset:
x
x
x
x
x
x
x
x
x: Undefined
Address(es): FLASH.FPSR 007F C0C1h
b7
b6
b5
b4
b3
b2
b1
b0
—
—
—
—
—
—
—
PERR
Value after reset:
0
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b0
Protect Error Flag
0: No error
1: An error occurs.
R
b7 to b1
—
Reserved
These bits are read as 0.
R