CHAPTER1: Flash Memory
3. Operations
P E R I P H E R A L M A N U A L
August 31, 2015, S6E1Cx_MN710-00016-1v0-E
25
CONFIDENTIAL
3.2.4
Sector Erase Operation
This section explains the sector erase operation.
Sectors in the flash memory can be selected and the data of only the selected sectors can be erased.
Multiple sectors can be specified at the same time.
Sectors are erased according to the following sequence.
1. Issue the sector erase command sequentially to the target sector
The automatic algorithm activates and the sector erase operation begins.
To erase multiple sectors, write 0xE0 as the 6th write data (command data). By writing 0xE0 to the
7th sector address and later, sectors could be added to be erased. Write 0x30 in the last sector
address, then the automatic algorithm is activated and the erase operation of multi sectors specified
is started.
There is no restriction on number of sectors added to be erased and all sectors can be erased
collectively.
2. Confirm Flash Status Register (FSTR)
After issuing Sector erase command, the RDY bit and SERS bit of the Flash Status Register are set
to "0" and "1" respectively. After that, when the erase operation of all sectors specified are completed,
the RDY bit and SERS bit are set to "1" and "0" respectively.
For an example of the sector erase procedure, see Figure 3-3.