English
Language : 

K60P100M100SF2RM Datasheet, PDF (879/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Chapter 35 Comparator (CMP)
35.8.4 Low Pass Filter
The low-pass filter operates on the unfiltered and unsynchronized and optionally inverted
comparator output COUTA and generates the filtered and synchronized output COUT.
Both COUTA and COUT can be configured as module outputs and are used for different
purposes within the system.
Synchronization and edge detection are always used to determine status register bit
values. They also apply to COUT for all sampling and windowed modes. Filtering can be
performed using an internal timebase defined by FPR[FILT_PER], or using an external
SAMPLE input to determine sample time.
The need for digital filtering and the amount of filtering is dependent on user
requirements. Filtering can become more useful in the absence of an external hysteresis
circuit. Without external hysteresis, high frequency oscillations can be generated at
COUTA when the selected INM and INP input voltages differ by less than the offset
voltage of the differential comparator.
35.8.4.1 Enabling Filter Modes
Filter Modes are enabled by setting CR0[FILTER_CNT] greater than 0x01 and (setting
FPR[FILT_PER] to a non-zero value OR setting CR1[SE]=1). If using the divided bus
clock to drive the filter, it will take samples of COUTA every FPR[FILT_PER] bus clock
cycles.
The filter output will be at logic zero when first initalized, and will subsequently change
when CR0[FILTER_CNT] consecutive samples all agree that the output value has
changed. Said another way, SCR[COUT] will be zero for some initial period, even when
COUTA is at logic one.
Setting both CR1[SE] and FPR[FILT_PER] to 0 disables the filter and eliminates
switching current associated with the filtering process.
Note
Always switch to this setting prior to making any changes in
filter parameters. This resets the filter to a known state.
Switching CR0[FILTER_CNT] on the fly without this
intermediate step can result in unexpected behavior.
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
879