
R8C/14 Group, R8C/15 Group 18. Flash Memory Version
Rev.2.10 Jan 19, 2006 Page 207 of 253
REJ09B0164-0210
18.4.3.5 Block Erase
If writing ”20h” in the first bus cycle and “D0h” to the given address of a block in the second bus cycle,
and an auto erase operation (erase and verify) will start.
The FMR00 bit in the FMR0 register can determine whether auto erasing has completed.
The FMR00 bit is set to “0” during auto erasing and set to “1” when auto erasing completes.
The FMR07 bit in the FMR0 register can determine the result of auto erasing after auto erasing has
completed. (Refer to
18.4.5 Full Status Check)
When the FMR02 bit in the FMR0 register is set to “0” (disable rewriting) or the FMR02 bit is set to “1”
(rewrite enables) and the FMR15 bit in the FMR1 register is set to “1” (disable rewriting), the block
erase command on Block 0 is not acknowledged. When the FMR16 bit is set to “1” (disable rewriting),
the block erase command on Block 1 is not acknowledged.
Figure 18.12 shows the Block Erase Command (When Not Using Erase-Suspend Function). Figure
18.13 shows the Block Erase Command (When Using Erase-Suspend Function).
In EW1 mode, do not execute this command on any address at which the rewrite control program is
allocated.
In EW0 mode, the microcomputer enters read status register mode at the same time auto erasing
starts and the status register can be read. 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 completes. In this case, the microcomputer
remains in read status register mode until the read array command is written next.
Figure 18.12 Block Erase Command (When Not Using Erase-Suspend Function)
Start
Write the command code ‘20h’
Write ‘D0h’ to the given block
address
FMR00=1?
Full status check
Block erase completed
No
Yes
Commentaires sur ces manuels