NuMicro® NUC029LEE/NUC029SEE
32-bit Arm
®
Cortex
®
-M0 Microcontroller
Aug, 2018
Page
243
of
497
Rev 1.00
N
U
MICRO
®
N
UC02
9L
E
E
/N
UC029
S
E
E
T
E
CHN
ICA
L R
E
F
E
R
E
NC
E
M
A
NU
A
L
Timer Compare Register (TCMPR)
Register
Offset
R/W
Description
Reset Value
TCMPR0
T0x04 R/W
Timer0 Compare Register
0x0000_0000
TCMPR1
T0x24 R/W
Timer1 Compare Register
0x0000_0000
TCMPR2
T0x04 R/W
Timer2 Compare Register
0x0000_0000
TCMPR3
T0x24 R/W
Timer3 Compare Register
0x0000_0000
31
30
29
28
27
26
25
24
Reserved
23
22
21
20
19
18
17
16
TCMP
15
14
13
12
11
10
9
8
TCMP
7
6
5
4
3
2
1
0
TCMP
Bits
Description
[31:24]
Reserved
Reserved.
[23:0]
TCMP
Timer Compared Value
TCMP is a 24-bit compared value register. When the internal 24-bit up counter value is
equal to TCMP value, the TIF flag will set to 1.
Time-out period = (Period of Timer clock input) * (8-bit PR 1) * (24-bit TCMP).
Note1:
Never write 0x0 or 0x1 in TCMP field, or the core will run into unknown state.
Note2:
When timer is operating at continuous counting mode, the 24-bit up counter will
keep counting continuously even if user writes a new value into TCMP field. But if timer is
operating at other modes, the 24-bit up counter will restart counting and using newest
TCMP value to be the timer compared value if user writes a new value into TCMP field.