SC16C550B All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Product data sheet Rev. 6 — 16 December 2014 16 of 49
NXP Semiconductors
SC16C550B
5 V, 3.3 V and 2.5 V UART with 16-byte FIFOs
6.7 Loopback mode
The internal loopback capability allows on-board diagnostics. In the loopback mode, the
normal modem interface pins are disconnected and reconfigured for loopback internally.
MCR[3:0] register bits are used for controlling loopback diagnostic testing. In the loopback
mode, OUT1
(bit 2) and OUT2 (bit 3) in the MCR register control the modem RI and DCD
inputs, respectively. MCR signals DTR
and RTS (bits 0:1) are used to control the modem
CTS
and DSR inputs, respectively. The transmitter output (TX) and the receiver input (RX)
are disconnected from their associated interface pins, and instead are connected together
internally (see Figure 11
). The inputs CTS, DSR, DCD, and RI are disconnected from their
normal modem control input pins, and instead are connected internally to DTR
, RTS,
OUT1
and OUT2. Loopback test data is entered into the transmit holding register via the
user data bus interface, D0 to D7. The transmit UART serializes the data and passes the
serial data to the receive UART via the internal loopback connection. The receive UART
converts the serial data back into parallel data that is then made available at the user data
interface D0 to D7. The user optionally compares the received data to the initial
transmitted data for verifying error-free operation of the UART TX/RX circuits.
In this mode, the receiver and transmitter interrupts are fully operational. The Modem
Control Interrupts are also operational. However, the interrupts can only be read using the
lower four bits of the Modem Status Register (MSR[3:0]) instead of the four Modem Status
Register bits 7:4. The interrupts are still controlled by the IER.
SC16C550B All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Product data sheet Rev. 6 — 16 December 2014 17 of 49
NXP Semiconductors
SC16C550B
5 V, 3.3 V and 2.5 V UART with 16-byte FIFOs
Fig 11. Internal loopback mode diagram
CTS
TRANSMIT
FIFO
REGISTERS
TX
RECEIVE
SHIFT
REGISTER
RECEIVE
FIFO
REGISTERS
RX
INTERCONNECT BUS LINES
AND
CONTROL SIGNALS
SC16C550B
TRANSMIT
SHIFT
REGISTER
002aaa587
DATA BUS
AND
CONTROL
LOGIC
REGISTER
SELECT
LOGIC
INTERRUPT
CONTROL
LOGIC
D0 to D7
IOR, IOR
IOW, IOW
RESET
INT
TXRDY
RXRDY
CLOCK AND
BAUD RATE
GENERATOR
MODEM
CONTROL
LOGIC
RTS
DSR
DTR
RI
OUT1
DCD
OUT2
MCR[4] = 1
XTAL2
BAUDOUT
XT
AL1
RCLK
DDIS
A0 to A2
CS0, CS1, CS2
AS
SC16C550B All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Product data sheet Rev. 6 — 16 December 2014 18 of 49
NXP Semiconductors
SC16C550B
5 V, 3.3 V and 2.5 V UART with 16-byte FIFOs
7. Register descriptions
Table 9 details the assigned bit functions for the twelve SC16C550B internal registers.
The assigned bit functions are more fully defined in Section 7.1
through Section 7.10.
[1] The value shown represents the register’s initialized hexadecimal value; X = not applicable.
[2] These registers are accessible only when LCR[7] is set to a logic 0.
[3] These functions are not supported in the HVQFN32 package, and should not be written.
[4] OUT2
pin is not supported in the HVQFN32 package. MCR3 is INT enabled in the HVQFN32 package. INT is always enabled in DIP40,
PLCC44 and LQFP48 packages.
[5] The Special Register set is accessible only when LCR[7] is set to a logic 1.
Table 9. SC16C550B internal registers
A2 A1 A0 Register Default
[1]
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
General Register Set
[2]
0 0 0 RHR XX bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
0 0 0 THR XX bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
001IER 00 modem
status
interrupt
receive
line status
interrupt
transmit
holding
register
receive
holding
register
010FCR 00 RX
trigger
(MSB)
RX
trigger
(LSB)
reserved reserved DMA
mode
select
[3]
TX FIFO
reset
RX FIFO
reset
FIFO
enable
0 1 0 ISR 01 FIFOs
enabled
FIFOs
enabled
00 INT
priority
bit 2
INT
priority
bit 1
INT
priority
bit 0
INT
status
0 1 1 LCR 00 divisor
latch
enable
set break set parity even
parity
parity
enable
stop bits word
length
bit 1
word
length
bit 0
1 0 0 MCR 00 reserved auto flow
control
enable
loopback OUT2
,
INT
enable
[4]
OUT1
[3]
RTS DTR
101LSR 60 FIFO
data
error
transmit
empty
transmit
holding
empty
break
interrupt
framing
error
parity
error
overrun
error
receive
data
ready
1 1 0 MSR X0 DCD RI DSR CTS DCD
RI DSR CTS
1 1 1 SPR FF bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
Special Register Set
[5]
0 0 0 DLL XX bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
0 0 1 DLM XX bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8

SC16C550BIB48,128

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
UART Interface IC 16CB 2.5V-5V 1CH UART 16B FIFO
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union