Figure 416. Hardware Flow Control Between 2 Lpuarts; Figure 417. Rs232 Rts Flow Control; Using Lpuart - ST STM32L4x6 Reference Manual

Table of Contents

Advertisement

RM0351
37.4.9
RS232 Hardware flow control and RS485 Driver Enable

using LPUART

It is possible to control the serial data flow between 2 devices by using the CTS input and
the RTS output. The
RS232 RTS and CTS flow control can be enabled independently by writing the RTSE and
CTSE bits respectively to 1 (in the LPUART_CR3 register).
RS232 RTS flow control
If the RTS flow control is enabled (RTSE=1), then RTS is asserted (tied low) as long as the
LPUART receiver is ready to receive a new data. when the receive register is full, RTS is de-
asserted, indicating that the transmission is expected to stop at the end of the current frame.
Figure 405
RS232 CTS flow control
If the CTS flow control is enabled (CTSE=1), then the transmitter checks the CTS input
before transmitting the next frame. If CTS is asserted (tied low), then the next data is
transmitted (assuming that data is to be transmitted, in other words, if TXE=0), else the
Low-power universal asynchronous receiver transmitter (LPUART)
Figure 404
shows how to connect 2 devices in this mode:

Figure 416. Hardware flow control between 2 LPUARTs

shows an example of communication with RTS flow control enabled.

Figure 417. RS232 RTS flow control

DocID024597 Rev 3
1263/1693
1282

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32L4x6 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF