This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

watchdog - infinite loop in an interrupt



Hi everybody,

I have the following situation:

In an external interupt I must wait for a GPIO to go in H. So I have a while loop and in the condition I check the state of the GPIO. The watchdog is enabled and I service it outside the XINT. The question is what happens if the GPIO remain in L. Will the watchdog expire and trigger the WAKEINT as implemented, or the execution will remain in the infinite loop? I've tried to test this, but I cannot see anything in the debug window, it looks like the execution is forever in XINT, even if I switch the GPIO to H.

Can somebody explain what is happening? Why the watchdog doesn't expire?

Thanks,

Monica