For proper operation of the digital
filter, the following initialization sequence is recommended:
- Configure and enable the
comparator for operation.
- Configure the digital filter
parameters for operation:
- Set SAMPWIN for the
number of samples to monitor in the FIFO window.
- Set THRESH for the
threshold required for majority qualification.
- Set CLKPRESCALE for
the digital filter clock prescale value.
- Initialize the sample values
in the digital FIFO window by setting FILINIT.
- Clear COMPSTS latch using
COMPSTSCLR, if the latched path is desired.
- Configure the CTRIP and
CTRIPOUT signal paths.
- If desired, configure the
destination module, for example, ePWM, GPIO, and so on to accept the
filtered signals.