English
Language : 

M16C28 Datasheet, PDF (337/423 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/28 Group (M16C/28, M16C/28B)
(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
18. Flash Memory Version
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)
FMR41=0
NO
FMR00=1?
YES
Full status check (2,4)
Block erase completed
Interrupt service routine
Access Flash Memory
Return
(Interrupt service routine end)
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 18.15.
Figure 18.14 Block Erase Command (at use erase suspend)
Rev. 2.00 Jan. 31, 2007 page 317 of 385
REJ09B0047-0200