Confusion in example for KE watchdog

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Confusion in example for KE watchdog

1,000 Views
mjbcswitzerland
Specialist V

Hi All

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

pastedImage_8.png

This however gives a watchdog timeout of 59.395 seconds.

The reason for this is also given in the manual:

pastedImage_1.png

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.

Regards

Mark

Labels (1)
Tags (2)
0 Kudos
Reply
0 Replies