cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103C8T6 TIM1 in ENCODER MODE GPIO Pins

Vin1947
Associate

Hi,

I am using stm32f103c8t6 connected to a rotary encoder using SPL. I was planning to use TIMER 1 in encoder mode, but probably I had made a mistake by connecting channel A of encoder to PB13 (T1C1N) and channel B to PB14(T1C2N) - this setup doesnt work at all.

So, is it possible that TIM1 can decode encoder signals in this configuration or the only solution is to re-route the encoder signals to PA8 & PA9 pins of the µC?

I also tried using STM32Cube just to cross check my assumption and there also it seems that I can't use PB13 & PB14 in encoder interface mode. I have checked the encoder signals with a scope and they look clean and sharp and the same encoder works well with TIM2 and TIM4.

Kindly help with suggestions and solutions

Regards

Vin

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions

> So, is it possible...

No.

The complementary pins (i.e. TIMx_CHyN) are outputs only.

JW

View solution in original post

2 REPLIES 2

> So, is it possible...

No.

The complementary pins (i.e. TIMx_CHyN) are outputs only.

JW

Vin1947
Associate

Thank you waclawek.jan ! I think I should start re-routing the tracks as well as my foolishness:grinning_face_with_sweat: