S6E2CC/C5/C4/C3/C2/C1 Series Flash Programming Specification, Document Number: 002-04913 Rev. *D
17
1.3.2.2 Command Operating Explanations
This section explains the command operating.
Read/Reset Command
The flash memory can be read and reset by sending the read/reset command to the target sector in sequence.
When a read/reset command is issued, the flash memory maintains the read state until another command is issued.
When the execution of the automatic algorithm exceeds the time limit, the flash memory is returned to the read/reset state
by issuing the read/reset command.
See Section "
" for details on the actual operation.
Program (Write) Command
The automatic algorithm can be activated and the data is written to the flash memory by issuing the write command to the
target sector in four consecutive writes. Data writes can be performed in any order of addresses, and may also cross
sector boundaries.
In CPU programming mode, data is written in half-words.
Once the forth command issuance has finished, the automatic algorithm is activated and the automatic write to the flash
memory starts. After executing the automatic write algorithm command sequence, there is no need to control the flash
memory externally.
See Section "
" for details on the actual operation.
Notes:
−
The command is not recognized properly if the fourth write command (write data cycle) is issued to an odd address.
Always issue it to an even address.
−
Only a single half-word of data can be written for each write command sequence.
To write multiple pieces of data, issue one write command sequence for each piece of data.
Flash Erase Command
All of the sectors in flash macro including target sector can be batch-erased by sending the flash erase command to the
target sector in six consecutive writes. Once the sixth sequential write has finished, the automatic algorithm is activated
and the flash erase operation starts.
Note:
−
All of the sectors in target flash macro are erased by the command. To erase all of the sectors in flash memory, it is
necessary to issue the command to each Flash Macro #0 and Flash Macro #1.
Sector Erase Command
A single sector of flash memory can be erased by sending the sector erase command to the target sector in six
consecutive writes. Once the sixth sequential write has finished and 35 μs has elapsed (timeout interval), the automatic
algorithm is activated and the sector erase operation begins.
To erase multiple sectors, issue the sector erase code (0x30) which is the sixth write code of the sector erase command to
the address of the sector to erase within 35 μs (timeout interval). If the sector erase code is not issued within the timeout
interval, the sector erase code added after the timeout interval has elapsed may become inactive.