Mark Butcher

Confusion in example for KE watchdog

Discussion created by Mark Butcher on Jul 7, 2014

Hi All


With reference to the KE02 manual - the watchdog example code is given as:


This however gives a watchdog timeout of 59.395 seconds.


The reason for this is also given in the manual:



The code should therefore be either

WDOG_TOVALH = (unsigned char )(1000 >> 8);

WDOG_TOVALL = (unsigned char )(1000);


or WDOG_TOVAL = (unsigned short)((1000 >> 8) | (1000 << 8));

and then does give the advertised 1s timeout.