Yucheng Zhang

CPU RESET on MC9S12XDP512

Discussion created by Yucheng Zhang on Mar 22, 2007
Latest reply on Aug 25, 2009 by william rodriguez
Hi everyone,
 
I have an application with MC9S12XDP512 under CW4.6. The power supply will monitor power surge or power outage.  When it occurs, it will send ACFAIL signal to XIRQ/PE0 and trigger my ISR to deal with this power surge. 25ms after ACFAIL, the power supply starts sending external RESET signal
 
My questions,
 
1. Will this external RESET cause CPU to restart immediately whenever RESET is raised?
 
1. I don't want CPU to be reset within 2 seconds since my board has super capacitor to hold power for about 5 minutes. I want to restart my application after 2 seconds power outage which is considered to be long-term power surge.
 
Do you need to do something in my ACFAIL ISR to set CRG so that my application will keep running before 2 seconds elapse.
 
Any inputs will be greatly appreciated.
 
Thanks a lot for prompt reply.
 
Pang 

Outcomes