К примеру как здесь (dsPIC33)
The digital filter processes the comparator signal from the pulse stretcher circuit. The digital filter
is enabled by the FLTREN bit (CMPxCON<10>). The digital filter operates with the clock selected
by the FCLKSEL bit (CMPxCON<9>), which can either be the system clock or the PWM clock.
The comparator signal must be stable, either in a high state or a low state, for at least three times
the selected clock frequency for it to pass through the digital filter. Assuming the current state is
‘0’, an input string of ‘001010110111’ will only yield an output state of ‘1’ at the end of the
example sequence, after the three consecutive ‘1’s. Similarly, a sequence of three consecutive
‘0’s is required before the output will change to a ‘0’ state.
"A textbook can be defined as a book unsuitable for reading" (B. Shaw)
Tautology is humor in "this" place (Vigo Carpathian)


