Skip to main content
NASI
Associate III
June 8, 2023
Question

Timer Encoder

  • June 8, 2023
  • 2 replies
  • 1024 views

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.

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
June 8, 2023

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
Technical Moderator
June 8, 2023

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.