Page 1 of 1

How to calculate the window watchdog timer (WWDT) time-out interval?

Posted: 28 Mar 2017, 10:37
by a_ziliu
The WWDT time-out interval is calculated as follows:
Pre-scale Value * Counter Value / FWWDT
Pre-scale Value: The pre-scale value
counter Value: The maximum value of the counter, which is a constant 64
FWWDT: Clock source frequency of WWDT
There are two kinds of WWDT clock sources for selection:
HCLK / 2048
10 kHz (LIRC)
The WWDT has a 6-bit counter and a 11-bit pre-scaler. The pre-scale value can be set by the 4-bit PERIODSEL, as shown in the table below:

An example of the WWDT time-out interval calculation is as follows:
Example 1
When the WWDT clock source is 10 kHz and the pre-scaler is set to 2048,
Time-out interval = 2048 * 64 / 10k = 13.1072 s
Example 2
When the WWDT clock source is HCLK / 2048, HCLK is 48 MHz, and the pre-scaler is set to 8, then
Time-out interval = 8 * 64 / (48M / 2048) = 131.072 ms