![Nuvoton NuMicro MS51 32K Series Скачать руководство пользователя страница 360](http://html1.mh-extra.com/html/nuvoton/numicro-ms51-32k-series/numicro-ms51-32k-series_technical-reference-manual_1720303360.webp)
MS51
Nov. 28, 2019
Page
360
of 491
Rev 1.00
MS51
32K
SE
RIES
TE
CHNICAL RE
F
EREN
CE MA
N
UAL
6.8.2
Control register of WKT
WKCON
– Self Wake-up Timer Control
Register
SFR Address
Reset Value
WKCON
8FH, Page0
0000_0000b
7
6
5
4
3
2
1
0
-
-
-
WKTF
WKTR
WKPS[2:0]
-
-
-
R/W
R/W
R/W
Bit
Name
Description
7:5
-
Reserved
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.