
NUC126
Aug. 08, 2018
Page
668
of 943
Rev 1.03
NUC12
6 S
E
RI
E
S
T
E
CH
NI
CA
L R
E
F
E
RE
NCE
MA
NUA
L
[8]
ACMPSSEL
ACMP Source Selection to Trigger Capture Function
0 = Capture Function source is from internal ACMP0 output signal.
1 = Capture Function source is from internal ACMP1 output signal.
Note:
these bits only available when CAPSRC (TIMERx_CTL[22]) is 1.
[7]
CNTDBEN
Timer Counter Pin De-bounce Enable Bit
0 = Tx (x= 0~3) pin de-bounce Disabled.
1 = Tx (x= 0~3) pin de-bounce Enabled.
Note:
If this bit is enabled, the edge detection of Tx pin is detected with de-bounce circuit.
[6]
CAPDBEN
Timer External Capture Pin De-bounce Enable Bit
0 = Tx_EXT (x= 0~3) pin de-bounce or ACMP output de-bounce Disabled.
1 = Tx_EXT (x= 0~3) pin de-bounce or ACMP output de-bounce Enabled.
Note:
If this bit is enabled, the edge detection of Tx_EXT pin or ACMP output is detected
with de-bounce circuit.
[5]
CAPIEN
Timer External Capture Interrupt Enable Bit
0 = Tx_EXT (x= 0~3) pin detection Interrupt Disabled.
1 = Tx_EXT (x= 0~3) pin detection Interrupt Enabled.
Note:
CAPIEN is used to enable timer external interrupt. If CAPIEN enabled, timer will rise
an interrupt when CAPIF (TIMERx_EINTSTS[0]) is 1.
For example, while CAPIEN = 1, CAPEN = 1, and CAPEDGE = 00, a 1 to 0 transition on
the Tx_EXT pin will cause the CAPIF to be set then the interrupt signal is generated and
sent to NVIC to inform CPU.
[4]
CAPFUNCS
Capture Function Selection
0 = External Capture Mode Enabled.
1 = External Reset Mode Enabled.
Note1:
When CAPFUNCS is 0, transition on Tx_EXT (x= 0~3) pin is using to save current
24-bit timer counter value (CNT value) to CAPDAT field.
Note2:
When CAPFUNCS is 1, transition on Tx_EXT (x= 0~3) pin is using to save current
24-bit timer counter value (CNT value) to CAPDAT field then CNT value will be reset
immediately.
[3]
CAPEN
Timer External Capture Pin Enable Bit
This bit enables the Tx_EXT capture pin input function.
0 =Tx_EXT (x= 0~3) pin Disabled.
1 =Tx_EXT (x= 0~3) pin Enabled.
[2:1]
Reserved
Reserved.
[0]
CNTPHASE
Timer External Count Phase
This bit indicates the detection phase of external counting pin Tx (x= 0~3).
0 = A falling edge of external counting pin will be counted.
1 = A rising edge of external counting pin will be counted.