AnsweredAssumed Answered

TIM1 clock and USART1 conflict

Question asked by longchair.m on Nov 2, 2012
Latest reply on Jan 17, 2013 by STOne-32
Hello everyone.

I have an application where I need to use two channels of TIM1 in DMA mode, and also USART1 only in RX mode.

TIM1 two first channels use PA8/ PA9
USART1 RX is PA10.

The feature using TIM1 works well alone
The feature using USART1 works also well alone.

but when I wanna use both at same time, it seems that enabling the usart Clock will "disable" somehow my TIM1 feature.

Could anyone explain me why :

RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1, ENABLE);

Will break my TIM1 configuration ?

I guess that it's linked to the fact that PA10 can be Usart TX as well, but I am not using it for the USART. Is there anyway to fix this other than remaping any of these two functions ?

Outcomes