![](http://datasheet.mmic.net.cn/370000/P9S12XEP100J1VVLR_datasheet_16728329/P9S12XEP100J1VVLR_901.png)
Chapter 23 1024 KByte Flash Module (S12XFTM1024K5V2)
MC9S12XE-Family Reference Manual Rev. 1.07
Freescale Semiconductor
901
23.4.2.17 Program D-Flash Command
The Program D-Flash operation will program a previously erased word in the D-Flash user partition. The
Program D-Flash operation will confirm that a location was erased prior to programming and that the
location was successfully programmed on 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.
Upon clearing CCIF to launch the Program D-Flash command, the FCCOB parameters will be transferred
to the Memory Controller and be programmed. The CCOBIX index value at Program D-Flash command
launch determines how many words will be programmed in the D-Flash block. No protection checks are
made in the Program D-Flash operation on the D-Flash block, only access error checks. Once the Program
D-FlashcommandhassuccessfullylaunchedontheD-Flashblock,theCCIFflagwillremainclear,setting
only after the Program D-Flash operation has completed in the D-Flash block.
Table 23-66. Program D-Flash Command FCCOB Requirements
CCOBIX[2:0]
FCCOB Parameters
000
0x11
Global address [22:16] to
identify D-Flash block
001
Global address [15:0] of word to be programmed
010
Word 0 program value
011
Word 1 program value, if desired
100
Word 2 program value, if desired
101
Word 3 program value, if desired
Table 23-67. Program D-Flash Command Error Handling
Register
Error Bit
Error Condition
FSTAT
ACCERR
Set if CCOBIX[2:0] < 010 at command launch
Set if CCOBIX[2:0] > 101 at command launch
Set if a Load Data Field command sequence is currently active
Set if command not available in current mode (see
Table 23-29
)
Set if an invalid global address [22:0] is supplied
Set if a misaligned word address is supplied (global address [0] != 0)
Set if the global address [22:0] points to an area in the D-Flash EEE partition
Set if the requested group of words breaches the end of the D-Flash block or goes
into the D-Flash EEE partition
FPVIOL
None
MGSTAT1
Set if any errors have been encountered during the verify operation
MGSTAT0
Set if any non-correctable errors have been encountered during the verify
operation