English
Language : 

M16C65 Datasheet, PDF (759/829 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/60
Under development
M16C/65 Group
Preliminary Specification
This is a preliminary specification and is subject to change.
30. Flash Memory
Start
Write 0 and then 1
to the FMR30 bit
Suspend
enabled
Write the command code XX20h
to the desired block address
I flag ← 1
Interrupt
enabled (2)
Write XXD0h
to the highest-order block address
No
FMR00 = 1 ?
Yes
Full status check
Block erase completed
Maskable interrupt (1)
FMR00 = 0 ?
Yes
FMR31 ← 1 (3)
No
Suspend
request
No
FMR32 = 1 ?
Access flash memory
Yes
Erase suspend accepted
Access flash memory
FMR31 ← 0
REIT
Command
request
Notes :
1. In EW0 mode, set the interrupt vector table for interrupts to be used and the interrupt routine in areas other than flash memory.
2. When interrupts are not used, an instruction to enable interrupts are not necessary.
3. Erase is not suspended until td(SR-SUS) elapses after the FMR31 bit is set to 1.
Figure 30.11 Block Erase Flowchart in EW0 Mode (Suspend Function Enabled)
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 724 of 791