R8C/1A Group, R8C/1B Group
18. Flash Memory
Rev.1.30
Dec 08, 2006
Page 257 of 315
REJ09B0252-0130
Figure 18.7
FMR4 Register
Flash Memory Control Register 4
Symbol
Address
After Reset
FMR4
01B3h
01000000b
Bit Symbol
Bit Name
Function
RW
NOTES :
1.
2.
3.
4.
To set this bit to 1, set it to 1 immediately after setting it first to 0. Do not generate an interrupt betw een setting the bit
to 0 and setting it to 1.
This bit is enabled w hen the FMR40 bit is set to 1 (enable) and it can be w ritten to during the period betw een issuing
an erase command and completing the erase. (This bit is set to 0 during the periods other than the above.)
In EW0 mode, it can be set to 0 and 1 by a program.
In EW1 mode, it is automatically set to 1 if a maskable interrupt is generated during an erase
operation w hile the FMR40 bit is set to 1. Do not set this bit to 1 by a program (0 can be w ritten).
b3 b2
Set to 0.
b1 b0
FMR41
—
(b5)
0
FMR40
FMR42
FMR44
b7 b6 b5 b4
RW
RW
Erase-suspend function
enable bit
(1)
0 : Disables reading.
1 : Enables reading.
Reserved bits
0 : Disable
1 : Enable
Erase-suspend request bit
(2)
0 : Erase restart
1 : Erase-suspend request
RO
RO
FMR46
Program-suspend request bit
(3)
0 : Program restart
1 : Program-suspend request
RW
FMR43
Erase command flag
0 : Erase not executed
1 : Erase execution in progress
RO
Use this mode only in low -speed on-chip oscillator mode.
Program command flag
0 : Program not executed
1 : Program execution in progress
RO
The FMR42 bit is enabled only w hen the FMR40 bit is set to 1 (enable) and programming to the FMR42 bit is enabled
until auto-programming ends after a program command is generated. (This bit is set to 0 during periods other than the
above.)
In EW0 mode, 0 or 1 can be programmed to the FMR42 bit by a program.
In EW1 mode, the FMR42 bit is automatically set to 1 by generating a maskable interrupt during auto-programming
w hen the FMR40 bit is set to 1. 1 cannot be w ritten to the FMR42 bit by a program.
FMR47
Read status flag
RW
Low -pow er consumption read
mode enable bit
(1, 4)
0 : Disable
1 : Enable