
R8C/3GM Group
31. Flash Memory
R01UH0284EJ0100 Rev.1.00
Aug 09, 2011
31.4.4
Flash Memory Control Register 2 (FMR2)
Notes:
1. To set this bit to 1, first write 0 and then 1 immediately. Disable interrupts and DTC activation between writing 0
and writing 1.
2. To set the FMR21 bit to 0 (erase restart), set it when the FMR01 bit in the FMR0 register is set to 1 (CPU rewrite
mode enabled).
3. Set the FMR27 bit to 1 after setting either of the following:
Set the CPU clock to the low-speed on-chip oscillator clock divided by 4, 8, or 16.
Set the CPU clock to the XCIN clock divided by 1 (no division), 2, 4, or 8.
Enter wait mode or stop mode after setting the FMR27 bit to 0 (low-current-consumption read mode disabled).
Do not enter wait mode or stop mode while the FMR27 bit is 1 (low-current-consumption read mode enabled).
FMR20 Bit (Erase-Suspend Enable Bit)
When the FMR20 bit is set to 1 (enabled), the erase-suspend function is enabled.
FMR21 Bit (Erase-Suspend Request Bit)
When the FMR21 bit is set to 1, erase-suspend mode is entered. If the FMR22 bit is set to 1 (erase-suspend
request enabled by interrupt request), the FMR21 bit is automatically set to 1 (erase-suspend request) when an
interrupt request for the enabled interrupt is generated, and erase-suspend mode is entered. To restart auto-
erasure, set the FMR21 bit to 0 (erase restart).
[Condition for setting to 0]
Set to 0 by a program.
[Conditions for setting to 1]
When the FMR22 bit is set to 1 (erase-suspend request enabled by interrupt request) at the time an interrupt is
generated.
Set to 1 by a program.
Address 01B6h
Bit
b7b6b5
b4b3b2
b1b0
Symbol
After Reset
000
00
Bit
Symbol
Bit Name
Function
R/W
b0
FMR20
Erase-suspend enable bit
(1)0: Erase-suspend disabled
1: Erase-suspend enabled
R/W
b1
FMR21
Erase-suspend request bit
(2)0: Erase restart
1: Erase-suspend request
R/W
b2
FMR22
Interrupt request suspend
0: Erase-suspend request disabled by interrupt request
1: Erase-suspend request enabled by interrupt request
R/W
b3
—
Nothing is assigned. If necessary, set to 0. When read, the content is 0.
—
b4
—
Reserved bits
Set to 0.
R/W
b5
—
b6
—
b7
FMR27
Low-current-consumption
0: Low-current-consumption read mode disabled
1: Low-current-consumption read mode enabled
R/W