AnsweredAssumed Answered

How to declare a variable which can kept intact from startup zerout?

Question asked by Yucheng Zhang on Aug 2, 2007
Latest reply on Aug 2, 2007 by CrasyCat
Hi everyone,
 
I need to define a variable for power outage monitoring. It is a global variable. but I do not want it to be zeroout thru startup code. Olny the XIRQ ISR can change its value. Therefore, when SYSTEM Reset is assert and system restartup, it will zerout this variable. If this variable is asserted, I am going to skip all the initialization and return to where it were previously.
 
 where  and how to such a varible?
 
Thanks a lot for any inputs.
 
Pang

Outcomes