xr21V1410 131 072513
xr21V1410 131 072513
xr21V1410 131 072513
GENERAL DESCRIPTION
The XR21V1410 (V1410) is an enhanced Universal FEATURES
Asynchronous Receiver and Transmitter (UART) with • USB 2.0 Compliant, Full-Speed (12 Mbps)
a USB interface. The USB interface is fully compliant
to Full Speed USB 2.0 specification that supports 12 ■ Supports USB suspend, resume and remote
Mbps USB data transfer rate. The USB interface also wakeup operations
supports USB suspend, resume and remote wakeup • Enhanced UART Features
operations.
■ Data rates up to 12 Mbps
The V1410 operates from an internal 48MHz clock ■ Fractional Baud Rate Generator
therefore no external crystal/oscillator is required like
■ 128 byte TX FIFO
previous generation UARTs. With the fractional baud
rate generator, any baud rate can accurately be ■ 384 byte RX FIFO
generated using the internal 48MHz clock. ■ 7, 8 or 9 data bits
The large 128-byte TX FIFO and 384-byte RX FIFO ■ 1 or 2 stop bits
of the V1410 helps to optimize the overall data ■ Odd, even, mark, space, or no parity
throughput for various applications. The Automatic ■ Automatic Hardware (RTS/CTS or DTR/DSR)
Transceiver Direction control feature simplifies both Flow Control
the hardware and software for half-duplex RS-485
■ Automatic Software (Xon/Xoff) Flow Control
applications. If required, the multidrop (9-bit) mode
with automatic half-duplex transceiver control feature ■ Multidrop mode
further simplifies typical multidrop RS-485 ■ Auto Transceiver Enable
applications. ■ Half-Duplex mode
The V1410 operates from a single 2.97 to 3.63 volt ■ Selectable GPIO or Modem I/O
power supply and has 5V tolerant inputs. The V1410
• Internal 48 MHz clock
is available in a 16-pin QFN package.
• Single 2.97-3.63V power supply
WHQL certified software drivers for Windows 2000,
XP, Vista, 7 and CE, as well as Linux and Mac are • 5V tolerant inputs
supported for the XR21V1410.
• 16-pin QFN package
APPLICATIONS
• Virtual COM Port WHQL certified drivers
• Portable Appliances ■ Windows 2000, XP, Vista and Win7
• External Converters (dongles) ■ Windows CE 4.2, 5.0, 6.0
• Battery-Operated Devices ■ Linux
Mac
• Cellular Data Devices
■
Exar Corporation 48720 Kato Road, Fremont CA, 94538 • (510) 668-7000 • FAX (510) 668-7017 • www.exar.com
XR21V1410
1-CH FULL-SPEED USB UART REV. 1.3.1
Internal 128-byte
48MHz TX FIFO TX
Oscillator Fractional
BRG 384-byte RX
RX FIFO
USBD+ USB Slave
USBD- Interface GPIO5/RTS#
Internal GPIO4/CTS#
Status and GPIOs/ GPIO3/DTR#
SDA I2C Control Modem IO GPIO2/DSR#
SCL Interface Registers GPIO1/CD#
GPIO0/RI#/RWK#
3.3V VCC UART
GND
RX
TX
12 11 10 9
GND 13 8 GPIO0/RI#/RWK#
USBD- 14 16-Pin 7 GPIO1/CD#
QFN
USBD+ 15 6 GPIO2/DSR#
VCC 16 5 GPIO3/DTR#
1 2 3 4
GND
GPIO5/RTS#
GPIO4/CTS#
LOWPOWER
ORDERING INFORMATION
2
XR21V1410
REV. 1.3.1 1-CH FULL-SPEED USB UART
PIN DESCRIPTIONS
Pin Description
16-QFN
NAME TYPE DESCRIPTION
PIN #
UART Signals
RX 10 I UART Channel A Receive Data or IR Receive Data. This pin has an
internal pull-up resistor. Internal pull-up resistor is not disabled during
suspend mode.
TX 9 O UART Channel A Transmit Data or IR Transmit Data.
GPIO0/RI#/RWK# 8 I/O General purpose I/O or UART Ring-Indicator input (active low) or
Remote Wakeup input. See “Section 1.5.11, Remote Wakeup” on
page 10.
This pin has an internal pull-up resistor which is disabled during suspend
mode. If using this GPIO as an input, an external pull-up resistor is
required to minimize the device power consumption in the suspend
mode.
GPIO1/CD# 7 I/O General purpose I/O or UART Carrier-Detect input (active low). This pin
has an internal pull-up resistor which is disabled during suspend mode.
If using this GPIO as an input, an external pull-up resistor is required to
minimize the device power consumption in the suspend mode.
GPIO2/DSR# 6 I/O General purpose I/O or UART Data-Set-Ready input (active low). See
”Section 1.5.5, Automatic DTR/DSR Hardware Flow Control”
on page 9.
This pin has an internal pull-up resistor which is disabled during suspend
mode. If using this GPIO as an input, an external pull-up resistor is
required to minimize the device power consumption in the suspend
mode.
GPIO3/DTR# 5 I/O General purpose I/O or UART Data-Terminal-Ready output (active low).
See ”Section 1.5.5, Automatic DTR/DSR Hardware Flow Con-
trol” on page 9.
This pin has an internal pull-up resistor which is disabled during suspend
mode. If using this GPIO as an input, an external pull-up resistor is
required to minimize the device power consumption in the suspend
mode.
GPIO4/CTS# 4 I/O General purpose I/O or UART Clear-to-Send input (active low). See
”Section 1.5.4, Automatic RTS/CTS Hardware Flow Control”
on page 8.
This pin has an internal pull-up resistor which is disabled during suspend
mode. If using this GPIO as an input, an external pull-up resistor is
required to minimize the device power consumption in the suspend
mode.
GPIO5/RTS# 3 I/O General purpose I/O or UART Request-to-Send output (active low).
See ”Section 1.5.4, Automatic RTS/CTS Hardware Flow Con-
trol” on page 8.
This pin has an internal pull-up resistor which is disabled during suspend
mode. If using this GPIO as an input, an external pull-up resistor is
required to minimize the device power consumption in the suspend
mode.
3
XR21V1410
1-CH FULL-SPEED USB UART REV. 1.3.1
Pin Description
16-QFN
NAME TYPE DESCRIPTION
PIN #
Miscellaneous Signals
LOWPOWER 2 O Low power status output. The LOWPOWER pin will be asserted when-
ever it is not safe to draw the amount of current from VBUS power
requested in the Device Max Power field of the Configuration Descriptor.
The LOWPOWER pin will behave differently for a low power device and a
high power device.
• Low-power device (<= 1 unit load or 100 mA i.e. bMaxPower <= 0x32):
LOWPOWER pin is asserted when the USB UART is in suspend mode.
NOTE: Pin type: I=Input, O=Output, I/O= Input/output, OD=Output Open Drain.
4
XR21V1410
REV. 1.3.1 1-CH FULL-SPEED USB UART
1.0 FUNCTIONAL DESCRIPTIONS
1.1 USB interface
The USB interface of the V1410 is compliant with the USB 2.0 Full-Speed Specifications. The USB
configuration model presented by the V1410 to the device driver is compatible to the Abstract Control Model of
the USB Communication Device Class (CDC-ACM). The V1410 uses the following set of parameters:
• 1 Control Endpoint
■ Endpoint 0 as outlined in the USB specifications
• 1 Configuration is supported
• 2 interfaces for the UART channel
■ Single interrupt endpoint
■ Bulk-in and bulk-out endpoints
1.1.1 USB Vendor ID
Exar’s USB Vendor ID is 0x04E2. This is the default Vendor ID that is used for the V1410 unless a valid
EEPROM is present on the I2C interface signals. If a valid EEPROM is present, the Vendor ID from the
EEPROM will be used.
1.1.2 USB Product ID
The default USB Product ID for the V1410 is 0x1410. If a valid EEPROM is present, the Product ID from the
EEPROM will be used.
1.2 USB Device Driver
The V1410 device can be used with either a standard CDC-ACM driver or a custom driver. When the CDC-
ACM driver is used, the driver has no knowledge of the V1410 device registers. Because of this, the V1410
device is initialized to the following settings:
TABLE 1: V1410 REGISTER DEFAULTS WITH CDC-ACM DRIVER
GPIO_DIRECTION 0x08 DTR configured as an output (in addition to RTS which is set by
GPIO_MODE)
GPIO_INT_MASK 0x30 CD and DSR are interrupt sensitive, i.e. can cause a USB inter-
rupt to be generated
Note that when using a CDC-ACM driver, the V1410 will automatically change the bMaxPacketSize to 63 bytes
to compensate for a known issue with the Microsoft CDC-ACM device driver. A register is available to change
this setting with a custom driver as well. See “Section 3.4.1, CUSTOM Register Description (Read/Write)”
on page 22 and “Section 1.5.2.1, Wide mode Receive” on page 7.
5
XR21V1410
1-CH FULL-SPEED USB UART REV. 1.3.1
The I2C interface provides connectivity to an external I2C memory device (i.e. EEPROM) that can be read by
the V1410 for configuration.
The SDA and SCL are used to specify whether Remote Wakeup and/or Bus Powered configurations are to be
supported. These pins are sampled at power-up. The following table describes how Remote Wakeup and Bus
Powered support.
TABLE 2: REMOTE WAKEUP AND POWER MODES
REMOTE WAKE-UP
SDA SCL POWER MODE
SUPPORT
1 1 No Self-Powered
1 0 No Bus-Powered
0 1 Yes Self-Powered
0 0 Yes Bus-Powered
The I2C address should be 0xA0. An EEPROM can be used to override default Vendor IDs and Device IDs, as
well as other attributes and maximum power consumption. The EEPROM must contain 8 bytes of data as
specified in Table 3
TABLE 3: EEPROM CONTENTS
EEPROM
CONTENTS
ADDRESS
0 Vendor ID (LSB)
1 Vendor ID (MSB)
2 Product ID (LSB)
3 Product ID (MSB)
4 Device Attributes
6 Reserved
7 Signature of 0x58 (’X’). If the signature is not correct, the contents of the EEPROM are ignored.
These values are uploaded from the EEPROM to the corresponding USB Standard Device Descriptor or
Standard Configuration Descriptor. For details of the USB Descriptors, refer to the USB 2.0 specifications.
1.3.1.1 Vendor ID
The Vendor ID value replaces the idVendor field in the USB Standard Device Descriptor.
1.3.1.2 Product ID
The Product ID value replaces the idProduct field in the USB Standard Device Descriptor.
1.3.1.3 Device Attributes
The Device Attributes value replaces the bmAttributes field in the USB Standard Configuration Descriptor. The
default setting in the V1410 device is 0xA0. The bit field definitions are:
• Bit 7 is reserved - set to ’1’
6
XR21V1410
REV. 1.3.1 1-CH FULL-SPEED USB UART
• Bit 6 is Self-powered mode - set to ’0’ for bus-powered, set to ’1’ for self-powered
• Bit 5 is Remote Wakeup support - set to ’0’ for no support, set to ’1’ for remote wakeup support
• Bit 4:0 are reserved - set to ’0’
1.3.1.4 Device Maximum Power
The Device Maximum Power value replaces the bMaxPower field in the USB Standard Configuration
Descriptor. The value specified is in units of 2 mA. For example, the value 0x2F is decimal 47 or 94 mA. Note
that the default bMaxPower of the V1410 device is 94 mA.
1.4 UART Manager
The UART Manager enables/disables the UART including the TX and RX FIFOs. The UART Manager is
located in a separate register block from the UART registers.
1.5 UART
The UART can be configured via USB control transfers from the USB host. The UART transmitter and receiver
sections are described seperately in the following sections. At power-up, the V1410 will default to 9600 bps, 8
data bits, no parity bit, 1 stop bit, and no flow control. If a standard CDC driver accesses the V1410, defaults
will change. See ”Section 1.2, USB Device Driver” on page 5.
1.5.1 Transmitter
The transmitter consists of a 128-byte TX FIFO and a Transmit Shift Register (TSR). Once a bulk-out packet
has been received and the CRC has been validated, the data bytes in that packet are written into the TX FIFO
of the specified UART channel. Data from the TX FIFO is transferred to the TSR when the TSR is idle or has
completed sending the previous data byte. The TSR shifts the data out onto the TX output pin at the data rate
defined by the CLOCK_DIVISOR and TX_CLOCK_MASK registers. The transmitter sends the start bit
followed by the data bits (starting with the LSB), inserts the proper parity-bit if enabled, and adds the stop-
bit(s). The transmitter can be configured for 7 or 8 data bits with or without parity or 9 data bits without parity.
If 9 bit data is selected without wide mode, the 9th bit will always be ’0’.
1.5.1.1 Wide Mode Transmit
When both 9 bit data and wide mode are enabled, two bytes of data must be written. The first byte that is
loaded into the TX FIFO are the first 8 bits (data bits 7-0) of the 9-bit data. Bit-0 of the second byte that is
loaded into the TX FIFO is bit-8 of the 9-bit data. The data that is transmitted on the TX pin is as follows: start
bit, 9-bit data, stop bit. Use the WIDE_MODE register to enable wide mode.
1.5.2 Receiver
The receiver consists of a 384-byte RX FIFO and a Receive Shift Register (RSR). Data that is received in the
RSR via the RX pin is transferred into the RX FIFO along with any error tags such as Framing, Parity, Break
and Overrun errors. Data from the RX FIFO can be sent to the USB host by sending a bulk-in packet.
If the wide mode is not enabled, then 7 or 8 bits of data and optionally a parity bit are transferred to the USB
host.
1.5.2.1 Wide mode Receive
In wide mode, the V1410 receives a 7, 8 or 9 bit character and then forwards the character along with 3
associated error bits to the USB host in two bytes. If data is 7 or 8 bits, a parity bit is also received and checked
if enabled. If data is 9 bits, no parity is checked. The 9th bit of data is in bit position 0 along with the 3 error bits,
break, frame error and overrun error flags in bit positions 1, 2 & 3 respectively. In wide mode, the parity and
framing error and break flag are associated with the character that they accompany and the overrun error is
tied to the current contents of the entire RX FIFO.
7
XR21V1410
1-CH FULL-SPEED USB UART REV. 1.3.1
7 or 8 bit mode
1st byte 7 6 5 4 3 2 1 0
Error flags are also available from the ERROR_STATUS register and the interrupt packet, however these flags
are historical flags indicating that an error has occurred since the previous read of the status register.
Therefore, no conclusion can be drawn as to which specific byte(s) may have contained an actual error in this
manner.
1.5.3 GPIO
There are 6 GPIOs. By default, the GPIOs are general purpose I/Os. However, there are few modes that can
be enabled to add additional feature such as Auto RTS/CTS Flow control, Auto DTR/DSR Flow Control or
Transceiver Enable Control. See Table 14.
1.5.4 Automatic RTS/CTS Hardware Flow Control
GPIO5 and GPIO4 of the UART channel can 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 4):
8
XR21V1410
REV. 1.3.1 1-CH FULL-SPEED USB UART
CTSB# ON OFF 11 ON
8
3
TXB
9
XR21V1410
1-CH FULL-SPEED USB UART REV. 1.3.1
1.5.7.1 Receiver
If an address match occurs in either flow control mode 3 or 4, the address byte will not be loaded into the RX
FIFO, but all subsequent 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.
1.5.7.2 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.
1.5.8 Programmable Turn-Around Delay
By default, the GPIO5/RTS# 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-assertion of GPIO5/RTS# pin can be delayed from 1 to 15 bit times via the
XCVR_EN_DELAY register to allow for the data to reach distant UARTs.
1.5.9 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.
1.5.10 RX FIFO Latency
In normal operation all bulk-in transfers will be of maxPacketSize (64) bytes to improve throughput and to
minimize USB host processing. However, in cases where the baud rate is low this may increase latency
unacceptably. To compensate, the V1410 device has a low latency mode in which received data bytes will be
immediately forwarded at the next BULK_IN packet. The Low Latency mode will be automatically set from a
CDC_ACM_IF_SET_LINE_CODING command whenever the baud rate is less than 46921 bps or alternately a
custom driver may set the RX_FIFO_LOW_LATENCY register bit to force RX data to be delivered without
delay.
1.5.11 Remote Wakeup
Per USB standard, the V1410 device will begin to enter the Suspend state if it does not detect any activity
(including SOF packets) on its USB data lines for 3 ms. The GPIO0/RI#/RWK# pin can be used to request that
the host exit the Suspend state. A high to low transition on this pin will cause the device to signal a remote
wakeup request to the host via a custom driver. Note that the standard CDC-ACM driver does not support this
feature. In order for the remote wakeup to work, several things must be properly configured. First, the GPIO0/
RI#/RWK# pin must be configured as an input. Additionally, the V1410 device must have the remote wakeup
feature support indicated in the USB attributes - See “Section 1.3, I2C Interface” on page 6. Lastly, a
custom software driver must inform the USB host that the peripheral device supports the remote wake-up
feature.
10
XR21V1410
REV. 1.3.1 1-CH FULL-SPEED USB UART
2.0 USB CONTROL COMMANDS
The following table shows all of the USB Control Commands that are supported by the V1410. Commands
included are standard USB commands, CDC-ACM commands and custom Exar commands.
REQUEST
NAME REQUEST VALUE INDEX LENGTH DESCRIPTION
TYPE
GET_CONFIGURATION 0x80 8 0 0 0 0 1 0
SET_CONFIGURATION 0x00 9 n 0 0 0 0 0
11
XR21V1410
1-CH FULL-SPEED USB UART REV. 1.3.1
REQUEST
NAME REQUEST VALUE INDEX LENGTH DESCRIPTION
TYPE
XR_GETN_REG 0xC0 1 0 0 regis- block count count Exar custom register: get
ter LSB MSB count 8-bit registers
register address: see
Table 7
block number: see Table 5
UART Manager 4 The control registers for the UART Manager. The UART Manager
enables/disables the TX and RX FIFOs for each UART.
UART Custom 0x66 Custom UART control registers. Enables / disables for wide mode, low
latency mode and custom interrupt packet.
12
XR21V1410
REV. 1.3.1 1-CH FULL-SPEED USB UART
3.0 REGISTER SET DESCRIPTION
The internal register set of the V1410 consists of 3 different blocks of registers: the UART Manager, UART
registers and UART miscellaneous registers. The UART Manager controls the TX and RX enables and FIFOs
of all UART channels. The UART registers configure and control the remaining UART channel functionality
with the exception of low latency mode, wide mode and custom interrupt packet enables in the UART custom
register block.
Registers are accessed only via the USB interface by the XR_SET_REG and XR_GET_REG commands listed
in Table 4. The register address offsets are given in Table 6, Table 7 and Table 15, and the register blocks
are given in Table 5.
3.1 UART Manager Registers
ADDRESS REGISTER NAME BIT-7 BIT-6 BIT-5 BIT-4 BIT-3 BIT-2 BIT-1 BIT-0
0X10 FIFO_ENABLE 0 0 0 0 0 0 RX TX
0X18 RX_FIFO_RESET Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
0x1C TX_FIFO_RESET Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
13
XR21V1410
1-CH FULL-SPEED USB UART REV. 1.3.1
ADDRESS REGISTER NAME BIT-7 BIT-6 BIT-5 BIT-4 BIT-3 BIT-2 BIT-1 BIT-0
0X00 Reserved 0 0 0 0 0 0 0 0
0X01 Reserved 0 0 0 0 0 0 0 0
0X02 Reserved 0 0 0 0 0 0 0 0
0X03 UART_ENABLE 0 0 0 0 0 0 RX TX
0X04 CLOCK_DIVISOR0 Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
0x05 CLOCK_DIVISOR1 Bit-15 Bit-14 Bit-13 Bit-12 Bit-11 Bit-10 Bit-9 Bit-8
0x07 TX_CLOCK_MASK0 Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
0x08 TX_CLOCK_MASK1 Bit-15 Bit-14 Bit-13 Bit-12 Bit-11 Bit-10 Bit-9 Bit-8
0x09 RX_CLOCK_MASK0 Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
0x0A RX_CLOCK_MASK1 Bit-15 Bit-14 Bit-13 Bit-12 Bit-11 Bit-10 Bit-9 Bit-8
0x0D Reserved 0 0 0 0 0 0 0 0
0x0E Reserved 0 0 0 0 0 0 0 0
0x0F Reserved 0 0 0 0 0 0 0 0
0x10 XON_CHAR Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
0x11 XOFF_CHAR Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
0x12 LOOPBACK_CTL 0 0 0 0 0 En 0 0
0x14 TX_BREAK Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
0x16 Reserved 0 0 0 0 0 0 0 0
0x17 Reserved 0 0 0 0 0 0 0 0
0x18 Reserved 0 0 0 0 0 0 0 0
0x19 Reserved 0 0 0 0 0 0 0 0
14
XR21V1410
REV. 1.3.1 1-CH FULL-SPEED USB UART
3.3 UART Register Descriptions
All register bits default to a value of ’0’ unless otherwise noted.
3.3.1 UART_ENABLE Register Description (Read/Write)
This register enables the UART TX and RX. For proper functionality, the UART TX and RX must be enabled in
the following order:
FIFO_ENABLE = 0x1 // Enable TX FIFO
UART_ENABLE = 0x3 // Enable TX and RX of that channel
FIFO_ENABLE = 0x3 // Enable RX FIFO
UART_ENABLE[0]: Enable UART TX
• Logic 0 = UART TX disabled.
• Logic 1 = UART TX enabled.
UART_ENABLE[1]: Enable UART RX
• Logic 0 = UART RX disabled.
• Logic 1 = UART RX enabled.
UART_ENABLE[7:2]: Reserved
These bits are reserved and should remain ’0’.
3.3.2 CLOCK_DIVISOR0, CLOCK_DIVISOR1, CLOCK_DIVISOR2 Register Description (Read/Write)
These registers are used for programming the baud rate. The V1410 uses a 19-bit divisor and 16-bit mask
register. Using the internal 48MHz oscillator, the 19-bit divisor is calculated as follows:
CLOCK_DIVISOR = Trunc ( 48000000 / Baud Rate )
For example, if the the baud rate is 115200bps, then
CLOCK_DIVISOR = Trunc ( 48000000 / 115200 ) = Trunc (416.66667) = 416
CLOCK_DIVISOR0[7:0]: Baud rate clock divisor bits [7:0]
CLOCK_DIVISOR1[7:0]: Baud rate clock divisor bits [15:8]
CLOCK_DIVISOR2[2:0]: Baud rate clock divisor bits [18:16]
CLOCK_DIVISOR2[7:3]: Reserved
These bits are reserved and should remain ’0’.
3.3.3 TX_CLOCK_MASK0, TX_CLOCK_MASK1 Register Description (Read/Write)
A look-up table is used for the value of the 16-bit TX Clock mask registers. The index of the look-up table is
calculated as follows:
index = Trunc ( ( ( 48000000 / Baud Rate ) - CLOCK_DIVISOR ) * 32)
For example, if the baud rate is 115200bps, then the index will be:
index = Trunc ( ( ( 48000000 / 115200 ) - 416 ) * 32) = Trunc (21.3333) = 21
The values for some baud rates to program the TX_CLOCK_MASK registers are listed in Table 8. For baud
rates that are not listed, use the index to select TX_CLOCK_MASK register values from Table 9.
3.3.4 RX_CLOCK_MASK0, RX_CLOCK_MASK1 Register Description (Read/Write)
The values for some example baud rates to program the RX_CLOCK_MASK registers are listed in Table 8.
For baud rates that are not listed, use the same index calculated for the TX_CLOCK_MASK register to select
RX_CLOCK_MASK register values from Table 9.
15
XR21V1410
1-CH FULL-SPEED USB UART REV. 1.3.1
TABLE 8: CLOCK DIVISOR AND CLOCK MASK VALUES FOR COMMON BAUD RATES
BAUD RATE (BPS) CLOCK DIVISOR (DECIMAL) TX CLOCK MASK (HEX) RX CLOCK MASK (HEX)
For baud rates that are not listed in the table above, use the index value calcuated using the formula in
“Section 3.3.3, TX_CLOCK_MASK0, TX_CLOCK_MASK1 Register Description (Read/Write)” on page 15
to determine which TX Clock and RX Clock Mask register values to use from Table 9. For the the RX Clock
Mask register, there are 2 values listed and would depend on whether the Clock Divisor is even or odd. For
even Clock Divisors, use the value from the first column. For odd Clock Divisors, use the value from the last
column.
16
XR21V1410
REV. 1.3.1 1-CH FULL-SPEED USB UART
17
XR21V1410
1-CH FULL-SPEED USB UART REV. 1.3.1
7 0111
8 1000
9 1001
0 0 0 No parity
0 0 1 Odd parity
0 1 0 Even parity
0 1 stop bit
2 2 stop bits
18
XR21V1410
REV. 1.3.1 1-CH FULL-SPEED USB UART
FLOW_CONTROL[2:0]: Flow control mode select
TABLE 13: FLOW CONTROL MODE SELECTION
19
XR21V1410
1-CH FULL-SPEED USB UART REV. 1.3.1
20
XR21V1410
REV. 1.3.1 1-CH FULL-SPEED USB UART
3.3.12 GPIO_MODE Register Description (Read/Write)
GPIO_MODE[2:0]: GPIO Mode Select
There are 4 modes of operation for the GPIOs. The descriptions can be found in “Section 1.5, UART” on
page 7.
TABLE 14: GPIO MODES
BITS
GPIO0 GPIO1 GPIO2 GPIO3 GPIO4 GPIO5 MODE DESCRIPTION
[2:0]
000 GPIO0 GPIO1 GPIO2 GPIO3 GPIO4 GPIO5 GPIO Mode, All GPIO pins available as GPIO
001 GPIO0 GPIO1 GPIO2 GPIO3 CTS# RTS# GPIO4 and GPIO5 used for Auto RTS/CTS HW
Flow Control
010 GPIO0 GPIO1 DSR# DTR# GPIO4 GPIO5 GPIO2 and GPIO3 used for Auto DTR/DSR HW
Flow Control
011 GPIO0 GPIO1 GPIO2 GPIO3 GPIO4 XCVR GPIO5 used for Auto Transceiver Enable during
Enable Transmit
100 GPIO0 GPIO1 GPIO2 GPIO3 GPIO4 XCVR GPIO5 used for Auto Transceiver Enable after
Enable address match (See FLOW_CONTROL mode 4).
21
XR21V1410
1-CH FULL-SPEED USB UART REV. 1.3.1
ADDRESS REGISTER NAME BIT-7 BIT-6 BIT-5 BIT-4 BIT-3 BIT-2 BIT-1 BIT-0
0x04 LOW_LATENCY 0 0 0 0 0 0 0 EN
22
XR21V1410
REV. 1.3.1 1-CH FULL-SPEED USB UART
3.4.3 CUSTOM_INT_PACKET (Read/Write)
This register is used to enable / disable GPIO status in the high data byte of the custom interrupt packet. See
Table 16, “Interrupt Packet Format,” on page 24 and Table 18, “Data Field of Customized Interrupt
Packet - Exar Vendor Specific,” on page 25.
CUSTOM_INT_PACKET[0]: GPIO1
• Logic 0 = Disable GPIO1 status in custom interrupt packet.
• Logic 1 = Enable GPIO1 status in custom interrupt packet.
CUSTOM_INT_PACKET[1]: GPIO2
• Logic 0 = Disable GPIO2 status in custom interrupt packet.
• Logic 1 = Enable GPIO2 status in custom interrupt packet.
CUSTOM_INT_PACKET[2]: Reserved
• This bit is reserved and should remain ’0’.
CUSTOM_INT_PACKET[3]: GPIO0
• Logic 0 = Disable GPIO0 status in custom interrupt packet.
• Logic 1 = Enable GPIO0 status in custom interrupt packet.
CUSTOM_INT_PACKET[4]: GPIO3
• Logic 0 = Disable GPIO3 status in custom interrupt packet.
• Logic 1 = Enable GPIO3 status in custom interrupt packet.
CUSTOM_INT_PACKET[5]: GPIO4
• Logic 0 = Disable GPIO4 status in custom interrupt packet.
• Logic 1 = Enable GPIO4 status in custom interrupt packet.
CUSTOM_INT_PACKET[6]: GPIO5
• Logic 0 = Disable GPIO5 status in custom interrupt packet.
• Logic 1 = Enable GPIO5 status in custom interrupt packet.
CUSTOM_INT_PACKET[7]: Reserved
This bit is reserved and should remain ’0’.
23
XR21V1410
1-CH FULL-SPEED USB UART REV. 1.3.1
SIZE
OFFSET FIELD VALUE DESCRIPTION
(BYTES)
2 wValue 2 16’h0000
D6 bOverRun Received data has been discarded due to overrun in the device.
D1 bTxCarrier State of transmission carrier. This signal corresponds to V.24 signal 106 and
RS-232 signal DSR.
D0 bRxCarrier State of receiver carrier detection mechanism of device. This signal corre-
sponds to V.24 signal 109 and RS-232 signal DCD.
If the Exar vendor specific packet mapping is enabled then the data field also includes status for all of the
UART / GPIO pins as follows:
24
XR21V1410
REV. 1.3.1 1-CH FULL-SPEED USB UART
TABLE 18: DATA FIELD OF CUSTOMIZED INTERRUPT PACKET - EXAR VENDOR SPECIFIC
9 D9 bGPIO2 (DSR)
8 D8 bGPIO1 (CD)
7 D7 Reserved (0)
6 D6 bOverRun
5 D5 bParity
4 D4 bFraming
3 D3 bRingSignal (RI)
2 D2 bBreak
1 D1 bTxCarrier (DSR)
0 D0 bRxCarrier (CD)
25
XR21V1410
1-CH FULL-SPEED USB UART REV. 1.3.1
26
XR21V1410
REV. 1.3.1 1-CH FULL-SPEED USB UART
27
XR21V1410
REVISION HISTORY
September 2010 1.1.0 Clarified pin functionality, wide mode and low latency mode including registers /
blocks, clarified FLOW_CONTROL and GPIO_MODE register functionality.
April 2011 1.2.0 Updated ordering information, SDA/SCL pin types, modified GPIO0 pin name and
added LOOPBACK_CTL register and description.
April 2012 1.3.0 Updated LOWPOWER pin description, bMaxPacketSize and DC electrical charac-
terisitics. See PCN12-0305-01 for more details.
NOTICE
EXAR Corporation reserves the right to make changes to the products contained in this publication in order to
improve design, performance or reliability. EXAR Corporation assumes no responsibility for the use of any
circuits described herein, conveys no license under any patent or other right, and makes no representation that
the circuits are free of patent infringement. Charts and schedules contained here in are only for illustration
purposes and may vary depending upon a user’s specific application. While the information in this publication
has been carefully checked; no responsibility, however, is assumed for inaccuracies.
EXAR Corporation does not recommend the use of any of its products in life support applications where the
failure or malfunction of the product can reasonably be expected to cause failure of the life support system or
to significantly affect its safety or effectiveness. Products are not authorized for use in such applications unless
EXAR Corporation receives, in writing, assurances to its satisfaction that: (a) the risk of injury or damage has
been minimized; (b) the user assumes all such risks; (c) potential liability of EXAR Corporation is adequately
protected under the circumstances.
Copyright 2013 EXAR Corporation
Datasheet July 2013.
Send your UART technical inquiry with technical details to hotline: uarttechsupport@exar.com.
Reproduction, in part or whole, without the prior written consent of EXAR Corporation is prohibited.
28