Download Print this page

Renesas M16C/50 Series User Manual page 721

Advertisement

M16C/5L Group, M16C/56 Group
26.8.6.5
Block Erase Command
By writing xx20h in the first bus cycle and xxD0h to the highest even address of a block in the second
bus cycle, an auto-erase operation (erase and verify) is started on the specified block.
The FMR00 bit in the FMR0 register indicates whether the auto-erase operation has been completed.
The FMR00 bit is 0 (busy) during the auto-erase operation, and becomes 1 (ready) when the auto-
erase operation is completed. Do not execute other commands while the FMR00 bit is 0.
After the auto erase operation is completed, the FMR07 bit in the FMR0 register indicates whether or
not the auto erase operation has been completed as expected. (Refer to 26.8.7.1 "Full Status
Check").
Figure 26.20 shows a flowchart of the Block Erase Command (Suspend Function Disabled).
The lock bit protects individual blocks from being erased inadvertently. (Refer to 26.8.4 "Data Protect
Function".)
In EW1 mode, do not execute this command on the block to which the rewrite control program is
allocated.
Figure 26.20 Block Erase Command (Suspend Function Disabled)
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Start
Write command code
xx20h to X address
Write xxD0h to
BA address
No
FMR00 = 1?
Yes
Full status check
Block erase command
completed
26. Flash Memory
Page 684 of 803

Advertisement

loading