R8C/1A Group, R8C/1B Group
18. Flash Memory
Rev.1.30
Dec 08, 2006
Page 263 of 315
REJ09B0252-0130
Figure 18.13
Program Command (When Suspend Function Enabled)
Start
Write the command code 40h
Write data to the write address
FMR44 = 0 ?
Full status check
Program completed
No
Yes
EW0 Mode
FMR40 = 1
Start
Write the command code 40h
Write data to the write address
FMR44 = 0 ?
Full status check
Program completed
No
Yes
EW1 Mode
FMR40 = 1
Maskable interrupt
(2)
REIT
Access flash memory
FMR42 = 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
FMR42 = 1
FMR42 = 0
Access flash memory
FMR44 = 1 ?
Yes
FMR46 = 0 ?
Yes
No
No
Access flash memory
No
I = 1 (enable interrupt)
I = 1 (enable interrupt)
(3)