Information

Table 33-29. Comparator Sample/Filter Controls (continued)
Mode # CR1[EN] CR1[WE] CR1[SE]
CR0[FILTER_C
NT]
FPR[FILT_PER] Operation
6 1 1 0 0x01 0x01 - 0xFF Windowed/Resampled mode
Comparator output is sampled on
every rising bus clock edge when
SAMPLE=1 to generate COUTA,
which is then resampled on an
interval determined by FILT_PER to
generate COUT.
Refer to the Windowed/Resampled
Mode (# 6).
7 1 1 0 > 0x01 0x01 - 0xFF Windowed/Filtered mode
Comparator output is sampled on
every rising bus clock edge when
SAMPLE=1 to generate COUTA,
which is then resampled and filtered
to generate COUT.
Refer to the Windowed/Filtered
Mode (#7).
All other combinations of CR1[EN], CR1[WE], CR1[SE], CR0[FILTER_CNT], and FPR[FILT_PER] are illegal.
For cases where a comparator is used to drive a fault input (for example, for a motor-
control module such as FTM), it should generally be configured to operate in continuous
mode, so that an external fault can immediately pass through the comparator to the target
fault circuitry.
Note
Filtering and sampling settings should be changed only after
setting CR1[SE]=0 and CR0[FILTER_CNT]=0x00. This has
the effect of resetting the filter to a known state.
33.8.1.1 Disabled Mode (# 1)
In disabled mode, the analog comparator is non-functional and consumes no power. The
output of the analog comparator block (CMPO) is zero in this mode.
Chapter 33 Comparator (CMP)
K10 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc. 817