Datasheet
Upon clearing NVM_FSTAT[CCIF] to launch the program EEPROM command, the
user-supplied words will be transferred to the memory controller and be programmed if
the area is unprotected. The CCOBIX index value at program EEPROM command
launch determines how many bytes will be programmed in the EEPROM block. The
NVM_FSTAT[CCIF] flag is set when the operation has completed.
Table 4-48. Program EEPROM command error handling
Register Error Bit Error condition
NVM_FSTAT
ACCERR
Set if CCOBIX[2:0] < 010 at command launch
Set if CCOBIX[2:0] >101 at command launch
Set if command is not available in current mode (see Table 4-9)
Set if an invalid global address [23:0] is supplied
Set if the requested group of words breaches the end of the EEPROM
block
FPVIOL Set if the selected area of the EEPROM memory is protected
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
4.5.2.9.15 Erase EEPROM sector command
The erase EEPROM sector operation will erase all addresses in a sector of the EEPROM
block.
Table 4-49. Erase EEPROM sector command FCCOB requirements
CCOBIX[2:0] NVM_FCCOBHI parameters NVM_FCCOBLO parameters
000 0x12 Global address [23:16] to identify EEPROM block
001
Global address [15:0] anywhere within the sector to be erased. See Overview for EEPROM sector
size
Upon clearing NVM_FSTAT[CCIF] to launch the erase EEPROM sector command, the
memory controller will erase the selected EEPROM sector and verify that it is erased.
The NVM_FSTAT[CCIF] flag will set after the erase EEPROM sector operation has
completed.
Flash and EEPROM
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
104 Freescale Semiconductor, Inc.
