Using FreeRTOS on STM32F4: How to handle the interruption on the timer?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-05-18 1:27 PM
good evening, I work with FreeRTOS on STM32F4 Discovery and I want to use an ultrasound sensor in real time, for that I want to use a timer in input capture mode, I do not know how to handle the interruption on the timer.. I need your advice, thanks
Labels:
- Labels:
-
FreeRTOS
-
STM32F4 Series
-
TIM
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-05-19 10:49 AM
Can't you just use the TIM's IRQHandler, and manage the handling of the CCx source, and read the TIMx->CCRx.
If measuring the Time-Of-Flight relative to the same TIM subtract out the transmission time.
Review the HAL examples for the sub-sets of functionality you're trying to implement.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
