CHAPTER1: Flash Memory
3. Operations
P E R I P H E R A L M A N U A L
22
S6E1Cx_MN710-00016-1v0-E, August 31, 2015
CONFIDENTIAL
3.2.2
Write Operation
This section explains the write operation.
Writes are performed according to the following procedure.
1. The program (write) command is issued sequentially.
The automatic algorithm activates and the data is written to the flash memory.
After the write command is issued, there is no need to control the flash memory externally.
2. Confirm Flash Status Register (FSTR)
After issuing the program write command, the RDY bit and PGMS bit of the Flash Status Register
are set to "0" and "1" respectively. After the write operation is completed, the RDY bit and PGMS bit
are set to "1" and "0" respectively.
See Figure 3-2 for an example of a write operation to the flash memory.
Figure 3-2 Example Write Operation
Start of writing
Read FSTR (Dummy)
Read FSTR
PGMS=0 & RDY=1?
Last address
End of writing
Next address
1
No
Yes
Write error
HNG?
0
Write command sequence
1. Addr:0000_0A98 Data:00AA
2. Addr:0000_0544 Data:0055
3. Addr:0000_0A98 Data:00A0
4. Write Address
Write Data
No
Yes