Datasheet

Section 22 Flash Memory
Rev. 3.00 Sep. 28, 2009 Page 705 of 910
REJ09B0350-0300
4. When the program preparation notice is received, the state of waiting for program data is
entered. The start address of the programming destination and program data must be
transmitted after the programming command is transmitted. When programming is finished,
the start address of the programming destination must be set to H'FFFFFFFF and transmitted.
Then the state of waiting for program data is returned to the state of waiting for
programming/erasing command. When reprogramming an erase block including an area on
which the programming end command is issued, erase the erase block. An example of the
erase block is shown in figure 22.9. When the erasure preparation notice is received, the state
of waiting for erase block data is entered. The erase block number must be transmitted after the
erasing command is transmitted. When the erasure is finished, the erase block number must be
set to H'FF and transmitted. Then the state of waiting for erase block data is returned to the
state of waiting for programming/erasing command. Erasure must be executed when the
specified block is programmed without a reset start after programming is executed in boot
mode. When programming can be executed by only one operation, all blocks are erased before
entering the state of waiting for programming/erasing command or another command. Thus, in
this case, the erasing operation is not required. The commands other than the
programming/erasing command perform sum check, blank check (erasure check), and memory
read of the user MAT and user boot MAT, and acquisition of current status information.
Memory read of the user MAT and user boot MAT can only read the data programmed after all
user MAT and user boot MAT have automatically been erased. No other data can be read.
EB5
EB6
EB7
EB8
Before reprogramming erase blocks EB6 and
EB7 on which the programming end command
is issued, erase the blocks (EB6 and EB7).
Programming
end area
Figure 22.9 Example of Erase Block Including Programmed Area