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 660 of 728
Aug 05, 2011
FMR21, FMR22: Bits in FMR2 register
Note:
1. Do not use a non-maskable interrupt while block 0 is being auto-erased because the fixed vector is allocated in block 0.
Table 26.12
CPU Rewrite Mode Interrupts (3)
Mode
Erase/
Write
Target
Status
Watchdog Timer
Oscillation Stop Detection
Voltage Monitor 2
Voltage Monitor 1
Undefined Instruction
INTO Instruction
BRK Instruction
Single Step
Address Match
Address Break
(Note 1)
EW1
Data
flash
During auto-erasure
(suspend enabled)
When an interrupt request is acknowledged, interrupt
handling is executed.
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). The
flash memory suspends auto-erasure after td(SR-SUS).
If erase-suspend is required while the FMR22 bit is set
to 0 (erase-suspend request disabled by interrupt
request), set the FMR21 bit to 1 during interrupt
handling. The flash memory suspends auto-erasure
after td(SR-SUS).
While auto-erasure is being suspended, any block other
than the block during auto-erasure execution can be
read or written. Auto-erasure can be restarted by setting
the FMR21 bit is set to 0 (erase restart).
When an interrupt request is
acknowledged, interrupt
handling is executed.
If erase-suspend is required,
set the FMR21 bit to 1 during
interrupt handling. The flash
memory suspends auto-
erasure after td(SR-SUS).
While auto-erasure is being
suspended, any block other
than the block during auto-
erasure execution can be read
or written. Auto-erasure can be
restarted by setting the FMR21
bit in the FMR2 register is set
to 0 (erase restart).
During auto-erasure
(suspend disabled or
FMR22 = 0)
Interrupt handling is executed while auto-erasure or auto-programming is being
performed.
During
auto-programming
Program
ROM
During auto-erasure
(suspend enabled)
When an interrupt request is acknowledged, auto-
erasure or auto-programming is forcibly stopped
immediately and the flash memory is reset. Interrupt
handling starts when the flash memory restarts after the
fixed period.
Since the block during auto-erasure or the address
during auto-programming is forcibly stopped, the normal
value may not be read. After the flash memory restarts,
execute auto-erasure again and ensure it completes
normally.
The watchdog timer does not stop during the command
operation, so interrupt requests may be generated.
Initialize the watchdog timer regularly using the erase-
suspend function.
Not usable during auto-erasure
or auto-programming.
During auto-erasure
(suspend disabled or
FMR22 = 0)
During
auto-programming