Skip to main content
JuM
Senior
March 28, 2019
Question

STM32F091 USART1 - Delay on first char to transmit after enabling transmitter (TE)

  • March 28, 2019
  • 2 replies
  • 1087 views

Trying to send over USART1 at 19200 bit/s.

USART is resting in receive mode (RE==1, TE==0).

After switching to transmit mode (TE:=1, RE:=0), we observe a ~500 us delay between storing ​and transmitting of first character. Subsequent chars are transmitted without delay.

Watch commented line // USART1->TDR = c; in first picture. No TDR, no Delays0690X000008972xQAA.jpg

0690X000008972sQAA.jpg

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
March 28, 2019

0690X00000897EyQAI.png

JW

JuM
JuMAuthor
Senior
March 28, 2019

Thank you for clarification.

Seems idle frame is sent only if a character (the first character) is to be sent, not right after enabling transmitter (TE:=1). Nethertheless, we should not disable transmitter...