© 2015 Exar Corporation
XR22804
20 / 47 exar.com/XR22804
Rev 1B
UART Registers
UART registers are accessible via the USB interface using the XR_SET_REG and XR_GET_REG USB commands. Note
that all addresses not listed in this table are reserved or undefined. Upper byte (bits 15:8) not shown in table are also
reserved and should remain 0x00. Writing to any register other than those defined in Table5 may result in undefined behav-
ior of the device. The addresses for each of UARTs in the XR22804 are the same. Because each UART is assigned a
unique USB address during enumeration by the USB host, a GUI connected to a specific COM port will be directed via the
driver to the appropriate UART channel.
UART Register Map
Table 5: XR22804 Register Map
Address Register Name
Bit 7
(15)
Bit 6
(14)
Bit 5
(13)
Bit 4
(12)
Bit 3
(11)
Bit 2
(10)
Bit 1
(9)
Bit 0
(8)
0x040 UART_ENABLE 0 0 0 0 0 0 RX TX
0x045 FORMAT STOP PARITY DATA_BITS
0x046 FLOW_CONTROL 0 0 0 0
AUTO_
RS485
MODE
0x047 XON_CHAR CHAR
0x048 XOFF_CHAR CHAR
0x049 ERROR_STATUS
BREAK
_AC-
TIVE
OVER-
RUN
PARITY FRAME BREAK 0 0 0
0x04A
TX_BREAK (MSB) VALUE [MSB]
TX_BREAK (LSB) VALUE [LSB]
0x04B RS485_DELAY 0 0 0 0 VALUE
0x04C GPIO_MODE 0 0 0 0
RS485_
POL
MODE
0x04D GPIO_DIRECTION 0 0 GPIO5 GPIO4 GPIO3 GPIO2 GPIO1 GPIO0
0x04E GPIO_SET 0 0 GPIO5 GPIO4 GPIO3 GPIO2 GPIO1 GPIO0
0x04F GPIO_CLEAR 0 0 GPIO5 GPIO4 GPIO3 GPIO2 GPIO1 GPIO0
0x050 GPIO_STATUS 0 0 GPIO5 GPIO4 GPIO3 GPIO2 GPIO1 GPIO0
0x051 GPIO_INT_MASK 0 0 GPIO5 GPIO4 GPIO3 GPIO2 GPIO1 GPIO0
0x052 CUSTOMIZED_INT 0 0 0 0 0 0 0 EN
0x054 PIN_PULLUP_EN TX RX GPIO5 GPIO4 GPIO3 GPIO2 GPIO1 GPIO0
0x055 PIN_PULLDOWN_EN TX RX GPIO5 GPIO4 GPIO3 GPIO2 GPIO1 GPIO0
0x056 LOOPBACK 0 0 0 0 0
DTR_
DSR
RTS_
CTS
TX_RX
0x057 IR_MODE 0 0 0 0 0
TX_
PULSE
RX_
INVER
T
EN
0x05F REMOTE_WAKEUP 0 0 0 0 RX_EN RI_EN 0 0