Skip to main content
mehmet.karakaya
Associate III
May 15, 2017
Question

TIM1 - USART1 pin conflict - how to solve?

  • May 15, 2017
  • 1 reply
  • 947 views
Posted on May 15, 2017 at 10:43

Hello dear forum,

I am using F103RC to drive 2 DC motors

Thats why I need to use both TIM1 and TIM8

However TIM1_CH2 is at the same pin as the USART1_TX

I dont use and init USART1_TX pin becouse I only use RX input of USART1 during runtime

I initialize serial port 1 before TIMers

However I noticed that TIM1_CH2 doesnot produce PWM signal and is always at 2.6 V level

I suspect that USART1 is preventing TIM1_CH2 from producing PWM becouse

when I dont init USART1 there is PWM signal

Am I right ? why is that so ?

Can I not only use RX pin (A10) for USART while using A9 port for PWM ?

Thank you

#stm32f103-usart-tim
This topic has been closed for replies.

1 reply

Uwe Bonnes
Chief
May 15, 2017
Posted on May 15, 2017 at 11:13

Remap in F1 can only remap all GPIO of some peripheral. There is no way whatto achieve what you want to achieve with the pin setup you have. Play around with graphical  Cube pin allocation and/or read rm0008,   Cha 9.3.7 and 9.3.8 to see if you can find a combination that works for you.