NUC970 Technical Reference Manual
Publication Release Date: Dec. 15, 2015
- 338 -
Revision V1.30
NUC97
0
T
E
CHNIC
A
L
RE
F
E
RE
N
CE
MA
NUA
L
Bits
Description
[19:18]
TCAP_EDGE
Tcapture Pin Edge Detect Selection
This field defines that active transition of Tcapture pin is for timer counter reset function or
for timer capture function.
For timer counter reset function and free-counting mode of timer capture function, the
configurations are:
TCAP_EDGE
Tcapture Pin Edge Detect
00
A falling edge (1 to 0 transition) on Tcapture pin is an active
transition.
01
A rising edge (0 to 1 transition) on Tcapture pin is an active
transition.
10
Both falling edge (1 to 0 transition) and rising edge (0 to 1
transition) on Tcapture pin are active transitions.
11
Both falling edge (1 to 0 transition) and rising edge (0 to 1
transition) on Tcapture pin are active transitions.
For trigger-counting mode of timer capture function, the configurations are:
TCAP_EDGE
Tcapture Pin Edge Detect
00
1
st
falling edge on Tcapture pin triggers 24-bit timer to start
counting
,
while 2
nd
falling edge triggers 24-bit timer to stop
countin
g.
01
1
st
rising edge on Tcapture pin triggers 24-bit timer to start
counting
,
while 2
nd
rising edge triggers 24-bit timer to stop
counting.
10
Falling edge on Tcapture pin triggers 24-bit timer to start
counting, while rising edge triggers 24-bit timer to stop counting.
11
Rising edge on Tcapture pin triggers 24-bit timer to start
counting, while falling edge triggers 24-bit timer to stop counting.
Note:
For ETMRn+1_CTL, if INTR_TRG_EN is set, the TCAP_EDGE will be forced to 11.
[17]
TCAP_MODE
Tcapture Pin Function Mode Selection
This bit indicates if the transition on Tcapture pin is used as timer counter reset function or
timer capture function.
0 = The transition on Tcapture pin is used as timer capture function.
1 = The transition on Tcapture pin is used as timer counter reset function.
Note:
For ETMRn+1_CTL, if INTR_TRG_EN is set, the TCAP_MODE will be forced to
low.
[16]
TCAP_EN
Tcapture Pin Functional Enable
This bit controls if the transition on Tcapture pin could be used as timer counter reset
function or timer capture function.
0 = The transition on Tcapture pin is ignored.
1 = The transition on Tcapture pin will result in the capture or reset of 24-bit timer counter.
Note:
For ETMRn_CTL, if INTR_TRG_EN is set, the TCAP_EN will be forced to low and
the Tcapture pin transition is ignored.
Note:
For ETMRn+1_CTL, if INTR_TRG_EN is set, the TCAP_EN will be forced to high.
[15:8]
Reserved
Reserved.