English
Language : 

MC9S12NE64_06 Datasheet, PDF (90/554 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 2 64 Kbyte Flash Module (S12FTS64KV3)
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-18 summarizes the valid Flash commands along with the effects of the commands on the Flash
block.
Table 2-18. Valid Flash Command Description
FCMDB
NVM
Command
Function on Flash Memory
0x05
0x06
0x20
0x40
0x41
0x47
Erase Verify all memory bytes in the Flash block are erased. If the Flash block is erased, the BLANK
Verify 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
Compress the 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
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.
CAUTION
A Flash word must be in the erased state before being programmed.
Cumulative programming of bits within a Flash word is not allowed.
MC9S12NE64 Data Sheet, Rev. 1.1
90
Freescale Semiconductor