SC68C652B_2 © NXP B.V. 2009. All rights reserved.
Product data sheet Rev. 02 — 2 November 2009 22 of 43
NXP Semiconductors
SC68C652B
Dual UART with 32-byte FIFOs and IrDA encoder/decoder
7.5 Line Control Register (LCR)
The Line Control Register is used to specify the asynchronous data communication
format. The word length, the number of stop bits, and the parity are selected by writing the
appropriate bits in this register.
Table 16. Line Control Register bits description
Bit Symbol Description
7 LCR[7] Divisor latch enable. The internal baud rate counter latch and Enhanced
Feature mode enable.
logic 0 = divisor latch disabled (normal default condition)
logic 1 = divisor latch enabled
6 LCR[6] Set break. When enabled, the Break control bit causes a break
condition to be transmitted (the TXn output pin is forced to a logic 0
state). This condition exists until disabled by setting LCR[6] to a logic 0.
logic 0 = no break condition (normal default condition)
logic 1 = forces the transmitter output pin (TXn) to a logic 0 for
alerting the remote receiver to a line break condition
5:3 LCR[5:3] Set parity; even parity; parity enable. Programs the parity conditions
(see
Table 17).
2 LCR[2] Stop bits. The length of stop bit is specified by this bit in conjunction with
the programmed word length (see
Table 18).
logic 0 or cleared = default condition
1:0 LCR[1:0] Word length bits 1, 0. These two bits specify the word length to be
transmitted or received (see
Table 19).
logic 0 or cleared = default condition
Table 17. LCR[5:3] parity selection
LCR[5] LCR[4] LCR[3] Parity selection
X X 0 no parity
X 0 1 odd parity
011even parity
001forced parity ‘1’
111forced parity ‘0’
Table 18. LCR[2] stop bit length
LCR[2] Word length Stop bit length (bit times)
0 5, 6, 7, 8 1
15 1
1
2
1 6, 7, 8 2
Table 19. LCR[1:0] word length
LCR[1] LCR[0] Word length
00 5
01 6
10 7
11 8
SC68C652B_2 © NXP B.V. 2009. All rights reserved.
Product data sheet Rev. 02 — 2 November 2009 23 of 43
NXP Semiconductors
SC68C652B
Dual UART with 32-byte FIFOs and IrDA encoder/decoder
7.6 Modem Control Register (MCR)
This register controls the interface with the modem or a peripheral device.
Table 20. Modem Control Register bits description
Bit Symbol Description
7 MCR[7] Clock select
logic 0 = divide-by-1 clock input
logic 1 = divide-by-4 clock input
6 MCR[6] IR enable (see
Figure 16)
logic 0 = enable the standard modem receive and transmit input/output
interface (normal default condition)
logic 1 = enable infrared IrDA receive and transmit inputs/outputs. While
in this mode, the TXn/RXn output/inputs are routed to the infrared
encoder/decoder. The data input and output levels will conform to the
IrDA infrared interface requirement. As such, while in this mode, the
infrared TXn output will be a logic 0 during idle data conditions.
5 MCR[5] reserved; set to ‘0’
4 MCR[4] Loopback. Enable the local loopback mode (diagnostics). In this mode the
transmitter output (TXn) and the receiver input (RXn),
CTSn, DSRn, CDn,
and
RIn pins are disconnected from the SC68C652B I/O pins. Internally
the modem data and control pins are connected into a loopback data
configuration (see
Figure 4). In this mode, the receiver and transmitter
interrupts remain fully operational. The Modem Control Interrupts are also
operational, but the interrupts’ sources are switched to the lower four bits of
the Modem Control. Interrupts continue to be controlled by the IER
register.
logic 0 = disable loopback mode (normal default condition)
logic 1 = enable local loopback mode (diagnostics)
3 MCR[3]
OP2 control
logic 0 = forces
OP2n output pin to HIGH state
logic 1 = forces
OP2n output pin to LOW state. In loopback mode,
controls MSR[7].
2 MCR[2] (
OP1). OP1A/OP1B are not available as an external signal in the
SC68C652B. This bit is instead used in the loopback mode only. In the
loopback mode, this bit is used to write the state of the modem
RIn pin
interface signal.
1 MCR[1]
RTS
logic 0 = force
RTSn output pin to a logic 1 (normal default condition)
logic 1 = force
RTSn output pin to a logic 0
0 MCR[0]
DTR
logic 0 = force
DTRn output pin to a logic 1 (normal default condition)
logic 1 = force
DTRn output pin to a logic 0
SC68C652B_2 © NXP B.V. 2009. All rights reserved.
Product data sheet Rev. 02 — 2 November 2009 24 of 43
NXP Semiconductors
SC68C652B
Dual UART with 32-byte FIFOs and IrDA encoder/decoder
7.7 Line Status Register (LSR)
This register provides the status of data transfers between the SC68C652B and the CPU.
Table 21. Line Status Register bits description
Bit Symbol Description
7 LSR[7] FIFO data error
logic 0 = no error (normal default condition)
logic 1 = at least one parity error, framing error or break indication is in the
current FIFO data. This bit is cleared when there are no remaining error flags
associated with the remaining data in the FIFO.
6 LSR[6] THR and TSR empty. This bit is the Transmit Empty indicator. This bit is set to a
logic 1 whenever the transmit holding register and the transmit shift register are
both empty. It is reset to logic 0 whenever either the THR or TSR contains a
data character. In the FIFO mode, this bit is set to ‘1’ whenever the transmit
FIFO and transmit shift register are both empty.
5 LSR[5] THR empty. This bit is the Transmit Holding Register Empty indicator. This bit
indicates that the UART is ready to accept a new character for transmission. In
addition, this bit causes the UART to issue an interrupt to CPU when the THR
interrupt enable is set. The THR bit is set to a logic 1 when a character is
transferred from the transmit holding register into the transmitter shift register.
The bit is reset to a logic 0 concurrently with the loading of the transmitter
holding register by the CPU. In the FIFO mode, this bit is set when the transmit
FIFO is empty; it is cleared when at least 1 byte is written to the transmit FIFO.
4 LSR[4] Break interrupt
logic 0 = no break condition (normal default condition)
logic 1 = the receiver received a break signal (RXn pin was a logic 0 for one
character frame time). In the FIFO mode, only one break character is loaded
into the FIFO.
3 LSR[3] Framing error
logic 0 = no framing error (normal default condition)
logic 1 = framing error. The receive character did not have a valid stop bit(s).
In the FIFO mode, this error is associated with the character at the top of the
FIFO.
2 LSR[2] Parity error
logic 0 = no parity error (normal default condition
logic 1 = parity error. The receive character does not have correct parity
information and is suspect. In the FIFO mode, this error is associated with
the character at the top of the FIFO.
1 LSR[1] Overrun error
logic 0 = no overrun error (normal default condition)
logic 1 = overrun error. A data overrun error occurred in the receive shift
register. This happens when additional data arrives while the FIFO is full. In
this case, the previous data in the shift register is overwritten. Note that under
this condition, the data byte in the receive shift register is not transferred into
the FIFO, therefore the data in the FIFO is not corrupted by the error.
0 LSR[0] Receive data ready
logic 0 = no data in receive holding register or FIFO (normal default
condition).
logic 1 = data has been received and is saved in the receive holding register
or FIFO.

SC68C652BIB48,128

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
IC UART DUAL 48LQFP
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet