2016-11-06 05:53 PM
hi , i want to read timer counter value . i was used __HAL_TIM_GetCounter(); function but it didn't work .
please help me .thank you2016-11-06 07:04 PM
It should basically be doing a read of TIMx->CNT, hard to see you that would cause an issue.
Unfortunately ''doesn't work'' really doesn't provide sufficient context to determine why it is not working, or how it is not working. Is there some minimal implementation you can share that demonstrates the issue? Does it always read zero? Is the clock to the timer enabled?2016-11-06 09:06 PM
2016-11-07 12:27 AM
Assume that I'm not a mind reader.
If all TIM registers read zero then make sure peripheral clock has been enabled.