using a part of HC08 ROM as EEPROM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

using a part of HC08 ROM as EEPROM

912 Views
sunay
Contributor I

hello guys,

 

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.

 

thanks,

sunay.

Labels (1)
0 Kudos
2 Replies

374 Views
bigmac
Specialist III

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.

https://community.freescale.com/thread/68542

 

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.

 

Regards,

Mac

 

0 Kudos

374 Views
sunay
Contributor I

thank you mac.

0 Kudos