2015-11-30 12:52 AM
Hello.
I am using STM32F0xx with stm32cube lib as the dev platform. My application requires TIM3 peripheral. I am using __HAL_TIM_SET_COUNTER to set the cnt value at runtime. I need the timer count value for some calculation and i re-set it using the above macro every fixed interval. What i am observing is when set the counter value, stop the timer and restart it. It doesnt report interrupts. What is the correct procedure to set the counter value while the timer is running?? #stm32-cubemx-tim-interrupt2015-11-30 02:10 PM
2015-11-30 04:30 PM
I generally prefer to read two successive values and compute a delta between them, rather than reset or change the counter asynchronously.