MC9S12XHZ512 EEPROM  data storage Problem

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

MC9S12XHZ512 EEPROM  data storage Problem

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

hi

 CAn anyone tell how to read and write data from the above microcontroller?

what command need to be send for reading data from EEPROM?

 

SARY

ラベル(1)
1 解決策
1,226件の閲覧回数
isionous
Contributor III

Reading from internal EEPROM is like reading from RAM or FLASH. "ldd $0C00" would read a word from EEPROM assuming that $0C00 is an address in EEPROM.  If you are writing in C and there is a variable in the EEPROM, just read from the variable like any other variable.

 

The EPAGE register controls which page of EEPROM is put into the EEPROM window (which is probably at $0800 for your device).

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,227件の閲覧回数
isionous
Contributor III

Reading from internal EEPROM is like reading from RAM or FLASH. "ldd $0C00" would read a word from EEPROM assuming that $0C00 is an address in EEPROM.  If you are writing in C and there is a variable in the EEPROM, just read from the variable like any other variable.

 

The EPAGE register controls which page of EEPROM is put into the EEPROM window (which is probably at $0800 for your device).

0 件の賞賛
返信
1,226件の閲覧回数
SARY
Contributor III

hi

Thanks for your help.There was some address problem .

I Changed thhe address and now its working fine.

Now I m able to read and write data from the EEPROM.

 

SARY

0 件の賞賛
返信