EasyManua.ls Logo

Bouffalo Lab BL702 - UART Flow Control

Default Icon
375 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BL702/704/706 Reference Manual
10.3.7 Hardware flow control
The UART supports hardware flow control in CTS / RTS mode to prevent data in the FIFO from being lost because it
is too late to process. The hardware flow control connection is shown in the following figure:
Chip
Other
TX
RX
GND
RTS
CTS
RX
TX
GND
RTS
CTS
Fig. 10.5: UART flow control
When using the hardware flow control function, the output signal RTS is low to indicate that the other party is requested
to send data, and RTS is high to indicate that the other party is notified to suspend data transmission until RTS is
restored to low level. There are two ways to control the hardware flow of the transmitter.
• The bit <RTSSWM> of the URX_CONFIG register is equal to 0: when the remaining space in the RX FIFO is less
than or equal to 1 byte, the RTS level is raised.
• The bit <RTSSWM> of the URX_CONFIG register is equal to 1: The bit <RTSSWV> of the configuration register
URX_CONFIG can be used to change the RTS level.
The TX CTS can be enabled by configuring the bit <CTSEN> of the UTX_CONFIG register. When the device detects
that the input signal CTS is pulled high, TX will stop sending data until it detects that CTS is pulled low before continuing
to send.
10.3.8 LIN transmission mode
When the transmitter needs to use the LIN transmission mode, it can send the BREAK field and the SYNC field by
configuring <TXLINEN>. The width of the interval field is determined by <TXBCNTB>.
When the receiver needs to use the LIN transmission mode, you can configure <RXLINEN> to detect the interval field and
the synchronization field, and trigger the corresponding interrupt <RLSEINT> when the format of the synchronization
field is wrong.
BL702/704/706 Reference Manual 194/ 375
@2021 Bouffalo Lab
guest@bouffalolab

Table of Contents