Dear sir,
I am using ADUC842 for my design. I want to set watchdog timer of 2 sec for any errorneous condition.
In my main function, i have enabled all interrupts already...
I need to configure watchdog timer.
But before that i should disable all the interrupts,set the watchdog timer and again enable the interrupts. since i have enabled all interrupts,i cant configure watchdog timer in the main function.
where should i configure the watchdog timer ? pls help.
Regards, Mayuri G
If you configure all your interrupts in main() - what is stopping you from configuring the watchdog in main()? Can't you initialize the watchdog before you initialize the interrupts?
Another thing - you are aware that it is possible to disable the interrupt handling for critical sections that can't support any interrupts to interfere?