Renesas M16C/62P Series Hardware Manual page 303

6-bit single-chip microcomputer
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
22.3.5.5
Block Erase Command
The block erase command erases each block.
By writing "xx20h" in the first bus cycle and "xxD0h" to the highest-order even address of a block in the
second bus cycle, an auto erase operation (erase and verify) will start in the specified block.
The FMR00 bit in the FMR0 register indicates whether an auto erase operation has been completed.
The FMR00 bit is set to "0" (busy) during auto erase and to "1" (ready) when the auto erase operation is
completed.
After the completion of an auto erase operation, the FMR07 bit in the FMR0 register indicates whether or not
the auto erase operation has been completed as expected. (Refer to 22.3.8 Full Status Check.)
Figure 22.11 shows a Flow Chart of the Block Erase Command Programming.
The lock bit protects each block from being programmed inadvertently. (Refer to 22.3.6 Data Protect
Function.)
In EW1 mode, do not execute this command on the block where the rewrite control program is allocated. In
EW0 mode, the microcomputer enters read status register mode as soon as an auto erase operation starts. The
status register can be read. The SR7 bit in the status register is set to "0" at the same time an auto erase
operation starts. It is set to "1" when an auto erase operation is completed. The microcomputer remains in read
status register mode until the read array command or read lock bit status command is written. Also 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.
NOTES:
Figure 22.11
Block Erase Command
Rev.2.41
Jan 10, 2006
REJ09B0185-0241
http://www.xinpian.net
Start
Write the command code "xx20h"
Write "xxD0h" to the highest-order
block address
FMR00=1?
Full status check
Block erase operation is
completed
1. Write the command code and data to even addresses.
2. Refer to "Figure 22.14 Full Status Check and Handling Procedure
for Each Error".
3. 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.
Page 288 of 390
提供单片机解密、IC解密、芯片解密业务
(1)
NO
YES
(2, 3)
22. Flash Memory Version
010-62245566 13810019655

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pM16c/62pt

Table of Contents