Download Print this page

ST STM32F301 6 Series Reference Manual page 751

Advanced arm-based 32-bit mcus

Advertisement

RM0366
RS232 RTS and CTS flow control can be enabled independently by writing the RTSE and
CTSE bits respectively to 1 (in the USART_CR3 register).
RS232 RTS flow control
If the RTS flow control is enabled (RTSE=1), then RTS is deasserted (tied low) as long as
the USART receiver is ready to receive a new data. When the receive register is full, RTS is
asserted, indicating that the transmission is expected to stop at the end of the current frame.
Figure 298
RX
RTS
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 deasserted (tied low), then the next data is
transmitted (assuming that data is to be transmitted, in other words, if TXE=0), else the
transmission does not occur. when CTS is asserted during a transmission, the current
transmission is completed before the transmitter stops.
When CTSE=1, the CTSIF status bit is automatically set by hardware as soon as the CTS
input toggles. It indicates when the receiver becomes ready or not ready for communication.
An interrupt is generated if the CTSIE bit in the USART_CR3 register is set.
shows an example of communication with CTS flow control enabled.
Universal synchronous/asynchronous receiver transmitter (USART/UART)
shows an example of communication with RTS flow control enabled.
Figure 298. RS232 RTS flow control
Start
Data 1
bit
RM0366 Rev 5
Stop
Start
Idle
bit
bit
RXNE
Data 1 read
Data 2 can now be transmitted
Stop
Data 2
bit
RXNE
MSv68794V1
Figure 299
751/874
779

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32F301 6 Series and is the answer not in the manual?

This manual is also suitable for:

Stm32f301 8 seriesStm32f318 8 series