Dear Alan,
Power Supply sends out two separate signals: ACFAIL and RESET. ACFAIL -> XIRQ, RESET from power supply -> RESET pin (MCU).
When MCU receives RESET in LOW, it will not restart until RESET in High. Is this correct? if it is true, what I want to do, in XIRQ ISR, how can I ignore this EXTERNAL RESET signal so that it won't generate internal reset (SYSTEM RESET) since XIRQ has 25ms to prevent INTERNAL RESET from triggering.
I would like to say in XIRQ:
COPCTL = 0x01;
ARMCOP = 0x55;
ARMCOP = 0xAA; // start COP
As here, I need to know to prevent Internal RESET from triggering. (need your help)
Then I need to watch EXTERNAL RESET signal from Power Supply. Is there a way to watch this pin?
If it is high less than two seconds, I will disable COP, otherwise, I will let it go --- restart from COP reset
My understanding may be wrong. Thanks for corrections.
Pang