English
Language : 

R8C25 Datasheet, PDF (433/525 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MCU R8C FAMILY / R8C/2x SERIES
R8C/24 Group, R8C/25 Group
19. Flash Memory
EW0 Mode
Start
FMR40 = 1
Write the command code 20h
I = 1 (enable interrupt)(3)
Write D0h to any block
address
No
FMR00 = 1 ?
Yes
Full status check
Block erase completed
Maskable interrupt(1)
No
FMR43 = 1 ?
Yes
FMR41 = 1(4)
FMR46 = 1 ?
Yes
Access flash memory
No
Access flash memory
FMR41 = 0
REIT
EW1 Mode
Start
FMR40 = 1
Write the command code 20h
I = 1 (enable interrupt)
Write D0h to any block
address
FMR41 = 0
Maskable interrupt (2)
Access flash memory
REIT
No
FMR00 = 1 ?
Yes
Full status check
Block erase completed
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.
4. td(SR-SUS) is needed until erase is suspended after the FMR41 bit in the FMR4 register is set to 1.
Figure 19.15 Block Erase Command (When Erase-Suspend Function Enabled)
Rev.3.00 Feb 29, 2008 Page 416 of 485
REJ09B0244-0300