|
M306H7MG-XXXFP Datasheet, PDF (295/329 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with DATA ACQUISITION CONTROLLER | |||
|
◁ |
M306H7MG-XXXFP/MC-XXXFP/FGFP
17. FLASH MEMORY VERSION
Block Erase
Write âexx2016â in the first bus cycle and write âexxD016â to the uppermost address of a block (even address,
however) in the second bus cycle, and an auto erase operation (erase and verify) will start.
Check the FMR0 registerâs FMR00 bit to see if auto erasing has finished.
The FMR00 bit is â0â during auto erasing and set to â1â when auto erasing is completed.
Check the FMR0 registerâs FMR07 bit after auto erasing has finished, and the result of auto erasing can be
known. (Refer to âFull Status Check.â)
Figure 17.9 shows an example of a block erase flowchart.
Each block can be protected against erasing by a lock bit. (Refer to âData Protect Function.â) In EW1 mode, do
not execute this command on any address at which the rewrite control program is located.
In EW0 mode, the microcomputer goes to read status register mode at the same time auto erasing starts, making
it possible to read the status register. The status register bit 7 (SR7) is cleared to â0â at the same time auto
erasing starts, and set back to â1â when auto erasing finishes. In this case, the microcomputer remains in read
status register mode until the Read Array or Read Lock Bit Status command is written next.
Start
Write the command code âxx2016â
Write âxxD016â to the uppermost
block address
NO
FMR00=1?
YES
Full status check
Block erase completed
Note: Write the command code and data at even number.
Figure 17.9 Block Erase Command
Rev.2.10 Oct 25, 2006 Page 295 of 326
REJ03B0152-0210
|
▷ |