Is there a way to use a part of HC08 ROM area as EEPROM ? it needs me on hc908LJ12 core which doesnt have EEPROM.
if there is a way pls post it in C if possible.
Hello sunay, and welcome to the forum.
The device datasheet contains the details for the use of the Monitor ROM routines, that you will need to make use of for EEPROM emulation within flash, for the storage of non-volatile data from within your code. Application note AN2874 also contains similar information.
For NV data that is infrequently changed, the subroutines ERARNGE and PRGRNGE would generally be used, However, I notice that this particular device also provides the ROM routines EE_WRITE and EE_READ, with which I am not familar. A recent thread discusses a similar issue for a different device from the same family.
To provide C coded funtions to erase a flash sector, and to program individual bytes within a sector, it will probably be simpler make use of inline assembly code within each function, to setup and call the ROM resident routines.
thank you mac.
Retrieving data ...