Skip to main content
IAhma.1
Associate II
November 6, 2021
Solved

STM32F40G UART, unexpected pulse on Rx Line

I am sending some data on UART, When I enable Transmitter TE bit in USART_CR1 register, a pulse is observed on Tx line ( as shown in figure). That's fine but I am observing some 190nsec pulses on Rx lines though I am not sending anything to it! I have simply connected Tx/Rx lines to logic analyzer.

What is possibly causing these pulses?

0693W00000GWflGQAT.png

This topic has been closed for replies.
TDK
TDKBest answer
November 6, 2021
That is not something that is specified in the datasheet. I would not expect it to have a noticeable effect on power consumption.
"If you feel a post has answered your question, please click ""Accept as Solution""."

8 replies

TDK
November 6, 2021

How is the RX line connected? It is high impedance on the STM32 side, so would need an external resistor or be driven externally. Probably what you are seeing is noise crosstalk between lines. An analog capture would likely show better info.

UART is typically idle high. Is yours intentionally idle low?

"If you feel a post has answered your question, please click ""Accept as Solution""."
IAhma.1
IAhma.1Author
Associate II
November 6, 2021

I have simply connected Rx/Tx lines to saleae logic analyzer via jumper wires. Nothing else.

0693W00000GWfoFQAT.jpg 

UART is typically idle high. Is yours intentionally idle low? => I don't know what is means and how to make lines low. Please guide me on this as well.

IAhma.1
IAhma.1Author
Associate II
November 6, 2021

Yes, You are probably right. I reduced jump wires and unexpected pulses are gone. thanks you.

Just needs further information on: UART is typically idle high. Is yours intentionally idle low? 

TDK
November 6, 2021

> I have simply connected Rx/Tx lines to saleae logic analyzer via jumper wires. Nothing else.

Well then the line is floating and any measurement on it is meaningless. You need an external pullup or pulldown. Typically this would be the job of the transmitter, but you don't have one connected to this line.

> I don't know what is means and how to make lines low. Please guide me on this as well.

Since you're connected to the RS232 connector and not directly to the pin, this is likely being done on the board.

"If you feel a post has answered your question, please click ""Accept as Solution""."
IAhma.1
IAhma.1Author
Associate II
November 6, 2021

Thanks for you kind response... Just wanna know one thing...

If we disable Tx / Rx (not complete UART), will it save any power?

TDK
TDKBest answer
November 6, 2021
That is not something that is specified in the datasheet. I would not expect it to have a noticeable effect on power consumption.
"If you feel a post has answered your question, please click ""Accept as Solution""."
IAhma.1
IAhma.1Author
Associate II
November 6, 2021

Thank you so much @TDK​ ..:grinning_face:

I wish there was button to mark your reply as accepted answer.