English
Language : 

MC9S12E256 Datasheet, PDF (105/602 Pages) Freescale Semiconductor, Inc – HCS12 Microcontrollers
Chapter 2 256 Kbyte Flash Module (FTS256K2V1)
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-20 summarizes the valid Flash commands along with the effects of the commands on the Flash
block.
Table 2-20. Valid Flash Command Description
FCMDB
NVM
Command
Function on Flash Memory
0x05
0x06
0x20
0x40
0x41
0x47
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.
Data Compress data from a selected portion of the Flash block. The resulting signature is stored in the
Compress FDATA register.
Program Program a word (two bytes) in the Flash block.
Sector Erase all memory bytes in a sector of the Flash block.
Erase
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.
Sector Abort the sector erase operation. The sector erase operation will terminate according to a set
Erase Abort procedure. The Flash sector must not be considered erased if the ACCERR flag is set upon command
completion.
CAUTION
A Flash word must be in the erased state before being programmed.
Cumulative programming of bits within a Flash word is not allowed.
MC9S12E256 Data Sheet, Rev. 1.08
Freescale Semiconductor
105