
R8C/3GM Group
31. Flash Memory
R01UH0284EJ0100 Rev.1.00
Aug 09, 2011
31.4.3
Flash Memory Control Register 1 (FMR1)
Notes:
1. To set the FMR13 bit to 1, first write 0 and then 1 immediately. Disable interrupts and DTC activation between
writing 0 and writing 1.
2. To set this bit to 0, first write 1 and then 0 immediately. Disable interrupts and DTC activation between writing 1
and writing 0.
3. This bit is set to 0 when the FMR01 bit in the FMR0 register is set to 0 (CPU rewrite mode disabled).
FMR13 Bit (Lock Bit Disable Select Bit)
When the FMR13 bit is set to 1 (lock bit disabled), the lock bit is disabled. When the FMR13 bit is set to 0, the
The FMR13 bit enables the lock bit function only and the lock bit data does not change. However, when a block
erase command is executed while the FMR13 bit is set to 1, the lock bit data set to 0 (locked) changes to 1 (not
locked) after erasure completes.
[Conditions for setting to 0]
The FMR13 bit is set to 0 when one of the following conditions is met.
Completion of the program command
Completion of the erase command
Generation of a command sequence error
Transition to erase-suspend
If the FMR01 bit in the FMR0 register is set to 0 (CPU rewrite mode disabled).
If the FMSTP bit in the FMR0 register is set to 1 (flash memory stops).
If the CMDRST bit in the FMR0 register is set to 1 (erasure/writing stopped).
[Condition for setting to 1]
Set to 1 by a program.
Address 01B5h
Bit
b7b6b5
b4b3b2
b1b0
Symbol
After Reset
000
00
Bit
Symbol
Bit Name
Function
R/W
b0
—
Nothing is assigned. If necessary, set to 0. When read, the content is 0.
—
b1
—
b2
—
b3
FMR13
Lock bit disable select bit
(1)0: Lock bit enabled
1: Lock bit disabled
R/W
b4
FMR14
Data flash block A rewrite
0: Rewrite enabled (software command acceptable)
1: Rewrite disabled (software command not acceptable,
no error occurred)
R/W
b5
FMR15
Data flash block B rewrite
0: Rewrite enabled (software command acceptable)
1: Rewrite disabled (software command not acceptable,
no error occurred)
R/W
b6
FMR16
Data flash block C rewrite
0: Rewrite enabled (software command acceptable)
1: Rewrite disabled (software command not acceptable,
no error occurred)
R/W
b7
FMR17
Data flash block D rewrite
0: Rewrite enabled (software command acceptable)
1: Rewrite disabled (software command not acceptable,
no error occurred)
R/W