using a part of HC08 ROM as EEPROM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

using a part of HC08 ROM as EEPROM

1,604件の閲覧回数
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,066件の閲覧回数
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,066件の閲覧回数
sunay
Contributor I

thank you mac.

0 件の賞賛
返信