English
Language : 

K60P100M100SF2RM Datasheet, PDF (974/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Memory Map and Register Definition
FTMx_QDCTRL field descriptions (continued)
Field
4
PHBPOL
Description
0 Normal polarity. Phase A input signal is not inverted before identifying the rising and falling edges of
this signal.
1 Inverted polarity. Phase A input signal is inverted before identifying the rising and falling edges of this
signal.
Phase B Input Polarity
Selects the polarity for the quadrature decoder phase B input.
3
QUADMODE
0 Normal polarity. Phase B input signal is not inverted before identifying the rising and falling edges of
this signal.
1 Inverted polarity. Phase B input signal is inverted before identifying the rising and falling edges of this
signal.
Quadrature Decoder Mode
Selects the encoding mode used in the quadrature decoder mode.
2
QUADIR
0 Phase A and phase B encoding mode.
1 Count and direction encoding mode.
FTM Counter Direction in Quadrature Decoder Mode
Indicates the counting direction.
1
TOFDIR
0 Counting direction is decreasing (FTM counter decrement).
1 Counting direction is increasing (FTM counter increment).
Timer Overflow Direction in Quadrature Decoder Mode
Indicates if the TOF bit was set on the top or the bottom of counting.
0
QUADEN
0 TOF bit was set on the bottom of counting. There was an FTM counter decrement and FTM counter
changes from its minimum value (CNTIN register) to its maximum value (MOD register).
1 TOF bit was set on the top of counting. There was an FTM counter increment and FTM counter
changes from its maximum value (MOD register) to its minimum value (CNTIN register).
Quadrature Decoder Mode Enable
Enables the quadrature decoder mode. In this mode, the phase A and B input signals control the FTM
counter direction. The quadrature decoder mode has precedence over the other modes. (See Table
39-7.)
This field is write protected. It can be written only when MODE[WPDIS] = 1.
0 Quadrature decoder mode is disabled.
1 Quadrature decoder mode is enabled.
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
974
Freescale Semiconductor, Inc.