S6E2CC/C5/C4/C3/C2/C1 Series Flash Programming Specification, Document Number: 002-04913 Rev. *D
16
1.3.2.1 Command Sequence
The automatic algorithm is activated by sequentially writing half-word (16-bit) data to the MainFlash memory one to six
times in a row. This is called a command.
Table 1-4 Command sequence chart
Command
No.
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
0xAA8
0xAA
0x554
0x55
0xAA8
0xA0
PA
PD
--
--
--
--
Flash erase
6
0xAA8
0xAA
0x554
0x55
0xAA8
0x80
0xAA8
0xAA
0x554
0x55
0xAA8
0x10
Sector
erase
6
0xAA8
0xAA
0x 554
0x55
0xAA8
0x80
0xAA8
0xAA
0x554
0x55
SA
0x30
Sector
erase
suspended
1
0xXXX
0xB0
--
--
--
--
--
--
--
--
--
--
Sector
erase
restarting
1
0xXXX
0x30
--
--
--
--
--
--
--
--
--
--
X: Any value
PA: Write address
SA: Sector address (Specify any address within the address range of the sector to erase)
PD: Write data
Notes:
−
, the data notation only shows the lower 8 bits. The upper 8 bits can be set to any value.
−
Write commands as half-words at any time.
−
, the address notation only shows the lower 16 bits. The upper 16 bits should be set to any address
within the address range of the target flash macro. When the address outside the flash macro of flash address range
is specified, the command sequence would not operate correctly since the flash memory cannot recognize the
command.
−
For the address when setting the flash security code, specify the address of "0x0040_0000".
While Re-Map function is enabled, specify the address of
“200F_8000”
−
For the address when setting or erasing the CR trimming data, specify the address of "0x0040_2000".
While Re-Map function is enabled, specify the address of
“200F_A000”
−
For the address when setting or erasing the HTM code, specify the address of
“0x0040_200C”.
While Re-Map function is enabled, specify the address of
“200F_A00C”
−
When any of the CR trimming data and the HTM code is erased, both of which are erased. It is not possible to erase
only one.
−
For the address when setting or erasing the general purpose data, specify the address of
“0x0040_4000” to
“0x0040_400C”. (general purpose data 1: “0x0040_4000”, general purpose data 2 : “0x0040_4004”, general purpose
data 3 :
“0x0040_4008”, general purpose data 4 : “0x0040_400C”)
While Re-Map function is enabled, specify the address of
“0x200F_C000” to “0x200F_C00C”. (general purpose data
1:
“0x200F_C000”, general purpose data 2 : “0x200F_C004”, general purpose data 3 : “0x200F_C008”, general
purpose data 4 :
“0x200F_C00C”)
When any of the general purpose data is erased, all of the general purpose data are erased.