ML51/ML54/ML56
Sep. 01, 2020
Page
167
of 719
Rev 2.00
ML
51
/ML
54
/ML
5
6 S
E
RI
E
S
TECHNI
CA
L
RE
F
E
R
E
NC
E
M
A
NU
A
L
ML51/M
L54
/M
L56
Series
Tec
hnical Reference
Manual
WDCON
– Watchdog Timer Control (TA Protected)
Register
SFR Address
Reset Value
WDCON
AAH, Page 0, TA protected
POR 0000_0111 b
WDT 0000_1UUU b
Others 0000_UUUU b
7
6
5
4
3
2
1
0
WDTR
WDCLR
WDTF
WIDPD
WDTRF
WDPS[2:0]
R/W
R/W
R/W
R/W
R/W
R/W
Bit
Name
Description
[7]
WDTR
WDT Run
This bit is valid only when control bits in WDTEN[3:0] (CONFIG4[7:4]) are all 1. At this time,
WDT works as a general purpose timer.
0 = WDT Disabled.
1 = WDT Enabled. The WDT counter starts running.
[6]
WDCLR
WDT Clear
Setting this bit will reset the WDT count to 00H. It puts the counter in a known state and
prohibit the system from unpredictable reset. The meaning of writing and reading WDCLR bit
is different.
Writing:
0 = No effect.
1 = Clearing WDT counter.
Reading:
0 = WDT counter is completely cleared.
1 = WDT counter is not yet cleared.
[5]
WDTF
WDT Time-Out Flag
This bit indicates an overflow of WDT counter. This flag should be cleared by software.
[4]
WIDPD
WDT Running in Idle or Power-Down Mode
This bit is valid only when control bits in WDTEN[3:0] (CONFIG4[7:4]) are all 1. It decides
whether WDT runs in Idle or Power-down mode when WDT works as a general purpose
timer.
0 = WDT stops running during Idle or Power-down mode.
1 = WDT keeps running during Idle or Power-down mode.
[3]
WDTRF
WDT Reset Flag
When the CPU is reset by WDT time-out event, this bit will be set via hardware. This flag is
recommended to be cleared via software after reset.
[2:0]
WDPS[2:0]
WDT Clock Pre-Scalar Select
These bits determine the pre-scale of WDT clock from 1/1 through 1/256. Table 6.6-1
Watchdog Timer-out Interval Under Different Pre-scalars The default is the maximum pre-
scale value.