Block Erase - Renesas M16C/29 Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M16C/29 Group

21.7.5 Block Erase

By writing 'xx20
16
addresse of a block) and the auto-programming/erasing (erase and erase verify) start. The FMR00 bit in
the FMR0 register indicates whether the auto-programming operation has been completed. The FMR00
bit is set to "0" during the auto-erasing operation and "1" when the auto-erasing operation is completed.
When using the erase-suspend function in EW0 mode, the FMR46 bit in the FMR4 register indicates
whether a flash memory has entered erase-suspend mode. The FMR46 bit is set to "0" during auto-
erasing operation and "1" when the auto-erasing operation is completed (entering erase-suspend). After
the completion of an auto-erasing operation, the FMR07 bit in the FMR0 register indicates whether or not
the auto erasing-operation has been completed as expected. (Refer to "Full Status Check"). Also, each
block disables erasing. (Refer to "Table 21.5.2.1"). Figure 21.7.5.1 shows a flow chart of the block erase
command programming when not using the erase-suspend function. Figure 21.7.5.2 shows a flow chart
of the block erase command programming when using an erase-suspend 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 the auto-erasing operation starts and the
status register can be read. The SR7 bit in the status register is set to "0" as soon as the auto-erasing
operation starts. This bit is set to "1" when the auto-erasing operation is completed. The microcomputer
remains in read status register mode until the read array command is written.
Note 1: Write the command code and data at even address.
Note 2: Refer to "Figure 21.8.4.1. Full Status Check and Handling Porcedure
Note 3: Execute the clear status register command and block erase
Figure 21.7.5.1. Flow Chart of Block Erase Command (when not using erase suspend function)
Rev.1.00 Nov 01,2004
REJ09B0101-0100Z
' in the first bus cycle and 'xxD0
Write command code 'xx20
Write 'xxD0
block address (Note 1)
Full status check
Block erase completed
for Each Error".
command at least 3 times until an erase error is not generated when
an erase error is generated.
page 384 of 402
' in the second bus cycle to the highest-order (even
16
Start
' (
16
Note 1)
' to the highest-order
16
NO
FMR00=1?
YES
(Note 2,3)
21. Flash Memory Version

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM16c/tiny series

Table of Contents