cancel
Showing results for 
Search instead for 
Did you mean: 

Timer Encoder

NASI
Senior

Hi,

I am using STM32F105 MCU.

I have made a mistake in Hardware and switched two pins around. I have two signals from a encoder which they are connected to MCU in wrong way.

SignalA ---> PC9 (TIM3-CH4)

SignalB ---> PA8 (TIM1-CH1)

I want to use a combined channel in Graphic interface and make an encoder mode. But these pins are connected to two different timers.

Is there anyway I can fix the problem?

Thank you.

2 REPLIES 2

Handle them in traditional way, in regular timer interrupt, as GPIO Inputs.

Good overview (in German, use your favourite translating tool) here.

JW

Peter BENSCH
ST Employee

Well, it cannot be fixed using software, it looks like you can only fix it by hardware, so connect the encoder to the correct channels, e.g. TIM1_CH1 and TIM1_CH2.

Hope that helps?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.