
SPI/I2C UART with 128-Word FIFOs in WLP
MAX3108
41
Maxim Integrated
Flow Control Register (FlowCtrl)
The FlowCtrl register configures hardware (RTS/CTS) and software (XON/XOFF) flow control as well as special char-
acters detection.
Bits 7–4: SwFlowx
The SwFlowx bits select the XON and XOFF characters used for auto software flow control and/or special character
detection in combination with the characters programmed in the XON1, XON2, XOFF1, and/or XOFF2 registers. See
Table 3.
If auto software flow control is enabled (through FlowCtrl[3]: SwFlowEn) and special character detection is not
enabled, SwFlowx allows selecting either single or dual XON/XOFF character flow control. When double character flow
control is enabled, the transmitter sends out XON1/XOFF1 first followed by XON2/XOFF2 during receive flow control.
For transmit flow control, the receiver only recognizes the received character sequence XON1/XOFF1 followed by
XON2/XOFF2 as a valid control sequence to resume/halt transmission.
If only special character detection is enabled (through MODE2[4]: SpecialChr), while auto software flow control is dis-
abled, then SwFlowx allows selecting either single or double character detection. Single character detection allows the
detection of two characters: XON1 or XON2 and XOFF1 or XOFF2. Double character detection does not distinguish
between the sequence or the two received XON1/XON2 or XOFF1/XOFF2 characters. The two characters have to be
received in succession, but it is insignificant which of the two is received first. The special characters are deposited in
the receive FIFO. An ISR[1]: SpCharInt interrupt is generated when special characters are received.
Auto software flow control and special character detection can be enabled to operate simultaneously. If both are
enabled, XON1 and XOFF1 define the auto flow control characters, while XON2 and XOFF2 constitute the special
character detection characters.
Bit 3: SwFlowEn
Set the SwFlowEn bit high to enable auto software flow control. The characters used for automatic software flow control
are selected by SwFlowx. If special character detection is enabled by setting the MODE2[4]: SpecialChr bit high in
addition to automatic software flow control, XON1 and XOFF1 are used for flow control while XON2 and XOFF2 define
the special characters.
Bit 2: GPIAddr
Set the GPIAddr bit high to enable the four GPIO inputs to be used in conjunction with XOFF2 for the definition of a
special character. This can be used, for example, for defining the address of an RS-485 slave device through hard-
ware. The GPIOx input logic levels define the four LSBs of the special character, while the four MSBs are defined by
the XOFF2[7:4] bits. The contents of the XOFF2[3:0] bits are neglected while the GPIO inputs are used in special
character definition. Reading the XOFF2 register does not reflect the logic on GPIO in this mode.
Bit 1: AutoCTS
Set the AutoCTS bit high to enable AutoCTS flow control mode. In this mode, the transmitter stops and starts sending
data at the TX interface depending on the logic state of the CTS input. See the Auto Hardware Flow Control section
for more information about AutoCTS flow control mode. Logic changes at the CTS input result in an interrupt in ISR[7]:
CTSInt. The transmitter must be turned off by setting the MODE1[1]: TxDisabl bit high before AutoCTS mode is enabled.
Bit 0: AutoRTS
Set the AutoRTS bit high to enable AutoRTS flow control mode. In this mode, the logic state of the RTS output is depen-
dent on the receive FIFO fill level. The FIFO thresholds at which RTS changes state are set in FlowLvl. See the Auto
Hardware Flow Control section for more information about AutoRTS flow control mode.
ADDRESS:
0x13
MODE:
R/W
BIT
7
6
5
4
3
2
1
0
NAME
SwFlow3
SwFlow2
SwFlow1
SwFlow0
SwFlowEn
GPIAddr
AutoCTS
AutoRTS
RESET
0