MS51
Dec. 17, 2019
Page
55
of 316
Rev 1.01
M
S51
SE
RIES
TE
CHNICA
L REF
ERE
N
CE MA
NU
A
L
WKCON
– Self Wake-up Timer Control
Regiser
Address
Reset Value
WKCON
8FH, all pages
0000_0000b
7
6
5
4
3
2
1
0
-
-
-
WKTF
WKTR
WKPS[2:0]
-
-
-
R/W
R/W
R/W
Bit
Name
Description
4
WKTF
WKT overflow flag
This bit is set when WKT overflows. If the WKT interrupt and the global interrupt are enabled,
setting this bit will make CPU execute WKT interrupt service routine. This bit is not automatically
cleared via hardware and should be cleared via software.
3
WKTR
WKT run control
0 = WKT is halted.
1 = WKT starts running.
Note that the reload register RWK can only be written when WKT is halted (WKTR bit is 0). If
WKT is written while WKTR is 1, result is unpredictable.
2:0
WKPS[2:0]
WKT pre-scalar
These bits determine the pre-scale of WKT clock.
000 = 1/1.
001 = 1/4.
010 = 1/16.
011 = 1/64.
100 = 1/256.
101 = 1/512.
110 = 1/1024.
111 = 1/2048.