2021-09-04 08:29 AM
Good day to everybody,
In certain STM32 MCUs input capture can be defined for both falling and rising edge.
In such cases, how to know if the input capture interrupt routine was called due to a falling or a rising edge? Is there a way to know?
2021-09-04 08:48 AM
There's no direct way.
But you can simply read the current state of given pin from respective GPIO_IDR, If you know that the input signal won't change too fast.
JW