
R8C/3GM Group
R01UH0284EJ0100 Rev.1.00
Aug 09, 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 31.11
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
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, the FMR21 bit is
automatically set to 1. The flash memory
suspends auto-erasure after td(SR-SUS).
If erase-suspend is required while the FMR22 bit
is set to 0, set the FMR21 bit to 1 during interrupt
handling. The flash memory suspends auto-
programming 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.
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