azadfalah
Full Member level 2
hi friends,
In STM32F412 microcontroller with HAL Library
I put timer 2 in encoder mode and everything works fine
I want, for example, if the counter reaches 1500, an interruption will occur, but I don't want the counter value to be reset after this interruption.
How can I do this?
I want the number 1500 to be recognized very quickly. When I check this value in the Super loop, every time the CPU may be involved in small delays (like LCD Update) and exceed the set value.
The things I did -> I thought it was possible to use timer 3 as a slave so that timer 3's clock is supplied from counter timer 2 But I was not successful
Thanks,
In STM32F412 microcontroller with HAL Library
I put timer 2 in encoder mode and everything works fine
I want, for example, if the counter reaches 1500, an interruption will occur, but I don't want the counter value to be reset after this interruption.
How can I do this?
I want the number 1500 to be recognized very quickly. When I check this value in the Super loop, every time the CPU may be involved in small delays (like LCD Update) and exceed the set value.
The things I did -> I thought it was possible to use timer 3 as a slave so that timer 3's clock is supplied from counter timer 2 But I was not successful
Thanks,