![NXP Semiconductors MC9S08PA4 Reference Manual Download Page 84](http://html1.mh-extra.com/html/nxp-semiconductors/mc9s08pa4/mc9s08pa4_reference-manual_1721838084.webp)
Table 4-45. Erase verify EEPROM section command error handling (continued)
Register
Error bit
Error condition
Set if an invalid global address [23:0] is supplied
Set if the requested section breaches the end of the EEPROM block
FPVIOL
None
MGSTAT1
Set if any errors have been encountered during the read or if blank check
failed
MGSTAT0
Set if any non-correctable errors have been encountered during the read
or it blank check failed.
4.5.2.9.14 Program EEPROM command
The program EEPROM operation programs one to four previously erased bytes in the
EEPROM block. The program EEPROM operation will confirm that the targeted
location(s) were successfully programmed upon completion.
Note
A EEPROM byte must be in the erased state before being
programmed. Cumulative programming of bits within a
EEPROM byte is not allowed.
Table 4-46. Program EEPROM command FCCOB requirements
CCOBIX[2:0]
NVM_FCCOBHI parameters
NVM_FCCOBLO parameters
000
0x11
Global address [23:16] to identify the EEPROM block
001
Global address [15:0] of the first word to be verified
010
Byte 0 program value
011
Byte 1 program value, if desired
100
Byte 2 program value, if desired
101
Byte 3 program value, if desired
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-47. 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
Table continues on the next page...
Flash and EEPROM
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
84
NXP Semiconductors
Summary of Contents for MC9S08PA4
Page 1: ...MC9S08PA4 Reference Manual Supports MC9S08PA4 Document Number MC9S08PA4RM Rev 5 08 2017 ...
Page 2: ...MC9S08PA4 Reference Manual Rev 5 08 2017 2 NXP Semiconductors ...
Page 22: ...MC9S08PA4 Reference Manual Rev 5 08 2017 22 NXP Semiconductors ...
Page 28: ...System clock distribution MC9S08PA4 Reference Manual Rev 5 08 2017 28 NXP Semiconductors ...
Page 150: ...Port data registers MC9S08PA4 Reference Manual Rev 5 08 2017 150 NXP Semiconductors ...
Page 196: ...Human machine interfaces HMI MC9S08PA4 Reference Manual Rev 5 08 2017 196 NXP Semiconductors ...
Page 224: ...Instruction Set Summary MC9S08PA4 Reference Manual Rev 5 08 2017 224 NXP Semiconductors ...
Page 232: ...Functional Description MC9S08PA4 Reference Manual Rev 5 08 2017 232 NXP Semiconductors ...
Page 258: ...FTM Interrupts MC9S08PA4 Reference Manual Rev 5 08 2017 258 NXP Semiconductors ...
Page 294: ...Functional description MC9S08PA4 Reference Manual Rev 5 08 2017 294 NXP Semiconductors ...
Page 398: ...Resets MC9S08PA4 Reference Manual Rev 5 08 2017 398 NXP Semiconductors ...
Page 400: ...MC9S08PA4 Reference Manual Rev 5 08 2017 400 NXP Semiconductors ...