R8C/1A Group, R8C/1B Group
18. Flash Memory
Rev.1.30
Dec 08, 2006
Page 265 of 315
REJ09B0252-0130
Figure 18.15
Block Erase Command (When Erase-Suspend Function Enabled)
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
Start
Write the command code 20h
Write D0h to any block
address
FMR00 = 1 ?
Full status check
Block erase completed
No
Yes
EW1 Mode
I = 1 (enable interrupt)
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-SUS) is needed until the interrupt request is acknowledged after it is generated. The interrupt to enter suspend
should be in interrupt enabled status.
3. When no interrupt is used, the instruction to enable interrupts is not needed.
Maskable interrupt
(1, 2)
FMR46 = 1 ?
REIT
Yes
FMR41 = 1
FMR41 = 0
Access flash memory
FMR43 = 1 ?
Yes
FMR46 = 0 ?
Yes
No
No
Access flash memory
No
I = 1 (enable interrupt)
(3)
FMR40 = 1