
NUC126
Aug. 08, 2018
Page
636
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
5
6
7
8
9
10
11
12
13
14
15
TIMERx_CNT
Tx_EXT
CAPIF
XX
6
10
13
TIMERx_CAP
Clear by software
(CAPEDGE=0x02)
Figure 6.17-9 External Capture Mode
6.17.5.9 External Reset Counter Mode
The timer controller also provides reset counter function to reset CNT (TIMERx_CNT[23:0]) value
while edge transition detected on Tx_EXT (x= 0~3). In this mode, most the settings are the same as
event capture mode except CAPFUNCS (TIMERx_EXTCTL[4]) should be as 1 for select Tx_EXT
transition is using to trigger reset counter value.
5
6
0
1
2
3
0
1
2
3
0
TIMERx_CNT
Tx_EXT
CAPIF
Clear by software
(CAPEDGE=0x02)
Figure 6.17-10 External Reset Counter Mode
6.17.5.10 Timer Trigger Function
The timer controller provides timer time-out interrupt or capture interrupt internal trigger event to
generate PWM counter counting once, start ADC convert and trigger PDMA transfer. If TRGSSEL
(TIMERx_TRGCTL[0]) is 0, time-out interrupt signal is used to trigger PWM, ADC and PDMA. If
TRGSSEL (TIMERx_TRGCTL[0]) is 1, capture interrupt signal is used to trigger PWM, ADC and
PDMA.
When the TRGPWM (TIMERx_TRGCTL[1]) is set, if the timer interrupt signal is generated, the timer
controller will generate a trigger one pulse as PWM counter clock source.
When the TRGADC (TIMERx_TRGCTL[2]) is set, if the timer interrupt signal is generated, the timer
controller will trigger ADC to start convert.
When the TRGPDMA (TIMERx_TRGCTL[4]) is set, if the timer interrupt signal is generated, the timer
controller will trigger PDMA to start transfer.