Page 1 of 1

MCU Watchdog Timer

PostPosted: Tue Jan 08, 2013 8:28 am
by whywhy
Hi,

I want to used MCU Watch Timer.
Where is the best place to clear the timer?

Thanks.

Re: MCU Watchdog Timer

PostPosted: Tue Jan 08, 2013 9:22 pm
by peter
Hi,
not so crucial where you kick the dog. Don't do it in a time interrupt, since even if your code hangs, the interrupt could still be working and would keep on kicking the dog.

I would put it in a separate self testing task, that performs some system checks and if everything is alright, kicks the dog.

/Peter