SC28L92_7 © NXP B.V. 2007. All rights reserved.
Product data sheet Rev. 07 — 19 December 2007 16 of 73
NXP Semiconductors
SC28L92
3.3 V/5.0 V Dual Universal Asynchronous Receiver/Transmitter
(1)
Often this division will result in a non-integer number; 26.3 for example. One may only
program integer numbers to a digital divider. Therefore 26 (0x1A) would be chosen. If 26.7
were the result of the division, then 27 (0x1B) would be chosen. This gives a baud rate
error of 0.3/26.3 or 0.3/26.7 that yields a percentage error of 1.14 % or 1.12 %
respectively, well within the ability of the asynchronous mode of operation. Higher input
frequency to the counter reduces the error effect of the fractional division.
6.2.5 Counter mode
In the counter mode the counter/timer counts the value of the CTLR CTUR down to zero
and then sets the ISR[3] bit and sets the counter/timer output from 1 to 0. It then rolls over
to 65,365 and continues counting with no further observable effect. Reading the C/T in the
counter mode outputs the present state of the C/T. If the C/T is not stopped, a read of the
C/T may result in changing data on the data bus.
6.2.6 Time-out mode
The time-out mode uses the received data stream to control the counter. The time-out
mode forces the C/T into the timer mode. Each time a received character is transferred
from the shift register to the Rx FIFO, the counter is restarted. If a new character is not
received before the counter reaches zero count, the counter ready bit is set, and an
interrupt can be generated. This mode can be used to indicate when data has been left in
the Rx FIFO for more than the programmed time limit. If the receiver has been
programmed to interrupt the CPU when the receive FIFO is full, and the message ends
before the FIFO is full, the CPU will not be interrupted for the remaining characters in the
Rx FIFO.
By programming the C/T such that it would time-out in just over one character time, the
above situation could be avoided. The processor would be interrupted any time the data
stream had stopped for more than one character time. Note: This is very similar to the
watchdog time of MR0. The difference is in the programmability of the delay time and that
the watchdog timer is restarted by either a receiver load to the Rx FIFO or a system read
from it.
This mode is enabled by writing the appropriate command to the command register.
Writing 0xA to CRA or CRB will invoke the time-out mode for that channel. Writing 0xC to
CRA or CRB will disable the time-out mode. Only one receiver should use this mode at a
time. However, if both are on, the time-out occurs after both receivers have been inactive
for the time-out period. The start of the C/T will be on the logic OR of the two receivers.
The time-out mode disables the regular start counter or stop counter commands and puts
the C/T into counter mode under the control of the received data stream. Each time a
received character is transferred from the shift register to the Rx FIFO, the C/T is stopped
after one C/T clock, reloaded with the value in CTUR and CTLR and then restarted on the
next C/T clock. If the C/T is allowed to end the count before a new character has been
received, the counter ready bit, ISR[3], will be set. If IMR[3] is set, this will generate an
interrupt. Since receiving a character restarts the C/T, the receipt of a character after the
C/T has timed out will clear the counter ready bit, ISR[3], and the interrupt. Invoking the
Set Time-out Mode On command, CRx = 0xA, will also clear the counter ready bit and
stop the counter until the next character is received. The counter/timer is controlled with
six commands: Start/Stop C/T, Read/Write Counter/Timer lower register and Read/Write
n
counter/timer input clock
216× desired baud rate()×
--------------------------------------------------------------------------
=
SC28L92_7 © NXP B.V. 2007. All rights reserved.
Product data sheet Rev. 07 — 19 December 2007 17 of 73
NXP Semiconductors
SC28L92
3.3 V/5.0 V Dual Universal Asynchronous Receiver/Transmitter
Counter/Timer upper register. These commands have slight differences depending on the
mode of operation. Please see the detail of the commands in Section 7.3.3 “Command
registers”.
6.2.7 Time-out mode caution
When operating in the special time-out mode, it is possible to generate what appears to be
a false interrupt, i.e., an interrupt without a cause. This may result when a time-out
interrupt occurs and then, before the interrupt is serviced, another character is received,
i.e., the data stream has started again. (The interrupt latency is longer than the pause in
the data stream.) In this case, when a new character has been received, the counter/timer
will be restarted by the receiver, thereby withdrawing its interrupt. If, at this time, the
interrupt service begins for the previously seen interrupt, a read of the ISR will show the
Counter Ready bit not set. If nothing else is interrupting, this read of the ISR will return a
0x00 character. This action may present the appearance of a spurious interrupt.
6.2.8 Communications channels A and B
Each communications channel of the SC28L92 comprises a full-duplex asynchronous
receiver/transmitter (UART). The operating frequency for each receiver and transmitter
can be selected independently from the baud rate generator, the counter/timer, or from an
external input. The transmitter accepts parallel data from the CPU, converts it to a serial
bit stream, inserts the appropriate start, stop, and optional parity bits and outputs a
composite serial stream of data on the TxD output pin. The receiver accepts serial data on
the RxD pin, converts this serial input to parallel format, checks for start bit, stop bit, parity
bit (if any), or break condition and sends an assembled character to the CPU via the
receive FIFO. Three status bits (break received, framing and parity errors) are also
FIFOed with each data character.
6.2.9 Input port
The inputs to this unlatched 7-bit (6-bit for 68xxx mode) port can be read by the CPU by
performing a read operation at address 0xD. A HIGH input results in a logic 1 while a LOW
input results in a logic 0. D7 will always read as a logic 1. The pins of this port can also
serve as auxiliary inputs to certain portions of the DUART logic, modem and DMA.
Four change-of-state detectors are provided which are associated with inputs IP3, IP2,
IP1 and IP0. A HIGH-to-LOW or LOW-to-HIGH transition of these inputs, lasting longer
than 25 µs to 50 µs, will set the corresponding bit in the input port change register. The
bits are cleared when the register is read by the CPU. Any change of state can also be
programmed to generate an interrupt to the CPU.
The input port change of state detection circuitry uses a 38.4 kHz sampling clock derived
from one of the baud rate generator taps. This results in a sampling period of slightly more
than 25 µs (this assumes that the clock input is 3.6864 MHz). The detection circuitry, in
order to guarantee that a true change in level has occurred, requires two successive
samples at the new logic level be observed. As a consequence, the minimum duration of
the signal change is 25 µs if the transition occurs coincident with the first sample pulse.
The 50 µs time refers to the situation in which the change of state is just missed and the
first change of state is not detected until 25 µs later.
SC28L92_7 © NXP B.V. 2007. All rights reserved.
Product data sheet Rev. 07 — 19 December 2007 18 of 73
NXP Semiconductors
SC28L92
3.3 V/5.0 V Dual Universal Asynchronous Receiver/Transmitter
6.2.10 Output port
The output ports are controlled from six places: the OPCR, OPR, MR, Command, SOPR
and ROPR registers. The OPCR register controls the source of the data for the output
ports OP2 through OP7. The data source for output ports OP0 and OP1 is controlled by
the MR and CR registers. When the OPR is the source of the data for the output ports, the
data at the ports is inverted from that in the OPR register. The content of the OPR register
is controlled by the set output port bits command and the reset output bits command.
These commands are at 0xE and 0xF, respectively. When these commands are used,
action takes place only at the bit locations where ones exist. For example, a one in bit
location 5 of the data word used with the set output port bits command will result in OPR5
being set to one. The OP5 would then be set to zero (V
SS
). Similarly, a one in bit position 5
of the data word associated with the reset output ports bits command would set OPR5 to
zero and, hence, the pin OP5 to a one (V
DD
).
These pins along with the IP pins and their change-of-state detectors are often used for
modem and DMA control.
6.3 Operation
6.3.1 Transmitter
The SC28L92 is conditioned to transmit data when the transmitter is enabled through the
command register. The SC28L92 indicates to the CPU that it is ready to accept a
character by setting the TxRDY bit in the status register. This condition can be
programmed to generate an interrupt request at OP6 or OP7 and INTRN. When the
transmitter is initially enabled the TxRDY and TxEMPT bits will be set in the status
register. When a character is loaded to the transmit FIFO the TxEMPT bit will be reset.
The TxEMPT will not set until: 1) the transmit FIFO is empty and the transmit shift register
has finished transmitting the stop bit of the last character written to the transmit FIFO, or
2) the transmitter is disabled and then re-enabled. The TxRDY bit is set whenever the
transmitter is enabled and the Tx FIFO is not full. Data is transferred from the holding
register to transmit shift register when it is idle or has completed transmission of the
previous character. Characters cannot be loaded into the Tx FIFO while the transmitter is
disabled.
The transmitter converts the parallel data from the CPU to a serial bit stream on the TxD
output pin. It automatically sends a start bit followed by the programmed number of data
bits, an optional parity bit, and the programmed number of stop bits. The least significant
bit is sent first. Following the transmission of the stop bits, if a new character is not
available in the Tx FIFO, the TxD output remains HIGH and the TxEMT bit in the Status
Register (SR) will be set to 1. Transmission resumes and the TxEMT bit is cleared when
the CPU loads a new character into the Tx FIFO.
If the transmitter is disabled it continues operating until the character currently being
transmitted and any characters in the Tx FIFO, including parity and stop bits, have been
transmitted. New data cannot be loaded to the Tx FIFO when the transmitter is disabled.
When the transmitter is reset it stops sending data immediately.
The transmitter can be forced to send a break (a continuous LOW condition) by issuing a
START BREAK command via the CR register. The break is terminated by a STOP BREAK
command or a transmitter reset.

SC28L92A1BS,551

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