
channel 0 input
counter clock
channel 1 input
synchronizer
CH0FVAL[3:0]
Filter enabled?
filtered channel 0 signal
POL0
POL1
filtered channel 1 signal
Filter enabled?
CH1FVAL[3:0]
synchronizer
Filter
CLK
D
Q
CLK
D
Q
CLK
D
Q
CLK
D
Q
Filter
Filter
TPM counter
direction
TPM counter
enable
up/down
MOD
TOFDIR
QUADIR
0
1
0
1
Figure 46-27. Quadrature Decoder block diagram
The input capture filter and channel polarity registers are used to configure the input filter
and polarity for the channel 0 and channel 1 inputs in quadrature decode mode.
Note
Notice that the TPM counter is clocked by the channel 0 and
channel 1 input signals when quadrature decoder mode is
selected. Therefore In quadrature decoder mode, channel 0 and
channel 1 can only be used in software compare mode and other
TPM channels can only be used in input capture or output
compare modes.
The QUADMODE selects the encoding mode used in the Quadrature Decoder mode. If
QUADMODE = 1, then the count and direction encoding mode is enabled; see the
following figure. In this mode, the channel 1 input value indicates the counting direction,
and the channel 0 input defines the counting rate. The TPM counter is updated when
there is a rising edge at channel 0 input signal.
Functional description
K32 L2A Reference Manual, Rev. 2, 01/2020
1176
NXP Semiconductors
Summary of Contents for K32 L2A Series
Page 2: ...K32 L2A Reference Manual Rev 2 01 2020 2 NXP Semiconductors...
Page 42: ...K32 L2A Reference Manual Rev 2 01 2020 42 NXP Semiconductors...
Page 122: ...Flash Memory Clock K32 L2A Reference Manual Rev 2 01 2020 122 NXP Semiconductors...
Page 158: ...Debug and security K32 L2A Reference Manual Rev 2 01 2020 158 NXP Semiconductors...
Page 174: ...Module Signal Description Tables K32 L2A Reference Manual Rev 2 01 2020 174 NXP Semiconductors...
Page 246: ...Application information K32 L2A Reference Manual Rev 2 01 2020 246 NXP Semiconductors...
Page 374: ...CMP Trigger Mode K32 L2A Reference Manual Rev 2 01 2020 374 NXP Semiconductors...
Page 384: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 384 NXP Semiconductors...
Page 592: ...Application Information K32 L2A Reference Manual Rev 2 01 2020 592 NXP Semiconductors...
Page 656: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 656 NXP Semiconductors...
Page 664: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 664 NXP Semiconductors...
Page 744: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 744 NXP Semiconductors...
Page 762: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 762 NXP Semiconductors...
Page 806: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 806 NXP Semiconductors...
Page 868: ...Integer square root K32 L2A Reference Manual Rev 2 01 2020 868 NXP Semiconductors...
Page 976: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 976 NXP Semiconductors...
Page 1012: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1012 NXP Semiconductors...
Page 1094: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1094 NXP Semiconductors...
Page 1132: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1132 NXP Semiconductors...
Page 1182: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1182 NXP Semiconductors...
Page 1290: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1290 NXP Semiconductors...