NuMicro® NUC029LEE/NUC029SEE
32-bit Arm
®
Cortex
®
-M0 Microcontroller
Aug, 2018
Page
260
of
497
Rev 1.00
N
U
MICRO
®
N
UC02
9L
E
E
/N
UC029
S
E
E
T
E
CHN
ICA
L R
E
F
E
R
E
NC
E
M
A
NU
A
L
PWM-Timer
Output 0/2/4/6
PWM-Timer
Inversed output
1/3/5/7
Dead-Zone
Generator
output 0/2/4/6
Dead-Zone
Generator
output 1/3/5/7
Dead zone interval
Figure 6.9-14 Paired-PWM Output with Dead-zone Generation Operation
6.9.5.7 PWM Center-aligned Trigger ADC Function
PWM can trigger ADC to start conversion when PWM counter up count to CNR in Center-aligned
type by setting PWMnTEN (TCON[3:0]) to
“1”.
CNRn (7FF)
CMRn (3FF)
PWMnTF (if PWMnTEN=1)
PWMn generator ouput
s/w
clear
s/w
clear
PWM period
PWM period
Figure 6.9-15 PWM trigger ADC to conversion in Center-aligned type Timing Waveform
6.9.5.8 Capture Operation
The Capture 0 and PWM 0 share one timer that included in PWM 0; and the Capture 1 and PWM
1 share another timer, and etc. The capture always latches PWM-counter to CRLRn when input
channel has a rising transition and latches PWM-counter to CFLRn when input channel has a
falling transition. Capture channel 0 interrupt is programmable by setting CRL_IE0 (CCR0[1])
(Rising latch Interrupt enable) and CFL_IE0 (CCR0[2]) (Falling latch Interrupt enable) to decide
the condition of interrupt occur. Capture channel 1 has the same feature by setting CRL_IE1
(CCR0[17]) and CFL_IE1 (CCR0[18]), and etc. Whenever the Capture controller issues a capture
interrupt, the corresponding PWM counter will be reloaded with CNRn at this moment. Note that