When the Capture Test mode is enabled (CAPTEST = 1), the FTM counter is frozen and
any write to CNT register updates directly the FTM counter; see the following figure.
After it was written, all CnV registers are updated with the written value to CNT register
and CHnF bits are set. Therefore, the FTM counter is updated with its next value
according to its configuration. Its next value depends on CNTIN, MOD, and the written
value to FTM counter.
The next reads of CnV registers return the written value to the FTM counter and the next
reads of CNT register return FTM counter next value.
NOTE
FTM counter clock
write to MODE
CAPTEST bit
FTM counter
write to CNT
CHnF bit
CnV
- FTM counter configuration: (FTMEN = 1), (QUADEN = 0), (CAPTEST = 1), (CPWMS = 0), (CNTIN = 0x0000), and
(MOD = 0xFFFF)
- FTM channel n configuration: input capture mode - (DECAPEN = 0), (COMBINE = 0), and (MSnB:MSnA = 0:0)
0x0300
0x78AC
set CAPTEST
clear CAPTEST
write 0x78AC
0x1056
0x1053
0x1055
0x1054
0x78AC
0x78AD
0x78AE 0x78AF 0x78B0
Figure 38-245. Capture Test mode
38.4.23 DMA
The channel generates a DMA transfer request according to DMA and CHnIE bits. See
the following table.
Table 38-251. Channel DMA transfer request
DMA
CHnIE
Channel DMA Transfer Request
Channel Interrupt
0
0
The channel DMA transfer request is not
generated.
The channel interrupt is not generated.
0
1
The channel DMA transfer request is not
generated.
The channel interrupt is generated if (CHnF = 1).
1
0
The channel DMA transfer request is not
generated.
The channel interrupt is not generated.
Table continues on the next page...
Chapter 38 FlexTimer Module (FTM)
K22F Sub-Family Reference Manual , Rev. 3, 7/2014
Freescale Semiconductor, Inc.
927