[SOLVED] STM32G070 TIM Encoder mode
Dear,
I currently trying to used the timer in encoder mode.
It seems to working fine whatever the mode configured.
I useing the timer interrupt (Capture Compare) to read the number of step (Counter (CNT)).
In mode 1 and mode 2, the CNT is decrement by 2 in clockwise and increment by 2 in counterclokcwise
In mode 3, the CNT is alternatively decrement by 1 and decrement by 3 in clockwise and increment by 1 and decrement by 3 in counterclockwise.
It seems working well regarding the reference manual because the interrupt is configured in rising edge and therefore all steps of the encoder don't generate an interrupt.
Is it possible to have all step of the encoder at each increment/decrement ?
Or must I use a other to read the CNT at fixed interval of time ?