Skip to main content
SBonc
Visitor II
April 14, 2023
Question

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?

  • April 14, 2023
  • 2 replies
  • 939 views

..

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
April 14, 2023

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