MC9S12XHZ512 EEPROM read write operation

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

MC9S12XHZ512 EEPROM read write operation

ソリューションへジャンプ
2,020件の閲覧回数
kdn
Contributor III

I want to write and read data in/from internal EEPROM of MC9S12XHZ512 micro-controller. Can anyone provide me sample code for it.

I have use processor expert of it but it's showing some error , i have posted below.

ラベル(1)
タグ(2)
1 解決策
1,709件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi KDN,

I don't think you use GetWord()  in a right way.

you need use GetWord() as below:

  byte If_ok;

  word mydata;

  If_ok = IEE1_SetWord((IEE1_TAddress)0x100000,0x1234);

  If_ok = IEE1_GetWord((IEE1_TAddress)0x100000,&mydata);

I attached my demo code and video, it's for 9S12XHY256 but the method is the same for all HCS12X device


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

1 返信
1,710件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi KDN,

I don't think you use GetWord()  in a right way.

you need use GetWord() as below:

  byte If_ok;

  word mydata;

  If_ok = IEE1_SetWord((IEE1_TAddress)0x100000,0x1234);

  If_ok = IEE1_GetWord((IEE1_TAddress)0x100000,&mydata);

I attached my demo code and video, it's for 9S12XHY256 but the method is the same for all HCS12X device


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------