5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.), with 64-byte
FIFOs and Motorola µP interface
Rev. 03 — 29 November 2005Product data sheet
1.General description
The SC68C752B is a dual Universal Asynchronous Receiver/Transmitter (UART) with
64-byte FIFOs, automatic hardware/software flow control, and data rates up to 5 Mbit/s.
The SC68C752B offers enhanced features. It has a Transmission Control Register (TCR)
that stores receiver FIFO threshold levels to start/stop transmission during hardware and
software flow control. With the FIFO Rdy register, the software gets the status of
TXRDY/RXRDY for all four ports in one access. On-chip status registers provide the user
with error indications, operational status, and modem interface control. System interrupts
may be tailored to meet user requirements. An internal loopback capability allows
on-board diagnostics.
The UART transmits data, sent to it over the peripheral 8-bit bus, on the TX signal and
receives characters on the RX signal. Characters can be programmed to be 5 bits, 6 bits,
7 bits, or 8 bits. The UART has a 64-byte receive FIFO and transmit FIFO and can be
programmed to interrupt at different trigger levels. The UART generates its own desired
baud rate based upon a programmable divisor and its input clock. It can transmit even,
odd, or no parity and 1, 1.5, or 2 stop bits. The receiver can detect break, idle, or framing
errors, FIFO overflow, and parity errors. The transmitter can detect FIFO underflow. The
UART also contains a software interface for modem control operations, and has software
flow control and hardware flow control capabilities.
2.Features
The SC68C752B is available in LQFP48 and HVQFN32 packages.
■ Dual channel with Motorola µP interface
■ Up to 5 Mbit/s data rate
■ 64-byte transmit FIFO
■ 64-byte receive FIFO with error flags
■ Programmable and selectable transmit and receive FIFO trigger levels for DMA and
interrupt generation
■ Software/hardware flow control
◆ Programmable Xon/Xoff characters
◆ Programmable Auto-RTS and Auto-CTS
■ Optional data flow resume by Xon any character
■ DMA signalling capability for both received and transmitted data
■ Supports 5 V, 3.3 V and 2.5 V operation
■ 5 V tolerant inputs
■ Software selectable baud rate generator
Philips Semiconductors
■ Prescaler provides additional divide-by-4 function
■ Industrial temperature range (−40 °C to +85 °C)
■ Fast data bus access time
■ Programmable Sleep mode
■ Programmable serial interface characteristics
◆ 5-bit, 6-bit, 7-bit, or 8-bit characters
◆ Even, odd, or no parity bit generation and detection
◆ 1, 1.5, or 2 stop bit generation
■ False start bit detection
■ Complete status reporting capabilities in both normal and Sleep mode
■ Line break generation and detection
■ Internal test and loopback capabilities
■ Fully prioritized interrupt system controls
■ Modem control functions (CTS, RTS, DSR, DTR, RI, and CD)
3.Ordering information
SC68C752B
5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.), with 64-byte FIFOs
Product data sheetRev. 03 — 29 November 20054 of 49
Philips Semiconductors
SC68C752B
5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.), with 64-byte FIFOs
5.2Pin description
Table 2:Pin description
SymbolPinTypeDescription
LQFP48HVQFN32
A02819IAddress 0 select bit. Internal registers address selection.
A12718IAddress 1 select bit. Internal registers address selection.
A22617IAddress 2 select bit. Internal registers address selection.
A3119IAddress 3. A3 is used to select Channel A or Channel B. A logic LOW
selects Channel A, and a logic HIGH selects Channel B. (See
CDA, CDB40, 16-ICarrier Detect (active LOW). These inputs are associated with
individual UART ChannelA and Channel B. A logic LOW on these pins
indicates that a carrier has been detected by the modem for that
channel. The state of these inputs is reflected in the Modem Status
Register (MSR).
CS108IChip Select (active LOW). This pin enables data transfers between the
user CPU and the SC68C752B for the channel(s) addressed. Individual
UART sections (A, B) are addressed by A3. See
CTSA, CTSB38, 2325, 15IClear to Send (active LOW). These inputs are associated with
individual UART Channel A and Channel B. A logic 0 (LOW) on the
pins indicates the modem or data set is ready to accept transmit data
from the SC68C752B. Status can be tested by reading MSR[4]. These
pins only affect the transmit and receive operations when Autofunction is enabled via the Enhanced Feature Register EFR[7] for
hardware flow control operation.
D0 to D744, 45, 46,
47, 48, 1,
2, 3
DSRA, DSRB39, 20-IData Set Ready (active LOW). These inputs are associated with
DTRA, DTRB34, 35-OData Terminal Ready (active LOW). These outputs are associated with
GND17, 2413ISignal and power ground.
IRQ3021OInterrupt Request. Interrupts from UART Channel A and Channel B are
27, 28, 29,
30, 31, 32,
1, 2
I/OData bus (bidirectional). These pins are the 8-bit, 3-state data bus for
transferring information to or from the controlling CPU. D0 is the least
significant bit and the first data bit in a transmit or receive serial data
stream.
individual UART ChannelA and Channel B. A logic 0 (LOW) on these
pins indicates the modem or data set is powered-on and is ready for data
exchange with the UART. The state of these inputs is reflected in the
Modem Status Register (MSR).
individual UART ChannelA and Channel B. A logic 0 (LOW) on these
pins indicates that the SC68C752B is powered-on and ready.Thesepins
can be controlled via the Modem Control Register. Writing a logic 1 to
MCR[0] will set the
The output of these pins will be a logic 1 after writing a logic 0 to MCR[0],
or after a reset.
wire-ORed internally to function as a single IRQ interrupt. This pin
transitions to a logic 0 (if enabled by the Interrupt Enable Register)
whenever a UART channel(s) requires service. Individual channel
interrupt status can be determined by addressing each channel through
its associated internal register, using
resistor must be connected between this pin and V
Product data sheetRev. 03 — 29 November 20055 of 49
Philips Semiconductors
SC68C752B
5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.), with 64-byte FIFOs
Table 2:Pin description
SymbolPinTypeDescription
LQFP48HVQFN32
R/W1512IA logic LOW on this pin will transfer the contents of the data bus (D[0:7])
n.c.12, 25, 29,3714, 20-not connected
OPA, OPB32, 922, 7OUser defined outputs. This function is associated with individual
RESET3624IReset (active LOW). This pin will reset the internal registers and all the
RIA, RIB41, 21-IRing Indicator (active LOW). These inputs are associated with
RTSA, RTSB33, 2223, 16ORequest to Send (active LOW). These outputs are associated with
RXA, RXB5, 44, 3IReceive data input. These inputs are associated with individual serial
RXRDYA,
RXRDYB
TXA, TXB7, 85, 6OTransmit data A, B. These outputs are associated with individual serial
TXRDYA,
TXRDYB
31, 18-OReceive Ready (active LOW).
43, 6-OTransmit Ready (active LOW).
…continued
from an external CPU to an internal register that is defined by address
bits A[0:2]. A logic HIGH on this pin will load the contents of an internal
register defined by address bits A[0:2] on the SC68C752B data bus
(D[0:7]) for access by an external CPU.
Channel A and Channel B. The state of these pins is defined by the user
through the software settings of MCR[3].
MCR[3] is set to a logic 1.
logic 0. The output of these two pins is HIGH after reset.
outputs. The UART transmitter output and the receiver input will be
disabled during reset time. RESET is an active LOW input.
individual UART ChannelA and Channel B. A logic 0 on these pins
indicates the modem has received a ringing signal from the telephone
line. A LOW-to-HIGH transition on these input pins generates a modem
status interrupt, if enabled. The state of these inputs is reflected in the
Modem Status Register (MSR).
individual UART ChannelA and Channel B. A logic 0 on the
indicates the transmitter has data ready and waiting to send. Writing a
logic 1 in the Modem Control Register MCR[1] will set this pin to a
logic 0, indicating data is available. After a reset these pins are set to a
logic 1. These pins only affect the transmit and receive operations when
Auto-
RTS function is enabled via the Enhanced Feature Register
(EFR[6]) for hardware flow control operation.
channel data to the SC68C752B. During the local Loopback mode,
these RX input pins are disabled and TX data is connected to the UART
RX input internally.
the trigger level has been reached or the FIFO has at least one
character. It goes HIGH when the RX FIFO is empty.
transmit channel data from the SC68C752B. During the local Loopback
mode, the TX output pin is disabled and TX data is internally connected
to the UART RX input.
there are at least a trigger level number of spaces available or when the
FIFO is empty. It goes HIGH when the FIFO is full or not empty.
Product data sheetRev. 03 — 29 November 20056 of 49
Philips Semiconductors
SC68C752B
5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.), with 64-byte FIFOs
Table 2:Pin description
SymbolPinTypeDescription
LQFP48HVQFN32
V
CC
XTAL11310ICrystal or external clock input. Functions as a crystal input or as an
XTAL21411OOutput of the crystal oscillator or buffered clock. (See also XTAL1.)
19, 4226IPower supply input.
…continued
external clock input. A crystal can be connected between XTAL1 and
XTAL2 to form an internal oscillator circuit (see
an external clock can be connected to this pin to provide custom data
rates.
XTAL2 is used as a crystal oscillator output or a buffered clock output.
Product data sheetRev. 03 — 29 November 20057 of 49
Philips Semiconductors
6.Functional description
The UART will perform serial-to-parallel conversion on data characters received from
peripheral devices or modems, and parallel-to-parallel conversion on data characters
transmitted by the processor. The complete status of each channel of the SC68C752B
UART can be read at any time during functional operation by the processor.
The SC68C752B can be placed in an alternate mode (FIFO mode) relieving the processor
of excessive software overhead by buffering received/transmitted characters. Both the
receiver and transmitter FIFOs can store up to 64 bytes (including three additional bits of
error status per byte for the receiver FIFO) and have selectable or programmable trigger
levels. Primary outputs RXRDY and TXRDY allow signalling of DMA transfers.
The SC68C752B has selectable hardware flow control and software flow control.
Hardware flow control significantly reduces software overhead and increases system
efficiency by automatically controlling serial data flow using the RTS output and CTS input
signals. Software flow control automatically controls data flow by using programmable
Xon/Xoff characters.
The UART includes a programmable baud rate generator that can divide the timing
reference clock input by a divisor between 1 and (216− 1).
SC68C752B
5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.), with 64-byte FIFOs
6.1Trigger levels
The SC68C752B provides independent selectable and programmable trigger levels for
both receiver and transmitter DMA and interrupt generation. After reset, both transmitter
and receiver FIFOs are disabled and so, in effect, the trigger level is the default value of
one byte. The selectable trigger levels are available via the FCR. The programmable
trigger levels are available via the Trigger Level Register (TLR).
6.2Hardware flow control
Hardware flow control is comprised of Auto-CTS and Auto-RTS. Auto-CTS and Auto-RTS
can be enabled/disabled independently by programming EFR[7:6].
With Auto-CTS, CTS must be active before the UART can transmit data.
Auto-RTSonly activates the RTSoutput when there is enough room in the FIFO to receive
data and de-activates the RTS output when the RX FIFO is sufficiently full. The halt and
resume trigger levels in the TCR determine the levels at which RTS is
activated/deactivated.
If both Auto-CTS and Auto-RTS are enabled, when RTS is connected to CTS, data
transmission does not occur unless the receiver FIFO has empty space. Thus, overrun
errors are eliminated during hardware flow control. If not enabled, overrun errors occur if
the transmit data rate exceeds the receive FIFO servicing latency.
Product data sheetRev. 03 — 29 November 20058 of 49
Philips Semiconductors
SC68C752B
5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.), with 64-byte FIFOs
UART 1UART 2
SERIAL TO
PARALLEL
RX
FIFO
FLOW
CONTROL
D7 to D0
PARALLEL
TO SERIAL
TX
FIFO
FLOW
CONTROL
RXTX
RTSCTS
TXRX
CTSRTS
Fig 4. Auto flow control (Auto-RTS and Auto-CTS) example
6.2.1Auto-RTS
Auto-RTSdata flow control originates in the receiver block (see Figure 1 “Block diagram of
SC68C752B” on page 3). Figure 5 shows RTS functional timing. The receiver FIFO trigger
levelsused in Auto-RTS are stored in the TCR. RTS is active if the RX FIFO level is below
the halt trigger level in TCR[3:0]. When the receiver FIFO halt trigger level is reached,
RTS is de-asserted. The sending device (for example, another UART) may send an
additional byte after the trigger level is reached (assuming the sending UART has another
byte to send) because it may not recognize the de-assertion of RTS until it has begun
sending the additional byte. RTS is automatically reasserted once the receiver FIFO
reaches the resume trigger level programmed via TCR[7:4]. This re-assertion allows the
sending device to resume transmission.
PARALLEL
TO SERIAL
TX
FIFO
FLOW
CONTROL
D7 to D0
SERIAL TO
PARALLEL
RX
FIFO
FLOW
CONTROL
002aaa228
Startbyte NStartbyte N + 1 StartStopStopRX
RTS
R/W
(1) N = receiver FIFO trigger level.
(2) The two blocks in dashed lines cover the case where an additional byte is sent, as described in Section 6.2.1.
Product data sheetRev. 03 — 29 November 20059 of 49
Philips Semiconductors
6.2.2Auto-CTS
The transmitter circuitry checks CTS before sending the next data byte. When CTS is
active, the transmitter sends the next byte. To stop the transmitter from sending the
following byte, CTS must be de-asserted before the middle of the last stop bit that is
currently being sent. The Auto-CTS function reduces interrupts to the host system. When
flow control is enabled, CTS level changes do not trigger host interrupts because the
device automatically controls its own transmitter. Without Auto-CTS, the transmitter sends
any data present in the transmit FIFO and a receiver overrun error may result.
SC68C752B
5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.), with 64-byte FIFOs
Startbyte 0 to 7 StopTX
CTS
(1) When CTS is LOW, the transmitter keeps sending serial data out.
(2) When CTS goes HIGH before the middle of the last stop bit of the current byte, the transmitter finishes sending the current
byte, but is does not send the next byte.
(3) When CTS goes from HIGH to LOW, the transmitter begins sending data again.
Fig 6. CTS functional timing
Startbyte 0 to 7 Stop
002aaa227
6.3Software flow control
Software flow control is enabled through the Enhanced Feature Register and the Modem
Control Register. Different combinations of software flow control can be enabled by setting
different combinations of EFR[3:0]. Table 4 shows software flow control options.
Product data sheetRev. 03 — 29 November 200510 of 49
Philips Semiconductors
There are two other enhanced features relating to software flow control:
• Xon Any function (MCR[5]): Operation will resume after receiving any character
after recognizing the Xoff character. It is possible that an Xon1 character is
recognized as an Xon Any character, which could cause an Xon2 character to be
written to the RX FIFO.
• Special character (EFR[5]): Incoming data is compared to Xoff2. Detection of the
special character sets the Xoff interrupt (IIR[4]) but does not halt transmission. The
Xoff interrupt is cleared by a read of the IIR. The special character is transferredto the
RX FIFO.
6.3.1Receive flow control
When software flow control operation is enabled, the SC68C752B will compare incoming
data with Xoff1/Xoff2 programmed characters (in certain cases, Xoff1 and Xoff2 must be
received sequentially). When the correct Xoff character are received, transmission is
halted after completing transmission of the current character. Xoff detection also sets
IIR[4] (if enabled via IER[5]) and causes IRQ to go HIGH.
To resume transmission, an Xon1/Xon2 character must be received (in certain cases
Xon1 and Xon2 must be received sequentially). When the correct Xon characters are
received, IIR[4] is cleared, and the Xoff interrupt disappears.
SC68C752B
5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.), with 64-byte FIFOs
6.3.2Transmit flow control
Xoff1/Xoff2 character is transmitted when the RX FIFO has passed the HALTtrigger level
programmed in TCR[3:0].
Xon1/Xon2 character is transmitted when the RX FIFO reaches the RESUME trigger level
programmed in TCR[7:4].
The transmission of Xoff/Xon(s) follows the exact same protocol as transmission of an
ordinary byte from the FIFO. This means that even if the word length is set to be 5, 6, or 7
characters, then the 5, 6, or 7 least significant bits of Xoff1/Xoff2, Xon1/Xon2 will be
transmitted. (Note that the transmission of 5, 6, or 7 bits of a character is seldom done, but
this functionality is included to maintain compatibility with earlier designs.)
It is assumed that software flow control and hardware flow control will never be enabled
simultaneously. Figure 7 shows an example of software flow control.
Product data sheetRev. 03 — 29 November 200511 of 49
Philips Semiconductors
6.3.3Software flow control example
SC68C752B
5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.), with 64-byte FIFOs
UART2UART1
Fig 7. Software flow control example
6.3.3.1Assumptions
UART1 is transmitting a large text file to UART2. Both UARTs are using software flow
control with single character Xoff (0F) and Xon (0D) tokens. Both have Xoff threshold
(TCR[3:0] = F) set to 60, and Xon threshold (TCR[7:4] = 8) set to 32. Both have the
interrupt receive threshold (TLR[7:4] = D) set to 52.
TRANSMIT FIFO
PARALLEL-TO-SERIAL
SERIAL-TO-PARALLEL
Xon1 WORD
Xon2 WORD
Xoff1 WORD
Xoff2 WORD
data
Xoff–Xon–Xoff
compare
programmed
Xon-Xoff
characters
RECEIVE FIFO
SERIAL-TO-PARALLEL
PARALLEL-TO-SERIAL
Xon1 WORD
Xon2 WORD
Xoff1 WORD
Xoff2 WORD
002aaa229
UART1 begins transmission and sends 52 characters, at which point UART2 will generate
an interrupt to its processor to service the RX FIFO, but assume the interrupt latency is
fairly long. UART1 will continue sending characters until a total of 60 characters have
been sent. At this time, UART2 will transmit a 0Fh to UART1, informing UART1 to halt
transmission. UART1 will likely send the 61st character while UART2 is sending the Xoff
character. Now UART2 is serviced and the processor reads enough data out of the RX
FIFO that the level drops to 32. UART2 will now send a 0Dh to UART1, informing UART1
to resume transmission.
Product data sheetRev. 03 — 29 November 200512 of 49
Philips Semiconductors
6.4Reset
Table 5 summarizes the state of register after reset.
Table 5:Register reset functions
RegisterReset controlReset state
Interrupt Enable Register
Interrupt Identification Register
FIFO Control Register
Line Control Register
Modem Control Register
Line Status Register
Modem Status Register
Enhanced Feature Register
Receiver Holding Register
Transmitter Holding Register
Transmission Control Register
Trigger Level Register
SC68C752B
5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.), with 64-byte FIFOs
RESETall bits cleared
RESETbit 0 is set; all other bits cleared
RESETall bits cleared
RESETreset to 0001 1101 (1Dh)
RESETall bits cleared
RESETbits 5 and 6 set; all other bits cleared
RESETbits 0 to 3 cleared; bits 4 to 7 input signals
RESETall bits cleared
RESETpointer logic cleared
RESETpointer logic cleared
RESETall bits cleared
RESETall bits cleared
Remark: Registers DLL, DLH, SPR, XON1, XON2, XOFF1, XOFF2 are not reset by the
top-level reset signal RESET, that is, they hold their initialization values during reset.
Table 6 summarizes the state of registers after reset.
Product data sheetRev. 03 — 29 November 200513 of 49
Philips Semiconductors
5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.), with 64-byte FIFOs
6.5Interrupts
The SC68C752B has interrupt generation and prioritization (six prioritized levels of
interrupts) capability. The Interrupt Enable Register (IER) enables each of the six types of
interrupts and the IRQ signal in response to an interrupt generation. The IER can also
disable the interrupt system by clearing bits 0:3, 5:7. When an interrupt is generated, the
IIR indicates that an interrupt is pending and provides the type of interrupt through
IIR[5:0]. Table 7 summarizes the interrupt control functions.
Table 7:Interrupt control functions
IIR[5:0]Priority
level
000001Nonenonenonenone
0001101receiver line statusOE, FE, PE, or BI errors occur in
0011002RX time-outstale data in RX FIFOread RHR
0001002RHR interruptDRDY (data ready)
It is important to note that for the framing error, parity error, and break conditions, LSR[7]
generates the interrupt. LSR[7] is set when there is an error anywhere in the RX FIFO,
and is cleared only when there are no more errors remaining in the FIFO. LSR[4:2] always
represent the error status for the received character at the top of the RX FIFO. Reading
the RX FIFO updates LSR[4:2] to the appropriate status for the new character at the top of
the FIFO. If the RX FIFO is empty, then LSR[4:2] are all zeros.
For the Xoff interrupt, if an Xoff flow character detection caused the interrupt, the interrupt
is cleared by an Xon flow character detection. If a special character detection caused the
interrupt, the interrupt is cleared by a read of the IIR.
Product data sheetRev. 03 — 29 November 200514 of 49
Philips Semiconductors
6.5.1Interrupt mode operation
In Interrupt mode (if any bit of IER[3:0] is 1) the processor is informed of the status of the
receiver and transmitter by an interrupt signal, IRQ. Therefore, it is not necessary to
continuously poll the Line Status Register (LSR) to see if any interrupt needs to be
serviced. Figure 8 shows Interrupt mode operation.
SC68C752B
5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.), with 64-byte FIFOs
PROCESSOR
Fig 8. Interrupt mode operation
6.5.2Polled mode operation
In Polled mode (IER[3:0] = 0000) the status of the receiver and transmitter can be
checkedby polling the Line Status Register (LSR). This mode is an alternative to the FIFO
Interrupt mode of operation where the status of the receiver and transmitter is
automatically known by means of interrupts sent to the CPU. Figure 9 shows FIFO
Polled mode operation.