Renesas M16C/60 Series Hardware Manual page 286

Hide thumbs Also See for M16C/60 Series:
Table of Contents

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N5 Group
Block Erase
Write "xx20
" in the first bus cycle and write "xxD0
16
address, however) in the second bus cycle, and an auto erase operation (erase and verify) will start.
Check the FMR0 register's FMR00 bit to see if auto erasing has finished.
The FMR00 bit is "0" during auto erasing and set to "1" when auto erasing is completed.
Check the FMR0 register's FMR07 bit after auto erasing has finished, and the result of auto erasing
can be known. (Refer to "Full Status Check".)
Figure 1.22.9 shows an example of a block erase flowchart.
Each block can be protected against erasing by a lock bit. (Refer to "Data Protect Function".)
In EW1 mode, do not execute this command on any address at which the rewrite control program is
located.
In EW0 mode, the microcomputer goes to read status register mode at the same time auto erasing
starts, making it possible to read the status register. The status register bit 7 (SR7) is set to "0" at the
same time auto erasing starts, and set back to "1" when auto erasing finishes. In this case, the micro-
computer remains in read status register mode until the Read Array or Read Lock Bit Status command
is written next.
Figure 1.22.9 Block Erase Command
Rev.1.00
2003.05.30
page 272
Start
Write the command code "xx20
Write "xxD0
" to the uppermost
16
block address
FMR00=1?
YES
Full status check
Block erase completed
Note: Write the command code and data at even number.
" to the uppermost address of a block (even
16
"
16
NO
Flash Memory

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6n5

Table of Contents