English
Language : 

M32C86 Datasheet, PDF (431/505 Pages) Renesas Technology Corp – RENESAS 16/32-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M32C/80 SERIES
M32C/86 Group (M32C/86, M32C/86T)
25. Flash Memory Version
25.3.5.5 Block Erase Command
The block erase command erases each block.
Auto erase operation (erase and verify) will start in the specified block by writing command code
"xx2016" in the first bus cycle and "xxD016" to the highest-order even address of a block in the second
bus cycle.
The FMR00 bit in the FMR0 register indicates whether or not 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 25.3.8 Full Status
Check.)
Figure 25.10 shows a flow chart of the block erase command programming.
The lock bit can protect each block from being programmed inadvertently. (Refer to 25.3.6 Data
Protect Function.)
In EW mode 1, do not execute this command on the block where the rewrite control program is allocated.
In EW mode 0, the microcomputer enters read status register mode as soon as an auto erase opera-
tion starts. The SRD register can be read. The SR7 bit in the SRD 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.
Start
Write the command code "xx2016"
Write "xxD016" to the highest-
order block address
NO
FMR00=1?
YES
Full status check
Block erase operation
is completed
NOTES:
1. Write the command code and data to even addresses.
Figure 25.10 Block Erase Command
Rev. 1.00 Sep. 08, 2005 Page 408 of 479
REJ09B0204-0100