Renesas M16C/64C User Manual page 710

Table of Contents

Advertisement

M16C/64C Group
Start
I flag ← 0
Write 0 and then 1
to the FMR30 bit
Write command code xx20h
to X address
Write xxD0h to BA address
I flag ← 1
FMR00 = 1 ?
Full status check
Block erase completed
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 is not necessary.
3. Erase is not suspended until td(SR-SUS) elapses after the FMR31 bit is set to 1.
Figure 30.7
Block Erase Flowchart in EW0 Mode (Suspend Function Enabled)
R01UH0092EJ0110 Rev.1.10
Jul 31, 2012
Interrupt
disabled
Suspend
enabled
Interrupt
(2)
enabled
No
Yes
(1)
Maskable interrupt
No
FMR00 = 0 ?
Yes
Suspend
FMR31 ← 1
(3)
request
No
FMR00 = 1 ?
Yes
Erase suspend accepted
Access flash memory
Command
FMR31 ← 0
request
REIT
30. Flash Memory
Access flash memory
Page 677 of 807

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/60 seriesM16c series

Table of Contents