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.
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.
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!
---------------------------------------------------------------------------------------------------------------------