English
Language : 

K60P100M100SF2RM Datasheet, PDF (1047/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Chapter 39 FlexTimer (FTM)
The following figure shows an example of the dual edge capture – one-shot mode used to
measure the period between two consecutive rising edges. The DECAPEN bit selects the
dual edge capture mode, so it keeps set in all operation mode. The DECAP bit is set to
enable the measurement of next period. The CH(n)F bit is set when the first rising edge is
detected, that is, the edge selected by ELS(n)B:ELS(n)A bits. The CH(n+1)F bit is set
and DECAP bit is cleared when the second rising edge is detected, that is, the edge
selected by ELS(n+1)B:ELS(n+1)A bits. Both DECAP and CH(n+1)F bits indicate when
two selected edges were captured and the C(n)V and C(n+1)V registers are ready for
reading.
FTM counter
channel (n) input
(after the filter
channel input)
DECAPEN bit
3
2
1
4
8
7
6
5
12
11
10
9
13
16
15
20
19
14
18
17
22
21
24
23
26
25
28
27
set DECAPEN
DECAP bit
set DECAP
C(n)V
1
35 6
7
14
17
18
20
27
CH(n)F bit
clear CH(n)F
C(n+1)V
2
46 7
9
15
18
20
23
26
CH(n+1)F bit
clear CH(n+1)F
problem 1
problem 2 problem 3
Note
- The commands set DECAPEN, set DECAP, clear CH(n)F, and clear CH(n+1)F are made by the user.
- Problem 1: channel (n) input = 0, set DECAP, not clear CH(n)F, and not clear CH(n+1)F.
- Problem 2: channel (n) input = 1, set DECAP, not clear CH(n)F, and clear CH(n+1)F.
- Problem 3: channel (n) input = 1, set DECAP, not clear CH(n)F, and not clear CH(n+1)F.
Figure 39-247. Dual Edge Capture – One-Shot Mode to Measure of the Period Between
Two Consecutive Rising Edges
The following figure shows an example of the dual edge capture – continuous mode used
to measure the period between two consecutive rising edges. The DECAPEN bit selects
the dual edge capture mode, so it keeps set in all operation mode. While the DECAP bit
is set the configured measurements are made. The CH(n)F bit is set when the first rising
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
1047