cancel
Showing results for 
Search instead for 
Did you mean: 

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

JuM
Senior

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

2 REPLIES 2

0690X00000897EyQAI.png

JW

JuM
Senior

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...