AnsweredAssumed Answered

STM32 Quadrature Encoder

Question asked by r.a.001 on Feb 21, 2017
Latest reply on Feb 22, 2017 by Uwe Bonnes

Hello guys,

I would like to use an quadrature encoder for a motor control application on an STM32F303K8T6.
Unfortunately the hardware gives me the following configuration:

 

ENCODER_OUT_A -> PA2 (TIM2_CH3)
ENCODER_OUT_B -> PA3 (TIM2_CH4)
ENCODER_OUT_Z -> PA5 (TIM2_CH1)

 

Is there any possibility to use CH3 and CH4 instead of CH1 and CH2 as timer count input
and
CH1 as capture timer value input?

The quadrature encoder generates 1024 per machanical revolution and get spinned up to 10krpm.

 

best regards

Outcomes