I would like to show you something new about stm32 Timers. You can so, use stm32 timer as a bloc of digital comparators and design your own digital filter using my full hardware solution. The solution is build using only stm32 microcontroller and without CPU need !
Feel free to ask me for more explanation. You can use Cube Mx to generate the code. Just understand my solution and follow it step by step. If you cannot do it don't hesitate to ask me for code
clik on this link to be directed to the presentation