We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
Add a slow timer interrupt. Then you can sleep in the while loop and even if your peripherial doesn't generate any interrupts your while loop will be reactivated in a regular way, allowing you to kick/feed the dog.