K10 Watchdog Timeout Setting

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

K10 Watchdog Timeout Setting

1,863件の閲覧回数
maxpag
Contributor I

I'd like to configure the watchdog timer on my K10. More precisely I can't find a formula to fill-in WDOG_TOVALH and WDOG_TOVALL from my timeout value expressed in seconds (or ms). I'm using LPO clock and WDOG_PRES is set to 0.

ラベル(1)
タグ(3)
0 件の賞賛
返信
2 返答(返信)

1,648件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

The Watchdog Time-out Value Register defined in terms of cycles of the watchdog clock. WDOG_TOVALL defines the upper 16 bits of the 32-bit time-out value for the watchdog timer, and WDOG_TOVALL defines the lower 16 bits of the 32-bit time-out value for the watchdog timer.

WDOG_TOVAL.png

Since you are using 1kHz LPO clock and WDOG_PRES is set to 0, one watchdog clock cycle is 1ms.

Your timeout value expressed in ms will equal to the 32-bit time-out value for the watchdog timer.

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
---------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,626件の閲覧回数
Oleksii
Contributor I

So, to have 4s delay: 
WDOG_TOVALH=0x0

WDOG_TOVALL=0x0FA0

Am I correct ?

Thank you very much in advance for the reply.

0 件の賞賛
返信