This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

watchdog timer in idle mode

Could someone of you explain me a common way to restore the register value of the watchdog timer? I'm working with the LPC2214 controller.

At the beginning of the programm I initialize everyting (as well as the watchdog and his timer). The main loop includes only a while(1) loop, because the whole programm is only waiting for interrupts from the peripheral.

In the main while(1) loop I restore the watchdog timer. But if the controller has nothing to do I want to change the mode to idle mode. The watchdog timer is not disabled in idle mode but if the watchdog timer times out a interrupt occured and the cpu will be resettet.

thanks in advance
Joe

0