Question
STM32F103 occasionally doubles counting speed in encoder mode
Hello!
I use STM32F103 MCU Timer 2 in ecnoder mode.
Ticks from an encoder go at approximately 1 MHz, so I use prescaler value 25 to decrease the frequency.
Sometimes it works fine, but sometimes timer begins to count encoder ticks at double speed - it looks like they arrive 2x faster than usual, but they actually aren't.
I suppose that is a Timer setup problem.
Please help to find a reason.
Many thanks for help.
With regards,
Maksim
