Datasheet

Chapter 2 256 Kbyte Flash Module (S12FTS256K2V1)
MC9S12E256 Data Sheet, Rev. 1.10
Freescale Semiconductor 105
Except for the sector erase abort command, a buffered command will wait for the active operation to be
completed before being launched. The sector erase abort command is launched when the CBEIF flag is
cleared as part of a sector erase abort command write sequence. After a command is launched, the
completion of the command operation is indicated by the setting of the CCIF flag. The CCIF flag only sets
when all active and buffered commands have been completed.
2.4.1.3 Valid Flash Commands
Table 2-21 summarizes the valid Flash commands along with the effects of the commands on the Flash
block.
CAUTION
A Flash word must be in the erased state before being programmed.
Cumulative programming of bits within a Flash word is not allowed.
Table 2-21. Valid Flash Command Description
FCMDB
NVM
Command
Function on Flash Memory
0x05 Erase
Verify
Verify all memory bytes in the Flash block are erased. If the Flash block is erased, the BLANK
flag in the FSTAT register will set upon command completion.
0x06 Data
Compress
Compress data from a selected portion of the Flash block. The resulting signature is stored in
the FDATA register.
0x20 Program Program a word (two bytes) in the Flash block.
0x40 Sector
Erase
Erase all memory bytes in a sector of the Flash block.
0x41 Mass
Erase
Erase all memory bytes in the Flash block. A mass erase of the full Flash block is only possible
when FPLDIS, FPHDIS, and FPOPEN bits in the FPROT register are set prior to launching the
command.
0x47 Sector
Erase
Abort
Abort the sector erase operation. The sector erase operation will terminate according to a set
procedure. The Flash sector must not be considered erased if the ACCERR flag is set upon
command completion.