Datasheet
Table 4-27. Read once command error handling
Register Error bit Error condition
FSTAT
ACCERR
Set if CCOBIX[2:0] != 001 at command launch
Set if command is not available in current mode (see Table 4-9)
Set if an invalid phrase index is supplied
FPVIOL None
MGSTAT1 Set if any errors have been encountered during the read
MGSTAT0 Set if any non-correctable errors have been encountered during the read
4.5.2.9.5 Program flash command
The program flash operation will program up to two previously erased longwords in the
flash memory using an embedded algorithm.
Note
A flash phrase must be in the erased state before being
programmed. Cumulative programming of bits within a flash
phrase is not allowed.
Table 4-28. Program flash command FCCOB requirements
CCOBIX[2:0] NVM_FCCOBHI parameters NVM_FCCOBLO parameters
000 0x06 Global address [23:16] to identify flash block
001 Global address [15:0] of longwords location to be programmed
1
010 Word 0 (longword 0) program value
011 Word 1 (longword 0) program value
100 Word 2 (longword 1) program value
101 Word 3 (longword 1) program value
1. Global address [1:0] must be 00.
Upon clearing NVM_FSTAT[CCIF] to launch the program flash command, the memory
controller will program the data words to the supplied global address and will then
proceed to verify the data words read back as expected. The NVM_FSTAT[CCIF] flag
will set after the program flash operation has completed.
Chapter 4 Memory map
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
Freescale Semiconductor, Inc. 95
