R8C/18 Group, R8C/19 Group
17. Flash Memory Version
Rev.1.30
Apr 14, 2006
Page 191 of 233
REJ09B0222-0130
Figure 17.14
Block Erase Command (When Using Erase-Suspend Function)
Start
Write the command code 20h
Write D0h to any block
address
FMR00 = 1?
Full status check
Block erase completed
No
Yes
EW0 Mode
FMR40 = 1
Maskable interrupt
(1, 2)
FMR46 = 1 ?
REIT
No
Yes
FMR41 = 1
FMR41 = 0
Access flash memory
Start
Write the command code 20h
Write D0h to any block address
FMR00 = 1 ?
Full status check
Block erase completed
No
Yes
EW1 Mode
FMR40 = 1
Maskable interrupt
(2)
REIT
Access flash memory
FMR41 = 0
NOTES:
1. In EW0 mode, the interrupt vector table and interrupt routine for interrupts to be used should be allocated
to the RAM area.
2. td(SR-ES) is needed until the interrupt request is acknowledged after it is generated. The interrupt to enter
erase-suspend should be in interrupt enabled status.