© 2014 Exar Corporation
XR22801
13 / 40 exar.com/XR22801
Rev 1A
GPIO
There can be up to 8 GPIO pins in the XR22801 UART including the UART RX and TX pins. These GPIO pins may be con-
figured as UART GPIO, or for other UART functions, e.g. RTS# function, or be assigned to the EDGE. Note that the UART
RX and TX pins may be assigned to the EDGE, but may not be used as UART GPIOs. Refer to Enhanced Dedicated GPIO
Entity section on page 14.
Automatic RTS / CTS hardware flow control
E5/RTS#/RS485/G5 and E4/CTS#/G4 of the UART channel may be enabled as the RTS# and CTS# signals for Auto RTS/
CTS flow control when GPIO_MODE[2:0] = ’001’ and FLOW_CONTROL[2:0] = ’001’. Automatic RTS flow control is used to
prevent data overrun errors in local RX FIFO by de-asserting the RTS signal to the remote UART. When there is room in the
RX FIFO, the RTS pin will be re-asserted. Automatic CTS flow control is used to prevent data overrun to the remote RX
FIFO. The CTS# input is monitored to suspend / restart the local transmitter (see Figure 3):
Figure 3: Auto RTS / CTS Hardware Flow Control
Automatic DTR / DSR hardware flow control
Auto DTR/DSR hardware flow control behaves the same as the Auto RTS/CTS hardware flow control described above
except that it uses the DTR# and DSR# signals. For Auto hardware flow control, FLOW_CONTROL[2:0] = ’001’. E3/DTR#/
G3 and E2/DSR#/G2 become DTR# and DSR#, respectively, when GPIO_MODE[2:0] = ’010’.
Automatic XON / XOFF software flow control
When software flow control is enabled, the XR22801 compares the receive data characters with the programmed Xon or
Xoff characters. If the received character matches the programmed Xoff character, the XR22801 will halt transmission as
soon as the current character has completed transmission. Data transmission is resumed when a received character
matches the Xon character. Software flow control is enabled when FLOW_CONTROL[2:0] = ’010’.
Transm itter
Auto CTS
Monitor
Receiver FIFO
Trigger Reached
Auto RTS
Trigger Level
Remote UART
UARTB
RTSA#
CTSB#
TXB
RXA
ON ON
OFF
ON ON
OFF
1
2
3
4
1) COM port opened, RX FIFO empty, RTSA# output is asserted
2) Signal propagated to CTSB# input
3) Data bytes enter TX FIFO, begin transmitting on TXB
4) Data propagates to Receiving device RXA
5) RX FIFO reaches threshold
6) RTSA# de-asserts
7) Signal propagates to CTSB# input
8) Transmission stops on TXB
9) USB Bulk-In empties RX FIFO below threshold, RTSA# is asserted
10) Signal propagated to CTSB# input
11) Data bytes resume transmitting on TXB
5
6
7
8
9
10
11
RTSA# CTSB#
TXBRXA
CTSA#
TXA
RTSB#
RXB
Receiver FIFO
Trigger Reached
Auto RTS
Trigger Level
Transmitter
Auto CTS
Monitor
Local UART
UARTA
© 2014 Exar Corporation
XR22801
14 / 40 exar.com/XR22801
Rev 1A
Automatic RS-485 half duplex control
The Auto RS-485 Half-Duplex Control feature changes the behavior of the E5/RTS#/RS485/G5 pin when enabled by the
GPIO_MODE register bits 2-0. See GPIO_MODE Register Description on page 22. The FLOW_CONTROL register must
also be set appropriately for use in multidrop applications. See FLOW_CONTROL Register Description on page 20. If
enabled, the transmitter automatically asserts the E5/RTS#/RS485/G5 output prior to sending the data. By default, it de-
asserts E5/RTS#/RS485/G5 following the last stop bit of the last character that has been transmitted, but the RS485_DE-
LAY register may be used to delay the deassertion. The polarity of the E5/RTS#/RS485/G5 signal can also be modified
using the GPIO_MODE register bit 3.
Multidrop mode with address matching
The XR22801 device has two address matching modes which are also set by the flow control register using modes 3 and 4.
These modes are intended for a multi-drop network application. In these modes, the XON_CHAR register holds a unicast
address and the XOFF_CHAR holds a multicast address. A unicast address is used by a transmitting master to broadcast
an address to all attached slave devices that is intended for only one slave device. A multicast address is used to broadcast
an address intended for more than one recipient device. Each attached slave device should have a unique unicast address
value stored in the XON_CHAR register, while multiple slaves may have the same multicast adderss stored in the
XOFF_CHAR register. An address match occurs when an address byte (9th bit or parity bit is ’1’) is received that matches
the value stored in either the XON_CHAR or XOFF_CHAR register.
Multidrop mode receiver
If an address match occurs in either flow control mode 3 or 4, the UART Receiver will automatically be enabled and all sub-
sequent data bytes will be loaded into the RX FIFO. The UART Receiver will automatically be disabled when an address
byte is received that does not match the values in the XON_CHAR or XOFF_CHAR register.
Multidrop mode transmitter
In flow control mode 3, the UART transmitter is always enabled, irrespective of the RX address match. In flow control mode
4, the UART transmitter will only be enabled if there is an RX address match.
Programmable Turn-Around Delay
By default, the E5/RTS#/RS485/G5 pin will be de-asserted immediately after the stop bit of the last byte has been shifted.
However, this may not be ideal for systems where the signal needs to propagate over long cables. Therefore, the de-asser-
tion of E5/RTS#/RS485/G5 pin can be delayed from 1 to 15 bit times via the RS485_DELAY register to allow for the data to
reach distant UARTs.
Half-duplex mode
Half-duplex mode is enabled when FLOW_CONTROL[3] = 1. In this mode, the UART will ignore any data on the RX input
when the UART is transmitting data.
EDGE - Enhanced Dedicated GPIO Entity
The XR22801 has 8 IO pins that may be assigned to the EDGE. By default, these pins are assigned to the UART function,
either to the UART data and / or flow control pins or to the UART GPIO. Note that UART GPIO and EDGE have separate
register controls. Pins assigned to the UART function cannot be controlled by the EDGE registers and vice versa. To assign
pins to the EDGE, use the EDGE_FUNC_SEL register. See EDGE_FUNC_SEL register description on page 33.
The EDGE controller allows for GPIO signals to be individually set or cleared or to be grouped, such that the all pins in the
group can be simultaneously accessed for reads or writes. Note that on write accesses, output pins will change in 4-bit sub-
groups on core clock (60 MHz) boundaries. For example, if an 8 bit data group is defined and the data value is written from
0x00 to 0xFF, 4 bits would change from ’0’ to ’1’ followed by the next 4 bits one clock cycle (~ 17 ns) later.
EDGE IOs can be configured as inputs or outputs. Outputs can be configured as push-pull or open drain and can be tri-
stated. Inputs can be configured to generate interrupts to the USB host on either negative or postive edge transitions.
© 2014 Exar Corporation
XR22801
15 / 40 exar.com/XR22801
Rev 1A
Another feature of the EDGE controller is that up to 2 GPIO pins within the EDGE can be assigned to pulse width modu-
lated (PWM) outputs. Each of the PWM outputs can be used to generate an output clock or pulse of varying duty cycle.
Both low and high cycles can be configured in steps of 267 ns up to 1.092 ms. The output can be controlled to generate a
single "one-shot" pulse or to free run. Refer to the EDGE_PWM0_CTRL and EDGE_PWM1_CTRL registers on page 37
for control of PWM outputs.
I
2
C
The XR22801 implements an I
2
C multi-master using the control endpoint of the full-speed USB function to transfer data to
and from the I
2
C interface. The I
2
C master supports both standard (100 kbps) and fast (400 kbps) modes and supports mul-
tiple master configurations to allow other devices to access slave devices on the I
2
C. The I
2
C function is an HID function
and uses the native HID driver. It supports both 7 and 10 bit addressing modes.
Regulated 3.3V Power Output
The XR22801 internal voltage regulator provides 3.3 VDC output power which can be utilized by other circuitry. Refer to
Electrical Characteristics on page 3 for maximum power capability. For bus powered devices, significant utilization of the
3V3 output power may require increasing the maximum power request above the 250 mA default value from the USB host
by programming the OTP.
OTP
The OTP is an on-chip non-volatile memory, that is one-time programmable via the USB interface. Bit locations within the
memory may be programmed at various times allowing for customization of the XR22801. Some bits are pre-programmed
at the factory and caution must be taken not to program any locations except user defined addresses. Contact the factory
uarttechsupport@exar.com for information and assistance in programming the XR22801 OTP.

XR22801IL32-F

Mfr. #:
Manufacturer:
MaxLinear
Description:
I/O Controller Interface IC Hi-Speed USB 10/100 Eth Brdg w 1CH UART
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet