CHAPTER1: Flash Memory
3. Operations
P E R I P H E R A L M A N U A L
18
S6E1Cx_MN710-00016-1v0-E, August 31, 2015
CONFIDENTIAL
3.1.3
Automatic Algorithm Run States
Writing and erasing of flash memory is performed by the automatic algorithm. Whether or not the automatic
algorithm is currently executing can be checked by using the Flash Status Register (FSTR).
Flash Status Register
This indicates the status of the automatic algorithm. Figure 3-1 shows the bit structure of the Flash Status
Register.
Figure 3-1 Bit Structure of the Flash Status Register
bit
7
6
5
4
3
2
1
0
Field
Reserved Reserved PGMS
SERS
ESPS
CERS
HNG
RDY
Note:
−
Because the correct value might not be read out immediately after issuing a command, ignore the
first value of the Flash Status Register that is read immediately after issuing a command.
Status of each bit and Flash memory
For the correspondence between each bit of the Flash Status register and the status of the flash memory,
see Table 3-2.
Table 3-2 List of Each Bit of Flash Status Flag Register
Parameter
PGMS
SERS
ESPS
CERS
HNG
RDY
Running
Program write operation
1
0
0
0
0
0
Flash memory
erase
Internal operation
before erasing
0
0
0
0
0
0
Erasing
0
0
0
1
0
0
Sector erase
0
1
0
0
0
0
Sector erase
suspended
Program write
operation (Sector
not to erase)
1
1
1
0
0
0
Other than above
0
1
1
0
0
1
Time limit
exceeded
Program write operation
1
0
0
0
1
0
Flash memory
erase
Internal operation
before erasing
0
0
0
0
1
0
Erasing
0
0
0
1
1
0
Sector erase
0
1
0
0
1
0
Sector erase
suspended
Program write
operation (Sector
not to erase)
1
1
1
0
1
0
(Note) See "
Bit descriptions" for the values that can be read.