English
Language : 

K60P100M100SF2RM Datasheet, PDF (941/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Field
5
CPWMS
4–3
CLKS
2–0
PS
FTMx_SC field descriptions (continued)
Chapter 39 FlexTimer (FTM)
Description
0 Disable TOF interrupts. Use software polling.
1 Enable TOF interrupts. An interrupt is generated when TOF equals one.
Center-aligned PWM Select
Selects CPWM mode. This mode configures the FTM to operate in up-down counting mode.
This field is write protected. It can be written only when MODE[WPDIS] = 1.
0 FTM counter operates in up counting mode.
1 FTM counter operates in up-down counting mode.
Clock Source Selection
Selects one of the three FTM counter clock sources.
This field is write protected. It can be written only when MODE[WPDIS] = 1.
00 No clock selected (This in effect disables the FTM counter.)
01 System clock
10 Fixed frequency clock
11 External clock
Prescale Factor Selection
Selects one of 8 division factors for the clock source selected by CLKS. The new prescaler factor affects
the clock source on the next system clock cycle after the new value is updated into the register bits.
This field is write protected. It can be written only when MODE[WPDIS] = 1.
000 Divide by 1
001 Divide by 2
010 Divide by 4
011 Divide by 8
100 Divide by 16
101 Divide by 32
110 Divide by 64
111 Divide by 128
39.3.4 Counter (FTMx_CNT)
The CNT register contains the FTM counter value.
Reset clears the CNT register. Writing any value to COUNT updates the counter with its
initial value (CNTIN).
When BDM is active, the FTM counter is frozen (this is the value that you may read).
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
941