cancel
Showing results for 
Search instead for 
Did you mean: 

ST10F276 save data in XFlash

p-alain
Associate II
Posted on June 02, 2005 at 05:31

ST10F276 save data in XFlash

2 REPLIES 2
p-alain
Associate II
Posted on June 02, 2005 at 04:51

I work with the St10F276 and Keil.

Could somebody explain to me how i could save permanent data in XFlash before shutting down my st10. And how I could read it at the next start.

Thank you.

najoua
Associate II
Posted on June 02, 2005 at 05:31

Hello,

To be able to access the ST10F276 XFLASH module, please make sure that:

- flash is enabled by setting ROMEN bit in SYSCON register.

- XFLASH is enabled (by setting XFLASHEN bit in XPERCON register and XPEN bit in SYSCON register) in order to be able to access the flash registers.

- SMOD bit in FCR0H register is cleared otherwise the write operation will be performed on IFLASH module.

Have a look to the ST10F276 datasheet, page 74 (''Write Operation Examples'' section 5.6) where good examples are given and i am sure that they will help you.

Najoua.