R8C/36T-A Group
26. Flash Memory
Under development Preliminary document
Specifications in this document are tentative and subject to change.
R01UH0240EJ0010 Rev.0.10
Page 631 of 728
Aug 05, 2011
26.3.3
Flash Memory Control Register 1 (FMR1)
Notes:
1. Do not set the FMR11 bit to 1 in stop mode, in low-power-consumption wait mode, or when low-current-
consumption read mode is enabled.
2. 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.
3. To set this bit to 0, first write 1 and then 0 immediately. Disable interrupts and DTC activation between writing 1
and writing 0.
4. This bit is set to 0 when the FMR01 bit in the FMR0 register is set to 0 (CPU rewrite mode disabled).
Setting the FMR11 bit to 1 allows the flash memory to operate even during wait mode. To operate the TSCU
(touch sensor) function even during wait mode, this bit must be set to 1 because the flash memory resource is
necessary for hardware operation.
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 block erase command
Generation of a command sequence error
Transition to erase-suspend
The FMR01 bit in the FMR0 register is set to 0 (CPU rewrite mode disabled).
The FMSTP bit in the FMR0 register is set to 1 (flash memory stops).
The CMDRST bit in the FMR0 register is set to 1 (erasure/writing stops).
[Condition for setting to 1]
Set to 1 by a program.
Address 00255h
Bit
b7b6
b5b4b3
b2b1b0
Symbol
After Reset
0
000
0000
Bit
Symbol
Bit Name
Function
R/W
b0
—
Nothing is assigned. The write value must be 0. The read value is 0.
—
b1
FMR11
Wait mode flash memory operation enable bit
0: Flash memory stops during wait mode
1: Flash memory operation enabled
during wait mode
R/W
b2
—
Nothing is assigned. The write value must be 0. The read value is 0.
—
b3
FMR13
Lock bit disable select bit
0: Lock bit enabled
1: Lock bit disabled
R/W
b4
FMR14
Data flash block A rewrite disable bit
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 disable bit
R/W
b6
FMR16
Data flash block C rewrite disable bit
R/W
b7
FMR17
Data flash block D rewrite disable bit
R/W