Public Version
www.ti.com
UART/IrDA/CIR Functional Description
Table 19-32. EFR_REG[0-3] Software Flow Control Options (continued)
Bit 3
Bit 2
Bit 1
Bit 0
Tx, Rx Software Flow Controls
0
1
X
X
Transmit XON2, XOFF2
1
1
X
X
Transmit XON1, XON2: XOFF1, XOFF2
(1)
X
X
0
0
No receive flow control
X
X
1
0
Receiver compares XON1, XOFF1
X
X
0
1
Receiver compares XON2, XOFF2
X
X
1
1
Receiver compares XON1, XON2: XOFF1, XOFF2
(1)
(1)
In these cases, the XON1 and XON2 characters or the XOFF1 and XOFF2 characters must be transmitted/received sequentially
with XON1/XOFF1 followed by XON2/XOFF2.
XON1 is defined in the UARTi.XON1_ADDR1_REG[7:0] XON_WORD1 field, XON2 is defined in
UARTi.XON2_ADDR2_REG[7:0] XON_WORD2.
XOFF1 is defined in the UARTi.XOFF1_REG[7:0] XOFF_WORD1 field, XOFF2 is defined in UARTi.XOFF2_REG[7:0]
XOFF_WORD2.
19.4.4.1.3.3.1 Receive (RX)
When software flow control operation is enabled, the UART compares incoming data with XOFF1/2
programmed characters (in certain cases, XOFF1 and XOFF2 must be received sequentially). When the
correct XOFF characters are received, transmission stops after transmission of the current character is
complete. XOFF detection also sets UARTi.
[5]) and causes the
interrupt line to go low.
To resume transmission, an XON1/2 character must be received (in certain cases, XON1 and XON2 must
be received sequentially). When the correct XON characters are received, UARTi.
[4] is cleared
and the XOFF interrupt disappears.
NOTE:
When a parity, framing, or break error occurs while receiving a software flow control
character, this character is treated as normal data and is written to the RX FIFO.
When XON-any and special character detect are disabled and software flow control is enabled, no valid
XON or XOFF characters are written to the RX FIFO. For example, when UARTi.
[1:0] = 0x2, if
XON1 and XOFF1 characters are received, they do not get written to the RX FIFO.
When pairs of software flow characters are programmed to be received sequentially
(UARTi.
[1:0] = 0x3), the software flow characters are not written to the RX FIFO if they are
received sequentially. However, received XON1/XOFF1 characters must be written to the RX FIFO if the
subsequent character is not XON2/XOFF2.
19.4.4.1.3.3.2 Transmit (TX)
XOFF1: Two characters are transmitted when the RX FIFO passes the trigger level programmed by
UARTi.
XON1: Two characters are transmitted when the RX FIFO reaches the trigger level programmed by
UARTi.
NOTE:
If software flow control is disabled after an XOFF character is sent, the module transmits
XON characters automatically to enable normal transmission to proceed.
The transmission of XOFF(s)/XON(s) follows the same protocol as transmission of an ordinary byte from
the TX FIFO. This means that even if the word length is set to 5, 6, or 7 characters, the 5, 6, or 7 LSBs of
XOFF1/2 and XON1/2 are transmitted. The 5, 6, or 7 bits of a character are seldom transmitted, but this
function is included to maintain compatibility with earlier designs.
It is assumed that software flow control and hardware flow control are never enabled simultaneously.
2907
SWPU177N – December 2009 – Revised November 2010
UART/IrDA/CIR
Copyright © 2009–2010, Texas Instruments Incorporated