Block Erase - Renesas M16C FAMILY series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY series:
Table of Contents

Advertisement

M
1
6
C
2 /
8
G
o r
u
p
(
M
1
6
C

18.7.5 Block Erase

Auto erase operation (erase and verify) start in the specified block by writing 'xx20
and 'xxD0
' to the highest-order even addresse of a block in the second bus cycle.
16
The FMR00 bit in the FMR0 register indicates whether the auto-erase operation has been completed.
The FMR00 bit is set to "0" (busy) during the auto-erase and "1" (ready) when the auto-erase operation is
completed.
When using the erase-suspend function in EW mode 0, verify whether a flash memory has entered erase
suspend mode, by the FMR46 bit in the FMR4 register. The FMR46 bit is set to "0" during auto-erase
operation and "1" when the auto-erase operation is completed (entering erase-suspend).
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 successfully completed. (Refer to 18.8.4 Full Status Check).
Also, each block can disable erasing. (Refer to Table 18.4).
Figure 18.13 shows a flow chart of the block erase command programming when not using the erase-
suspend function. Figure 18.14 shows a flow chart of the block erase command programming when
using an erase-suspend 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 the auto-erase operation
starts and the status register can be read. The SR7 bit in the status register is set to "0" at the same time
the auto-erase operation starts. This bit is set to "1" when the auto-erase operation is completed. The
microcomputer remains in read status register mode until the read array command is written.
When the erase error occurs, execute the clear status register command and block erase command at
leaset three times until an erase error does not occur.
NOTES:
1. Write the command code and data at even address.
2. Refer to Figure 18.15.
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.
Figure 18.13 Flow Chart of Block Erase Command (when not using erase suspend function)
R
e
. v
2
0 .
0
J
a
. n
3
, 1
2
0
0
7
R
E
J
0
9
B
0
0
4
7
0 -
2
0
0
2 /
, 8
M
1
6
C
2 /
8
) B
Write command code 'xx20
Write 'xxD0
Full status check
Block erase completed
page 316
f o
3
8
5
Start
(1)
'
16
' to the highest-order
16
(1)
block address
NO
FMR00=1?
YES
(2,3)
18. Flash Memory Version
' in the first bus cycle
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents