using a part of HC08 ROM as EEPROM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

using a part of HC08 ROM as EEPROM

1,603 次查看
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.

标签 (1)
0 项奖励
回复
2 回复数

1,065 次查看
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 项奖励
回复

1,065 次查看
sunay
Contributor I

thank you mac.

0 项奖励
回复