![Freescale Semiconductor KKL02Z32CAF4R Reference Manual Download Page 394](http://html1.mh-extra.com/html/freescale-semiconductor/kkl02z32caf4r/kkl02z32caf4r_reference-manual_2330635394.webp)
Table 26-15. Comparator sample/filter controls
Mode #
CR1[EN]
CR1[WE]
CR1[SE]
CR0[FILTER_C
NT]
FPR[FILT_PER]
Operation
1
0
X
X
X
X
Disabled
2A
1
0
0
0x00
X
Continuous Mode
.
2B
1
0
0
X
0x00
3A
1
0
1
0x01
X
Sampled, Non-Filtered mode
3B
1
0
0
0x01
> 0x00
4A
1
0
1
> 0x01
X
Sampled, Filtered mode
See the
4B
1
0
0
> 0x01
> 0x00
5A
1
1
0
0x00
X
Windowed mode
Comparator output is sampled on
every rising bus clock edge when
SAMPLE=1 to generate COUTA.
See the
.
5B
1
1
0
X
0x00
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.
.
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.
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 must be configured to operate in Continuous mode so
that an external fault can immediately pass through the comparator to the target fault
circuitry.
Functional description
KL02 Sub-Family Reference Manual, Rev. 2.1, July 2013
394
Freescale Semiconductor, Inc.