
NUC126
Aug. 08, 2018
Page
443
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
IFCNT0_1
(PWM_IFA[3:0])
IFAEN0_1
(PWM_IFA[7])
zero point event
CNT
(PWM_CNT0[15:0])
2
0
1
2
3
4
3
1
2
0
1
2
3
4
3
1
2
0
5
6
7
6
4
5
1
2
3
4
IFSEL0_1
(PWM_IFA[6:4])
0
PERIOD
(PWM_PERIOD0[15:0])
4
7
IFAIF0_1
(PWM_INTSTS0[7])
X
Figure 6.13-37 PWMx_CH0 and PWMx_CH1 Pair Accumulate Interrupt Waveform
The 2
nd
interrupt is the capture interrupt (CAP_INT). It shares the PWM_INT vector in NVIC. The
CAP_INT can be generated when the CRLIFn (PWM_CAPIF[5:0]) flag is triggered and the Capture
Rising Interrupt Enable bit CAPRIENn (PWM_CAPIEN[5:0]) is set to 1. Or in the falling edge condition,
the CFLIFn (PWM_CAPIF[13:8]) flag can be triggered when the Capture Falling Interrupt Enable bit
CAPFIENn (PWM_CAPIEN[13:8]) is set to 1.
The last one is the brake interrupt (BRK_INT). The details of the BRK_INT is described in the PWM
Brake section.
Figure 6.13-38 demonstrates the architecture of the PWM interrupts.