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?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-14 6:21 AM
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-14 12:40 PM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-14 2:33 PM
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
