GLENN KUBOTA

QG8 flash write on LVD interrupt

Discussion created by GLENN KUBOTA on Dec 19, 2007
Latest reply on Dec 20, 2007 by bigmac
I would like to use the LVD interrupt to save one byte of data to flash in the QG8 part when power is going down.  The flash will already be erased, so I'll only need to program the one byte as power goes down. I'm using CodeWarrior with Processor Expert.   I have two questions:
 
1. Can I write to flash from within the LVD interrupt using SetByteFlash?
 
2. What is the safest thing to do after the flash is programmed?  I don't want the code to run amuck as power goes down.  Is there any software way of forcing the chip into reset?
 
Thanks

Outcomes