Skip to main content
Yood
Associate II
Mar 21, 2019 8:19 AM UTC
Question

IDLE btween messages in USART

Hello,

I want to seperate my TX messages with an IDLE frame (all 1) in order to be able the sync to it​ on the RX side by getting an IDLE interrupt.

Is there an elegant way using the USART regs to verify that I send at least one IDLE before staring my next TX message?

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
Mar 21, 2019 8:52 AM UTC

You did not tell us your STM32 model, but from UART chapter of RM0090:

Setting the TE bit drives the USART to send an idle frame before the first data frame.

JW