XR16C864
22
2.97V TO 5.5V QUAD UART WITH 128-BYTE FIFO
REV. 2.2.0
2.22 Internal Loopback
The 864 UART provides an internal loopback capability for system diagnostic purposes. The internal loopback
mode
is enabled by setting MCR register bit-4 to logic 1. All regular UART functions operate normally.
Figure 12 shows how the modem port signals are re-configured. Transmit data from the transmit shift register
output is internally routed to the receive shift register input allowing the system to receive the same data that it
was sending. The TX pin is held at logic 1 or mark condition while RTS# and DTR# are de-asserted, and
CTS#, DSR# CD# and RI# inputs are ignored. Caution: the RX input must be held to a logic 1 during loopback
test else upon exiting the loopback test the UART may detect and report a false “break” signal.
F
IGURE
12. I
NTERNAL
L
OOP
B
ACK
IN
C
HANNELS
A-D
TX A-D
RX A-D
Modem / General Purpose Control Logic
Internal Data Bus Lines and Control Signals
RTS# A-D
MCR bit-4=1
VCC
VCC
Transmit Shift Register
(THR/FIFO)
Receive Shift Register
(RHR/FIFO)
CTS# A-D
DTR# A-D
DSR# A-D
RTS#
CTS#
DTR#
DSR#
VCC
OP1#
RI#
VCC
OP2#
CD#
VCC
OP1# A-D/RS485
RI# A-D
OP2# A-D
CD# A-D
XR16C864
23
REV. 2.2.0
2.97V TO 5.5V QUAD UART WITH 128-BYTE FIFO
3.0 UART INTERNAL REGISTERS
Each UART channel in the 864 has its own set of configuration registers selected by address lines A0, A1 and
A2 with a specific channel selected (See
Table 1
and
Table 2
). The complete register set is shown on
Table 8
and
Table 9
.
T
ABLE
8: UART INTERNAL REGISTERS
A2,A1,A0 A
DDRESSES
R
EGISTER
R
EAD
/W
RITE
C
OMMENTS
16C550 C
OMPATIBLE
R
EGISTERS
0 0 0 RHR - Receive Holding Register
THR - Transmit Holding Register
Read-only
Write-only
LCR[7] = 0
0 0 0 DLL - Div Latch Low Byte Read/Write LCR[7] = 1, LCR 0xBF
0 0 1 DLM - Div Latch High Byte Read/Write LCR[7] = 1, LCR 0xBF
0 0 0 DREV - Device Revision Code Read-only DLL, DLM = 0x00,
LCR[7] = 1, LCR 0xBF
0 0 1 DVID - Device Identification Code Read-only DLL, DLM = 0x00,
LCR[7] = 1, LCR 0xBF
0 0 1 IER - Interrupt Enable Register Read/Write LCR[7] = 0
0 1 0 ISR - Interrupt Status Register
FCR - FIFO Control Register
Read-only
Write-only
LCR[7] = 0
0 1 1 LCR - Line Control Register Read/Write
1 0 0 MCR - Modem Control Register Read/Write LCR[7] = 0
1 0 1 LSR - Line Status Register
Reserved
Read-only
Write-only
LCR[7] = 0
1 1 0 MSR - Modem Status Register
Reserved
Read-only
Write-only
LCR[7] = 0
1 1 1 SPR - Scratch Pad Register Read/Write LCR[7] = 0, FCTR[6] = 0
1 1 1 FLVL - TX/RX FIFO Level Counter Register Read-only LCR[7] = 0, FCTR[6] = 1
1 1 1 EMSR - Enhanced Mode Select Register Write-only LCR[7] = 0, FCTR[6] = 1
E
NHANCED
R
EGISTERS
0 0 0 TRG - TX/RX FIFO Trigger Level Reg
FC - TX/RX FIFO Level Counter Register
Write-only
Read-only
LCR = 0xBF
0 0 1 FCTR - Feature Control Reg Read/Write LCR = 0xBF
0 1 0 EFR - Enhanced Function Reg Read/Write LCR = 0xBF
1 0 0 Xon-1 - Xon Character 1 Read/Write LCR = 0xBF
1 0 1 Xon-2 - Xon Character 2 Read/Write LCR = 0xBF
1 1 0 Xoff-1 - Xoff Character 1 Read/Write LCR = 0xBF
1 1 1 Xoff-2 - Xoff Character 2 Read/Write LCR = 0xBF
X X X FSTAT - FIFO Status Register Read-only FSRS# pin is logic 0
XR16C864
24
2.97V TO 5.5V QUAD UART WITH 128-BYTE FIFO
REV. 2.2.0
.
T
ABLE
9: INTERNAL REGISTERS DESCRIPTION.
S
HADED
BITS
ARE
ENABLED
WHEN
EFR B
IT
-4=1
A
DDRESS
A2-A0
R
EG
N
AME
R
EAD
/
W
RITE
B
IT
-7 B
IT
-6 B
IT
-5 B
IT
-4 B
IT
-3 B
IT
-2 B
IT
-1 B
IT
-0 C
OMMENT
16C550 Compatible Registers
0 0 0 RHR RD Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
LCR[7] = 0
0 0 0 THR WR Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
0 0 1 IER RD/WR 0/ 0/ 0/ 0/ Modem
Stat. Int.
Enable
RX Line
Stat.
Int.
Enable
TX
Empty
Int
Enable
RX
Data
Int.
Enable
CTS#
Int.
Enable
RTS#
Int.
Enable
Xoff Int.
Enable
Sleep
Mode
Enable
0 1 0 ISR RD FIFOs
Enabled
FIFOs
Enabled
0/ 0/ INT
Source
Bit-3
INT
Source
Bit-2
INT
Source
Bit-1
INT
Source
Bit-0
INT
Source
Bit-5
INT
Source
Bit-4
0 1 0 FCR WR RX FIFO
Trigger
RX FIFO
Trigger
0/ 0/ DMA
Mode
Enable
TX
FIFO
Reset
RX
FIFO
Reset
FIFOs
Enable
TX FIFO
Trigger
TX FIFO
Trigger
0 1 1 LCR RD/WR Divisor
Enable
Set TX
Break
Set Par-
ity
Even
Parity
Parity
Enable
Stop
Bits
Word
Length
Bit-1
Word
Length
Bit-0
1 0 0 MCR RD/WR 0/ 0/ 0/ Internal
Lopback
Enable
OP2#/
INT Out-
put
Enable
OP1#/
RS-485
Output
Control
RTS#
Output
Control
DTR#
Output
Control
LCR[7] = 0
BRG
Pres-
caler
IR Mode
ENable
XonAny
1 0 1 LSR RD RX FIFO
Global
Error
THR &
TSR
Empty
THR
Empty
RX
Break
RX Fram-
ing Error
RX
Parity
Error
RX
Over-
run
Error
RX
Data
Ready
1 1 0 MSR RD CD#
Input
RI#
Input
DSR#
Input
CTS#
Input
Delta
CD#
Delta
RI#
Delta
DSR#
Delta
CTS#
1 1 1 SPR RD/WR Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0 LCR[7] = 0
FCTR[6]=0
1 1 1 EMSR WR Rsvd Rsvd Auto
RTS
Hyst.
bit-3
Auto
RTS
Hyst.
bit-2
Enable
RX DMA
Enable
TX
DMA
Rx/Tx
FIFO
Count
Rx/Tx
FIFO
Count
LCR[7] = 0
FCTR[6]=1
1 1 1 FLVL RD Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0

XR16C864IQ-F

Mfr. #:
Manufacturer:
MaxLinear
Description:
UART Interface IC 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