Confusion in example for KE watchdog

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Confusion in example for KE watchdog

1,071件の閲覧回数
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 返答(返信)