English
Language : 

XR21B1420 Datasheet, PDF (24/60 Pages) Exar Corporation – Enhanced 1-Ch Full-Speed USB UART
XR21B1420
GPIO_MODE (0x00C) - Read/Write
Bit
15:10
9
8
7
6:5
4
3
2:0
Default
Description
0
Reserved
These bits are reserved and should be written as ‘0’.
1
Receive Toggle
0: GPIO9 is used for general purpose I/O
1: GPIO9 is used to receive toggle output (default).
1
Transmit Toggle
0: GPIO8 is used for general purpose I/O.
1: GPIO8 is used to transmit toggle output (default).
0
Clock Enable
0: GPIO6 is used for general purpose I/O
1: GPIO6 is used to output a clock. See “OUTCLK (0x018) - Read/Write” on page 31.
0
Auto RS-485 Half-Duplex Select
00: GPIO. GPIO7/RS485 is used for general purpose I/O
01: RS485_EN_ACT. GPIO7/RS485 is used for auto RS-485 half-duplex enable. Asserted whenever the UART
is transmitting
10: RS485_EN_FLOW. GPIO7/RS485 is used for auto RS-485 half-duplex enable. Asserted for the duration of
the address match
11: RESERVED. Reserved value, do not use
0
Auto RS-485 Half-Duplex Pin
0: GPIO5/RTS#/RS485 function is selected by GPIO_MODE[2:0]. GPIO7/RS485 function is GPIO.
1: GPIO7/RS485 function is selected by GPIO_MODE[6:5]. GPIO5/RTS#/RS485 function must be any function
other than that selected for GPIO7/RS485.
0
Auto RS-485 Half-Duplex Polarity
0: Active low auto. RS-485 half-duplex enable
1: Active high auto. RS-485 half-duplex enable
000
GPIO Mode Select
000: GPIO. RTS/CTS and DTR/DSR are used for general purpose I/O.
001: RTS_CTS. GPIO4 and GPIO5 used for Auto RTS/CTS HW Flow Control
010: DTR_DSR. GPIO2 and GPIO3 used for Auto DTR/DSR HW Flow Control
011: RS485_EN_ACT. GPIO5/RTS#/RS485 pin used for auto RS-485 half-duplex enable during Transmit
100: RS485_EN_FLOW. GPIO5/RTS#/RS485 pin used for auto RS-485 half-duplex enable after address
match.
101 to 111: Reserved. Reserved value, do not use.
© 2014 Exar Corporation
24 / 60
exar.com/XR21B1420
Rev 1A