Olgay Korkusuz

MC9RS08KA8 how to write a data to the flash memory while the code is running

Discussion created by Olgay Korkusuz on Jul 17, 2008
Latest reply on Jul 18, 2008 by Ake Webjorn
My program is running in the setup mode at the beginning and gather some trimpot values. Then save them as settings. When you turn the trimpot, the program goes into run mode. There is no problem here. But after power down the settings disappear. I want the circuit to run with the previous setings. So i must write the values in the flash memory. But i couldnt understand how to write to flash memory. Is it mandatory to apply 12V to Vpp?

I use C and code warrior v6.2.

Can you please help me?