cancel
Showing results for 
Search instead for 
Did you mean: 

Using FreeRTOS on STM32F4: How to handle the interruption on the timer?

AGHAZ
Associate II

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

1 REPLY 1

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..