Download Print this page

Renesas M16C/50 Series User Manual page 706

Advertisement

M16C/5L Group, M16C/56 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 RAM.
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 26.7
Block Erase Flowchart in EW0 Mode (Suspend Function Enabled)
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
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
26. Flash Memory
Access flash memory
Page 669 of 803

Advertisement

loading