cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F767ZI Quadrature Encoder accuracy problem

Joerg Wagner
Senior III
Posted on February 09, 2018 at 18:00

For an industrial application I use 3 timers, two for encoder input (TIM1 and TIM4)

and one with a combined XOR (TIM2).

Source signal is the same for all 3 timers.

An interrupt callback for the XOR timer saves the elapsed time and counts the changes in addition.

Sometimes the quadrature encoder counter has a miss of 13/14 counts to the one with the XOR input.

No filters are used.

The counter value of the changes in the XOR callback are right (a diecast machine also counts),

the quadrature encoder does not work properly.

TIM2 and TIM4 are the same type of counter (General purpose)

I can try to swap TIM1 and TIM4 but I have to trust the hardware counting anyway.

Does someone has similar experiences?

0 REPLIES 0