2016-10-30 10:17 AM
I'm an engineer who is working on a project using STM32F103 microcontroller.
There is a problem in the programming of this element which is mentioned as followsFirst, I activated Timer Counter through HAL Driver library. Now, I want to change the Counter Mode from UP to DOWN or vice versa during the running process in order to get a range of positive and negative counter numbers. But, I do not know what should I do.I would be grateful if you give me some information to solve this problem.2016-10-30 11:55 AM
Couldn't you just modify the DIR bit in TIMx->TIM_CR1 ??
Either explicitly, or via the hTIM instance