R8C/13 Group
17.4 CPU Rewrite Mode
<EW0 Mode>
Interrupt(1, 2)
FMR40=1
Start
FMR40=1
Write the command code ‘2016
’
NO
FMR46=1?
YES
Write ‘D016’ to the
any block address
Access to flash memory
NO
FMR00=1?
FMR41=0
YES
Full status check
REIT
Block erase completed
<EW1 Mode>
Interrupt(2)
Start
Access to flash memory
FMR40=1
Write the command code ‘2016
’
REIT
Write ‘D016’ to the
any block address
FMR41=0
NO
FMR00=1?
YES
Full status check
Block erase completed
NOTES:
1. In EW0 mode, interrupt vector table and interrupt routine for an interrupt used should be
located in the RAM space.
2. td(SR-ES) is needed after an interrupt request is generated before being acknowledged.
The interrupt to enter an erase-suspend should be in interrupt enabled status.
Figure 17.11 Block Erase Flow Chart (When Using Erase-suspend Function)
Rev.1.20 Jan 27, 2006 page 178 of 205
REJ09B0111-0120