NUC970 Technical Reference Manual
Publication Release Date: Dec. 15, 2015
- 337 -
Revision V1.30
NUC97
0
T
E
CHNIC
A
L
RE
F
E
RE
N
CE
MA
NUA
L
Enhance Timer n Control Register (ETMRn_CTL)
Register
Offset
R/W
Description
Reset Value
ETMRn_CTL
n=0,1,2,3
E0x000 R/W
Enhance Timer n Control Register
0x0000_0000
31
30
29
28
27
26
25
24
Reserved
23
22
21
20
19
18
17
16
Reserved
TCAP_DEB_EN
Reserved
CAP_CNT_MOD
TCAP_EDGE
TCAP_MODE
TCAP_EN
15
14
13
12
11
10
9
8
Reserved
7
6
5
4
3
2
1
0
ETMR_ACT
Reserved
MODE_SEL
DBGACK_EN
WAKE_EN
SW_RST
ETMR_EN
Bits
Description
[31:23]
Reserved
Reserved.
[22]
CAP_DEB_EN
Tcapture Pin De-bounce Enable
When CAP_DEB_EN is set, the Tcapture pin de-bounce circuit will be enabled to eliminate
the bouncing of the signal.
In de-bounce circuit the Tcapture pin signal will be sampled 4 times by ECLKetmr.
0 = De-bounce circuit Disabled.
1 = De-bounce circuit Enabled.
Note:
When TCAP_EN is enabled, enable this bit is recommended. And, while TCAP_EN
is disabled, disable this bit is recommended to save power consumption.
[21]
Reserved
Reserved.
[20]
CAP_CNT_MOD
Timer Capture Counting Mode Selection
This bit indicates the behavior of 24-bit up-counting timer while TCAP_EN is set to high.
If this bit is 0, the free-counting mode, the behavior of 24-bit up-counting timer is defined
by MODE_SEL field. When TCAP_EN is set, TCAP_MODE is 0, and the transition of
Tcapture pin matches the TCAP_EDGE setting, the value of 24-bit up-counting timer will
be saved into register ETMRn_TCAPn.
If this bit is 1, Trigger-counting mode, 24-bit up-counting timer will be not counting and
keep its value at zero. When TCAP_EN is set, TCAP_MODE is 0, and once the transition
of external pin matc
he
s the 1
st
transition of TCAP_EDGE setting, the 24-bit up-counting
timer will start counting. And then if the transition of external pin matches the 2
nd
transition
of TCAP_EDGE setting, the 24-bit up-counting timer will stop counting. And its value will
be saved into register ETMRn_TCAPn.
0 = Capture with free-counting timer mode.
1 = Capture with trigger-counting timer mode.
Note:
For ETMRn+1_CTL, if INTR_TRG_EN is set, the CAP_CNT_MOD will be forced to
high, the capture with Trigger-counting Timer mode.