
NUC126
Aug. 08, 2018
Page
638
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
counting mode and Timer1 as trigger-counting capture mode.
T0 pin
TIMER0_CTL.
INTRGEN
TIMER0_CTL.
EXTCNTEN
TIMER0_CNT.
CNT
0
1
2
3
99
100
INTR_TMR_TRG
TIMER0_CMP.
CMPDAT
100
0
TIMER1_CNT.
CNT
0
1
2
998
999
TIMER1_CMP.
CAPDAT
999
TIMER1_EINTSTS.
CAPIF
Figure 6.17-12 Inter-Timer Trigger Capture Timing
6.17.5.12 Internal Capture Trigger from ACMP
The external capture function can also be triggered by internal output signal transition on ACMP0, or
ACMP1 output. User can set ACMPSSEL (TIMERx_EXTCTL[9:8]) to decide which ACMP output
signal as Timerx (x= 0~3) capture source. The detail setting of capture function is the same as
previous descriptions in External Capture Mode.
6.17.6
PWM Functional Description
6.17.6.1 PWM Prescale
The PWM prescale is used to divide clock source, and the clock of PWM counter is divided by
( 1). The prescale is set by CLKPSC (TIMERx_PWMCLKPSC[11:0]). Figure 6.17-13 shows
an example of PWM prescale waveform in up count type.
0
1
CNT
(TIMERx_PWMCNT[15:0])
4
Prescale counter
CLKPSC
(TIMERx_PWMCLKPSC[11:0])
3 2 1 0
3
CNTEN
(TIMERx_PWMCTL[0])
4 3 2 1 0 4 3 2 1 0
5 4 3 2 1
6
0
0
2
4
6
TMRx_PWMCLK
4
6
4 3 2 1 0
x
Figure 6.17-13 PWM Prescale Waveform in Up Count Type