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
15
CONFIDENTIAL
3.1.1
Command Sequences
The automatic algorithm is activated by writing data to the Flash memory in the specified method. This is
called a command. Table 3-1 shows the command sequences.
Table 3-1 Command Sequence Chart
Command
Number
of
Writes
1st Write
2nd Write
3rd Write
4th Write
5th Write
6th Write
Address Data Address Data Address Data Address Data Address Data Address Data
Read/
Reset
1
0xXXX 0xF0
--
--
--
--
--
--
--
--
--
--
Write
4
0xA98 0xAA 0x544 0x55 0xA98
0xA0
PA
PD
--
--
--
--
Flash erase
6
0x80 0xA98 0xAA 0x544 0x55
0xA98 0x10
Sector erase
(No Sector
added)
6
SA
0x30
Sector erase
(Sector
added)
6 and on
0xE0*
Sector erase
suspended
1
0xXXX 0xB0
--
--
--
--
--
--
--
--
--
--
Sector erase
restarting
1
0xXXX 0x30
--
--
--
--
--
--
--
--
--
--
X : Any address
PA : Write address
SA : Sector address (Specify any address of even number within the address range of the sector to be
erased)
PD : Write data
*: To add sectors to be erased, repeat the 6th write operation for the required times. By writing 0x30 in
the last sector address, the erase operation is started.
Notes:
−
The data notation in Table 3-1 only shows the lower 8 bits. The upper 8 bits can be set to any value.
−
Write commands in a byte (8 bits) or half-words (16 bits).
−
The address notation in Table 3-1 only shows the lower 12 bits. The upper 20 bits should be set to
any address within the address range of the target flash memory.
When the address outside the flash address range is specified, the command sequence would not
be executed correctly since the flash memory cannot recognize the command.
−
For Flash security code, write to 0x0010_0000 as PA.
−
For CR Trimming data, write to 0x0010_0004 (CR Frequency Trimming Data) or 0x0010_0006 (CR
Temperature Trimming Data) as PA.
−
When any of 0x0010_0000, 0x0010_0004, 0x0010_0006 is assigned as SA, Flash Security Code
and CR Trimming Data are erased thoroughly. Only any of them cannot be erased.
−
When SA0 is erased, CR Trimming data is erased, too. In order to backup CR Trimming data,
reprogram address 0x0010_0004 (CR Frequency Trimming Data) and 0x0010_0006 (CR
Temperature Trimming Data) after SA0 is erased.