Skip to main content
p-alain
Associate III
June 2, 2005
Question

ST10F276 save data in XFlash

  • June 2, 2005
  • 2 replies
  • 630 views
Posted on June 02, 2005 at 05:31

ST10F276 save data in XFlash

This topic has been closed for replies.

2 replies

p-alain
p-alainAuthor
Associate III
June 2, 2005
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
June 2, 2005
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.