I tried to use the EEPROM space between 0xC00 and 0XFFF, but, when power is removed and re-applied the memory loses what was previously stored. The datasheet states that writing to EEPROM is automatic so I must be missing something here. I have tried finding assembly language examples using the XEP's internal D-FLASH memory and the explanation given in the data sheet in that section appear to be cryptic so it's difficult to put all of the pieces together. I started coding based on the simple flow chart on page 1173 of the S12XFTM1024K5V2 module documentation, but understanding how to use the FCCOB register or setting a "Field Margin Level" is beyond my comprehension without further explanation. If there are any reasonable examples of how to read and write to the EEPROM at the address starting at 0xC00 then I would be very happy. I have no one else to turn to for help with this. I hope I am not too hopeless for anyone to help me with this.
已解决! 转到解答。
Hi,
I can recommend the application notes:
cache.nxp.com/assets/documents/data/en/application-notes/AN3490.pdf
cache.nxp.com/assets/documents/data/en/application-notes/AN3743.pdf
There are two examples for EEEPROM in the packages at https://community.nxp.com/docs/DOC-329209 (search for EEE in the name of examples)
BTW, C00~FFF is only a Ram which can be used as a memory space (interface) for EEPROM. You can find also the example how it is used as a RAM only.
I believe these examples will help you to understand.
Best regards,
Ladislav