2013-05-12 09:52 AM
hello forum ,
I want use only RX of USART1 of my F103 becouse I need TIM1_CH2 function on PA9 in what happens to PA9 if I enable both USART1 and TIM1 ? I dont want TX be enabled on PA9 - I want TIM1_CH2 be enabled on PA9 how can I use RX on PA10 and TIM1_CH2 on PA9 ? does this below code work ?USART_InitStructure.USART_Mode = USART_Mode_Rx ;
USART_Init(USART1, &USART_InitStructure);
thank you
#f103-usart
2013-05-13 07:10 AM
Doesn't appear to be an unreasonable expectation.
You've been doing this long enough to be able to confirm the behaviour yourself.2013-07-16 11:16 PM
I have same problem. Have you solved it?
2013-07-17 12:16 AM
F10x errata sheet explains it:
DescriptionIn USART receive-mode-only communication (TE = 0 in the USARTx_CR1 register), even
when the USARTx_TX pin is not being used, the corresponding I/O port pin cannot be used
to output another alternate function (in this mode the USARTx_TX output is set to 1 and
thus no other alternate function output can be used).
This limitation applies to all USARTx_TX pins that share another alternate function output.
Workaround
Do not use the corresponding I/O port of the USARTx_TX pin in alternate function output
mode. Only the input mode can be used (TE bit in the USARTx_CR1 has to be cleared).