cancel
Showing results for 
Search instead for 
Did you mean: 

TIM1 - USART1 pin conflict - how to solve?

mehmet.karakaya
Associate III
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
1 REPLY 1
Uwe Bonnes
Principal II
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.