
NUC126
Aug. 08, 2018
Page
449
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
order of the transferred data (falling edge captured is first or rising edge captured first). The
complement pair channels share a PDMA channel. Therefore, a selection bit CHSELn_m (CHSEL0_1
(PWM_PDMACTL[4]), CHSEL2_3 (PWM_PDMACTL[12]) and CHSEL4_5 (PWM_PDMACTL[20])) bit
is used to decide either channel n or channel m can be serviced by the PDMA channel.
Figure 6.13-43 is capture PDMA waveform. In this case, the CHSEL0_1 (PWM_PDMACTL[4]) bit is
set to 0. Hence the PDMA will service channel 0 for the capture data transfer. CAPMOD0_1
(PWM_PDMACTL[2:1]) bits are set to 3. That means both of the rising and falling edge captured data
will be transferred to the memory. The CAPORD0_1 (PWM_PDMACTL[1]) bit is set to 1, so the rising
edge data will be the first data to transfer and following is the falling edge data to transfer. As shown in
Figure 6.13-43, the last assertions of the CRLIF0 and CFLIF0 signal have some overlap. The value of
PWM_RCAPDAT0 register is 11 will be loaded to PWM_PDMACAP0_1 register to wait for transfer but
not the PWM_FCAPDAT0 value. The PWM_PDMACAP0_1 register saves the data which will be
transferred to the memory by PDMA. The HWDATA in this figure denotes the data which are being
transferred by PDMA.
14
15
PWM_FCAPDAT0
15
PWM_RCAPDAT0
CRLIF0
CFLIF0
3
11
6
d
14
15
PWM_PDMACAP0_1
11
d
3
3
PWM_request
PDMA_ack
14
15
11
3
HWDATA
CHEN0_1
Setting:
CAPMOD0_1 (PWM_PDMACTL[2:1]) = 3
CAPORD0_1 (PWM_PDMACTLL[3]) = 1
CHSEL0_1 (PWM_PDMACTL[4]) = 0
Figure 6.13-43 Capture PDMA Operation Waveform of Channel 0