Confusion in example for KE watchdog

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Confusion in example for KE watchdog

1,028 次查看
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

标签 (1)
标记 (2)
0 项奖励
回复
0 回复数