2023-06-08 01:06 AM
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.
2023-06-08 01:43 AM
Handle them in traditional way, in regular timer interrupt, as GPIO Inputs.
Good overview (in German, use your favourite translating tool) here.
JW
2023-06-08 01:44 AM
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