Chapter 21 64 KB Flash Module (S12ZFTMRZ64K2KV2)
S12ZVHY/S12ZVHL Family Reference Manual Rev. 1.05
Freescale Semiconductor
735
Upon clearing 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 words will be programmed in the
EEPROM block. The CCIF flag is set when the operation has completed.
21.4.7.16 Erase EEPROM Sector Command
The Erase EEPROM Sector operation will erase all addresses in a sector of the EEPROM block.
Table 21-64. Program EEPROM Command FCCOB Requirements
Register
FCCOB Parameters
FCCOB0
0x11
Global address [23:16] to
identify the EEPROM block
FCCOB1
Global address [15:0] of word to be programmed
FCCOB2
Word 0 program value
FCCOB3
Word 1 program value, if desired
FCCOB4
Word 2 program value, if desired
FCCOB5
Word 3 program value, if desired
Table 21-65. Program EEPROM 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 command not available in current mode (see
)
Set if an invalid global address [23:0] is supplied
Set if a misaligned word address is supplied (global address [0] != 0)
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
Table 21-66. Erase EEPROM Sector Command FCCOB Requirements
Register
FCCOB Parameters
FCCOB0
0x12
Global address [23:16] to identify
EEPROM block
FCCOB1
Global address [15:0] anywhere within the sector to be erased.
See
for EEPROM sector size.