Want to know how to READ and WRITE in EEPROM , i am using  MC9 S12G 240

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

Want to know how to READ and WRITE in EEPROM , i am using  MC9 S12G 240

1,426 Views
sanjyotkadu
Contributor I

Hello all,

 

I went through data sheet and sample program about writing and erasing in EEPROM

 

but

i am confuse about how to know or make variable for EEPROM address

similarly

i was not able to find out SFR for EEPROM in data sheet

 

probably some one can explain me basic steps to write /read/erase EEPROM memory in MC9S12G240

 

i am using code warrior ,---does code  warrior  provides any API for it? or can we generate any library using CW?

 

please explain me basics so that i will have good idea of it

 

Thanks and regards

sanjyot kadu

Labels (1)
0 Kudos
2 Replies

841 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

I hvae attached a few examples which willl help you. GN32 and G128 are members of S12G family so approach to EEPROM is the same as for G240. Only memory size of FLASH and EEPROM is different. Small adjustment should be done. memory maps are also attached.

best regards,

Ladislav

0 Kudos

841 Views
Wlodek_D_
Senior Contributor II

Dear sanjyot kadu,

Thank you for your post, however please consider moving it to the right community place for better visibility.

For details please see general advice https://community.freescale.com/docs/DOC-99909

Thank you for using Freescale Community.

Regards,

Wlodek_D.

0 Kudos