Hello,
I have a problem when i disable the watchdog
// WDTCN = 0x0DE; // WDTCN = 0x0AD;
at the begining of the main. I put a breakpoint at the external interrupt 0. It will never go in and stop at the breakpoint. When i stop the program. I will stay inside the while loop and I checked the interrupt peripheral, it seems that interrupt 0 has been requested.
This problem will not happen when I enable the watchdog in the begining of the main.
WDTCN = 0xFF; // lock out the watchdog disable feature WDTCN = 0xA5; // enable and restart watchdog timer
Anybody has any idea about this?