
Mini57
Apr. 06, 2017
Page 199 of 475
Rev.1.00
MINI5
7
S
E
RI
E
S
TECH
NIC
A
L R
E
F
E
RE
N
CE
MA
N
UA
L
Timer Compare Register (TIMERx_CMP)
Register
Offset
R/W
Description
Reset Value
TIMER0_CMP
0x04
R/W
Timer0 Compare Register
0x0000_0000
TIMER1_CMP
0x24
R/W
Timer1 Compare Register
0x0000_0000
31
30
29
28
27
26
25
24
Reserved
23
22
21
20
19
18
17
16
CMPDAT
15
14
13
12
11
10
9
8
CMPDAT
7
6
5
4
3
2
1
0
CMPDAT
Bits
Description
[31:24]
Reserved
Reserved.
[23:0]
CMPDAT
Timer Compared Value
CMPDAT is a 24-bit compared value register. When the internal 24-bit up counter value
is equal to CMPDAT value, the TIF flag will set to 1.
Time-out period = (Period of Timer clock source) * (8-bit PSC + 1) * (24-bit CMPDAT).
Note1:
Never write 0x0 or 0x1 in CMPDAT 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 software writes a new value into CMPDAT field. But if
Timer is operating at other modes except Periodic mode on M05xxDN/DE, the 24-bit up
counter will restart counting and using newest CMPDAT value to be the timer compared
value if software writes a new value into CMPDAT field.