Low Pass Filter - NXP Semiconductors MC9S08SU16 Reference Manual

Table of Contents

Advertisement

18.11.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.
18.11.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.
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.
NXP Semiconductors
Note
MC9S08SU16 Reference Manual, Rev. 5, 4/2017
Chapter 18 Chip-specific ACMP information
313

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc9s08su16vfkMc9s08su8vfk

Table of Contents