
M0A21/M0A23 Series
May 06, 2022
Page
327
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
6.9.5
Functional Description
The WWDT includes a 6-bit down counter with programmable prescale value to define different WWDT
time-out intervals. The clock source of 6-bit WWDT is based on system clock divide 2048 (HCLK/2048)
or 38.4 kHz internal low speed RC oscillator (LIRC) with a programmable 11-bit prescale counter value
which controlled by PSCSEL (WWDT_CTL[11:8]). Also, the correlate of PSCSEL (WWDT_CTL[11:8])
and prescale value are listed in Table 6.9-1.
PSCSEL
Prescaler Value
Max. Time-Out Period
Max. Time-Out Interval
(WWDT_CLK=38.4 kHz)
0000
1
1 * 64 * T
WWDT
1.666667 ms
0001
2
2 * 64 * T
WWDT
3.33333 ms
0010
4
4 * 64 * T
WWDT
6.6667 ms
0011
8
8 * 64 * T
WWDT
13.333 ms
0100
16
16 * 64 * T
WWDT
26.667 ms
0101
32
32 * 64 * T
WWDT
53.333 ms
0110
64
64 * 64 * T
WWDT
106.66 ms
0111
128
128 * 64 * T
WWDT
213.33 ms
1000
192
192 * 64 * T
WWDT
320 ms
1001
256
256 * 64 * T
WWDT
426.66 ms
1010
384
384 * 64 * T
WWDT
640 ms
1011
512
512 * 64 * T
WWDT
853.33 ms
1100
768
768 * 64 * T
WWDT
1.28 s
1101
1024
1024 * 64 * T
WWDT
1.706 s
1110
1536
1536 * 64 * T
WWDT
2.56 s
1111
2048
2048 * 64 * T
WWDT
3.413 s
Table 6.9-1 WWDT Prescaler Value Selection
WWDT Counting
When the WWDTEN (WWDT_CTL[0]) is set, WWDT down counter will start counting from 0x3F to 0.
To prevent program runs to disable WWDT counter counting unexpected, the WWDT_CTL register can
only be written once after chip is powered on or reset. User cannot disable WWDT counter counting
(WWDTEN), change counter prescale period (PSCSEL) or change window compare value (CMPDAT)
while WWDTEN (WWDT_CTL[0]) has been enabled by user unless chip is reset.
To avoid the system is reset while CPU clock is disabled, the WWDT counter will stop counting when
CPU enters Idle/Power-down mode. After CPU enters normal mode, the WWDT counter will start down
counting.
WWDT Compare Match Interrupt
During down counting by the WWDT counter, the WWDTIF (WWDT_STATUS[0]) is set to 1 while the
WWDT counter value (CNTDAT) is equal to window compare value (CMPDAT) and WWDTIF can be
cleared by user; if INTEN (WWDT_CTL[1]) is also set to 1 by user, the WWDT compare match interrupt
signal is generated also while WWDTIF is set to 1 by hardware.
WWDT Reset System
Figure 6.9-3 shows three cases of WWDT reset and reload behavior.