cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, I program timer2 with polarity TIM_INPUTCHANNELPOLARITY_BOTHEDGE; when HAL_TIM_IC_CaptureCallback is done how do I know if it was triggered by rising or falling edge? Is there a flag in some registry that tells me this?

SBonc
Associate
 
2 REPLIES 2

If the edges in input signal are further apart than is latency if the interrupt, you can simply read the state of given pin from respective GPIO_IDR.

JW