English
Language : 

M16C29 Datasheet, PDF (374/499 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/Tiny SERIES
M16C/29 Group
20. Flash Memory Version
(EW mode 0)
Start
FMR40=1
Write the command code
xx2016 (1)
Write xxD016 to the highest-order
block address (1)
NO
FMR00=1?
YES
Full status check (2,4)
Block erase completed
Interrupt service routine(3)
FMR41=1
NO
FMR46=1?
YES
Access Flash Memory
FMR41=0
Return
(Interrupt service routine end)
(EW mode 1)
Start
FMR40=1
Write the command code
xx2016 (1)
Write xxD016 to the highest-order
block address (1)
Interrupt service routine
Access Flash Memory
Return
(Interrupt service routine end)
FMR41=0
NO
FMR00=1?
YES
Full status check (2,4)
Block erase completed
NOTES:
1. Write the command code and data to even address.
2. Execute the clear status register command and block erase command at least 3 times until an
erase error is not generated when an erase error is generated.
3. In EW mode 0, allocate an interrupt vector table of an interrupt, to be used, to the RAM area
4. Refer to Figure 20.14.
Figure 20.13 Block Erase Command (at use erase suspend)
Rev. 1.12 Mar.30, 2007 page 350 of 458
REJ09B0101-0112