Question
USART - Sending break characters on RS485 bus
Posted on January 30, 2013 at 20:58
Hi all,
I can't figure out whether the TC flag is set at the end of a break character or not.I use a GPIO to enable TX mode on the RS485 transceiver at the end of any transmission I normally monitor the TC flag and disable 485 TX mode when TC=1.Sending a break character is not like sending data and there is nothing in the manual that explains if the TC is set at the end of a break character or not.Anyone knows?The ref.manual says:
Break charactersSetting the SBK bit transmits a break character. The break frame length depends on the Mbit (see Figure 223). If the SBK bit is set to �1 a break character is sent on the TX line after completing the current character transmission. This bit is reset by hardware when the break character is completed. #uart-break #stm32-usart-break-character