2017-08-15 04:53 PM
I'm not understanding proper use of TIMx_CCMR1->IC1F. Is it only for frequency? I'm looking for a way to filter pulses out whose width is too short of duration.
2017-08-16 12:36 AM
As the description says:
The digital filter is made of an event counter in which N consecutive events are needed to validate a transition on the output:
i.e. two consecutive transition (i.e. a pulse) closer together than N samples (see below) are ignored.
The first part of first sentence of the description may have confused you, though:
This bit-field defines the frequency used to sample TI1 input and [...]
There are two choices of the sampling frequency: the internal input clock of the timer, fCK_INT, and a divided version of it, fDTS, see TIMx_CR1.CKD
JW