Renesas R8C/18 Series Hardware Manual page 205

16-bit single-chip mcu
Table of Contents

Advertisement

R8C/18 Group, R8C/19 Group
17.4.3.5
Block Erase
When 20h is written in the first bus cycle and D0h is written to a given address of a block in the
second bus cycle, an auto-erase operation (erase and verify) of the specified block starts.
The FMR00 bit in the FMR0 register can be used to determine whether auto-erasure has completed.
The FMR00 bit is set to 0 during auto-erasure and set to 1 when auto-erasure completes.
The FMR07 bit in the FMR0 register can be used to determine the result of auto-erasure after
auto-erasure has completed. (Refer to 17.4.5 Full Status Check.)
When the FMR02 bit in the FMR0 register is set to 0 (rewriting disable) or the FMR02 bit is set to 1
(rewrite enabled) and the FMR15 bit in the FMR1 register is set to 1 (rewriting disable), the block
erase commands targeting block 0 are not acknowledged. When the FMR16 bit is set to 1 (rewriting
disable), the block erase commands targeting block 1 are not acknowledged.
Do not use the block erase command during program-suspend.
Figure 17.13 shows the Block Erase Command (When Not Using Erase-Suspend Function). Figure
17.14 shows the Block Erase Command (When Using Erase-Suspend Function).
In EW1 mode, do not execute this command for any address to which a rewrite control program is
allocated.
In EW0 mode, the MCU enters read status register mode at the same time auto-erasure starts and
the status register can be read. The status register bit 7 (SR7) is set to 0 at the same time
auto-erasure starts and set back to 1 when auto-erasure completes. In this case, the MCU remains in
read status register mode until the next read array command is written.
Figure 17.13
Block Erase Command (When Not Using Erase-Suspend Function)
Rev.1.30
Apr 14, 2006
REJ09B0222-0130
Write the command code 20h
Write D0h to a given block
address
FMR00 = 1?
Full status check
Block erase completed
Page 190 of 233
Start
No
Yes
17. Flash Memory Version

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c/1 seriesR8c seriesR8c/19 series

Table of Contents