Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
4
CONFIGURATION FOR 68XXX BUS INTERFACE (MOTOROLA) (see Figure 2)
Symbol Pin no.
Pin
type
Name and Function
I/M 21 I Bus Configuration: When LOW configures the bus interface to the Conditions shown in this table.
D0–D7 20–17,
12–9
I/O Data Bus: Bi-directional 3-State data bus used to transfer commands, data and status between the DUART and
the CPU. D0 is the least significant bit.
CEN 29 I Chip Enable: Active-LOW input signal. When LOW, data transfers between the CPU and the DUART are
enabled on D0–D7 as controlled by the R/WN and A0–A6 inputs. When HIGH, places the D0–D7 lines in the
3-State condition.
R/WN 30 I Read/Write: Input Signal. When CEN is LOW R/WN HIGH input a read cycle, when LOW a write cycle.
IACKN 26 I Interrupt Acknowledge: Active-LOW input indicates an interrupt acknowledge cycle. Usually asserted by the
CPU in response to an interrupt request. When asserted places the interrupt vector on the bus and asserts
DACKN.
DACKN 31 O Data Transfer Acknowledge: An open-drain active-LOW output asserted in a write, read, or interrupt
acknowledge cycle to indicate proper transfer of data between the CPU and the DUART.
A6–A0 3–6,
23–25
I Address Inputs: Select the DUART internal registers and ports for read/write operations.
RESETN 8 I Reset: A LOW level clears internal registers (SR A , SR B, IMR, ISR, OPR, OPCR), places I/O[7:0] A and B at
high impedance input state, stops the counter/timer, and puts Channels A and B in the inactive state, with the
TxD A and TxD B outputs in the mark (HIGH) state. Sets MR pointer to MR1, 9600 baud, 1 start, no parity and
1 stop bit(s). (See Reset Table)
IRQN 54 O Interrupt Request: Active-LOW, open-drain, output which signals the CPU that one or more of the eighteen (18)
maskable interrupting conditions are true.
X1/SCLK 55 I Crystal 1: Crystal or external clock input. A crystal or clock of the specified limits must be supplied at all times.
When a crystal is used, a capacitor must be connected from this pin to ground (see Figure 12).
X2 56 O Crystal 2: Connection for other side of the crystal. When a crystal is used, a capacitor must be connected from
this pin to ground (see Figure 12). If Sclk is driven from an external source, this pin must be left open.
RxD A 7 I Channel A Receiver Serial Data Input: The least significant bit is received first. ‘Mark’ is HIGH; ‘space’ is LOW.
RxD B 22 I Channel B Receiver Serial Data Input: The least significant bit is received first. ‘Mark’ is HIGH; ‘space’ is LOW.
TxD A 53 O Channel A Transmitter Serial Data Output: The least significant bit is transmitted first. This output is held in
the ‘mark’ condition when the transmitter is disabled, idle or when operating in local loop back mode.
‘Mark’ is HIGH; ‘space’ is LOW.
TxD B 32 O Channel B Transmitter Serial Data Output: The least significant bit is transmitted first. This output is held in
the ‘mark’ condition when the transmitter is disabled, idle, or when operating in local loop back mode. ‘Mark’ is
HIGH; ‘space’ is LOW.
I/O[7:0]A 45–52 I/O General-purpose input and output ports channel A: The character of these pins is controlled by I/OPCR.
They may be inputs or outputs and will present many internal clocks and interrupt signals: RTS, CTS, DTR, DSR
etc. All have change of state detectors and the input is always active. These pins are set to input only when
addressed from the low order 16 address space. When these pins are configured for interrupt type signals
(RxRDY, TxRDY, C/TRDY) They switch to open drain outputs. Each of these pins have a small pull-up ‘resistor
that supplies approximately 5 µA of current.
I/O[7:0]B 33–40 I/O General-purpose input and output ports channel B: The character of these pins is controlled by I/OPCR.
They may be inputs or outputs and will present many internal clocks and interrupt signals: RTS, CTS, DTR, DSR
etc. All have change of state detectors and the input is always active. These pins are set to output only when
addressed from the low order 16 address space. When these pins are configured for interrupt type signals
(RxRDY, TxRDY, C/TRDY) They switch to open drain outputs. Each of these pins have a small pull-up ‘resistor
that supplies approximately 5 µA of current.
Vcc 1, 13,
27, 41,
42
Power Power Supply (5 pins): +3.3 or +5V supply input ± 10% (4 Vcc Pins) ). Operation is assured from 2.97 V to
5.5 V. Timing parameters are specified with respect to the Vcc being at 3.3 V ± 10% or 5.0 V ± 10%.
Vss 2, 15,
16, 28,
43, 44
Power Ground (6 Vss Pins)
n.c. 14 not connected
Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
5
OVERALL DESCRIPTION
The SC28L202 is composed of several functional blocks. They are
listed in the approximate order of hierarchy as seen from the pins of
the device.
Bus interface. 68K or x86 format
Timing Circuits
I/O Ports
UARTs
Transmitters and Receivers
Transmitter real time error test
FIFO Structures
Arbitrating Interrupt Structure
Character & Address Recognition
Flow Control
Test and Software compatibility with previous Philips (Signetics)
UARTs
BRIEF DESCRIPTION OF FUNCTIONAL BLOCKS
Bus Interface
The Two basic modes of Bus Interface
The bus interface operates in ‘68K’ or ‘x86’ format as selected by
the I/M pin. The signals used by this section are the Address, Data
bus, Chip select, read/write, Data acknowledge and Interrupt
acknowledge and Interrupt request. Assertion of DACKN requires
two edges of the Sclk after the assertion of CEN. The default mode
is the x86 mode. Pin or register programming may change it to the
68K mode.
Timing Circuits
Crystal Oscillator
The crystal oscillator is the main timing element for the 28L202.
It is nominally set at 14.7456 MHz. Operation with a crystal as a
frequency standard is specified from 7 MHz to 16.2 MHz. The use of
an external clock allows all frequencies to 50 MHz. Clock prescalers
are provided to match various available system clocks to those
needed for baud rate generation.
NOTE: if an external clock is used X2 should not drive more
than 2 CMOS or 2 TTL equivalents.
Fixed Rate BRG
The BRG is the baud rate generator, is driven by the X1/Sclk input
through a programmable prescale divider. It generates all of the 27
‘fixed’ internal baud rates. This baud rate generator is designed to
generate the industry standard baud rates from a 14.7456 MHz
crystal or clock frequency. X1/Sclk frequencies different from
14.7456 MHz will cause the ‘fixed’ baud rates to change by exactly
the ratio of 14.7456 to the different frequency.
Counter-Timer
The two counter-timers are programmable 16 bit ‘down’ counters. It
provides miscellaneous baud rates, timing periods and acts as an
extra watchdog timer for the receivers. It has 8 programmable clock
sources derived from internal and external signals. It may also act
as a character counter for the receiver. Interrupts from the counter
timer are generated as it passes through zero.
Programmable BRG (PBRG)
This is another 16 bit programmable counter to generate only baud
rates or miscellaneous clock frequencies. Its output is available to
the receivers and transmitters and may be delivered to I/O ports. It
has 8 programmable clock sources derived from internal and
external signals.
I/O ports
The SC28L202 is provided with 16 I/O ports. These ports are true
input and/or output structures and are equipped with a change of
state detector. The input circuit of these pins is always active. Under
program control the ports my display internal signals or static logic
levels. The functions represented by the I/O ports include hardware
flow control. Modem signals, signals for interrupt conditions or
various internal clocks and timing intervals. Noisy inputs to the I/O
ports are filtered (de-bounced) by a 38.4 KHz clock. Change of state
detectors are provided for each pin and are always available.
UARTs
The UARTs are fully independent, full duplex and provide all normal
asynchronous functions: 5 to 8 data bits, parity odd or even,
programmable stop bit length, false start bit detection. Also provided
are 256 byte FIFOs Xon/Xoff software flow. The BRG,
Counter-timer, or external clocks provide the baud rates. The
receivers and transmitters may operate in either the ‘1x’ or ‘16x’
modes.
The control section recognizes two address schemes. One is the
subset of the other: a four (4) bit and an eight (7) bit address
spaces. The purpose of this is to provide a large degree of software
compatibility with previous Philips/Signetics UARTs.
Transmitters and Receivers
The transmitters and receivers are independent devices capable of
full duplex operation. Baud rates, interrupt and status conditions are
under separate control. Transmitters have automatic simplex
‘turnaround’. Receivers have RTS and Xon/Xoff flow control and a
three character recognition system.
Transmitter Real Time Error Check
This is a circuit used to verify that the correct data arrived at the
destination. It is done real time with one or two bit times of
programmable delay. The purpose is to relieve the processor of the
burden of byte-by-byte checking and the delay in sending a block of
data back for processor checking.
The function is that the receiver returns the data received back to
the transmitting station where it is compared to a delayed version of
the data sent. If an error occurs, and interrupt may be generated for
the particular bit that is in error. This is essentially a loop back
condition where circuits internal to the UART delay and compare the
data.
It is suggested that a very high priority be set in the interrupt
arbitration bid control register for this interrupt when in use.
FIFO Structures
The FIFO structure is 256 bytes for each of the four FIFOs in the
DUART. They are organized as 11 bit words for the receiver and 8
bye words for the transmitter. The interrupt level may be set at any
value from 0 to 255. The interrupt level is independently set for each
FIFO.
FIFO interrupt and DMA fill/empty levels are controlled by the RxFIL
and TxFIL registers which may set any level of the from 0 to 255.
The signals associated with the FIFO fill levels are available to the
I/O pins (for interrupt or DMA) and to the arbitrating interrupt system
for ‘fine tuning’ of the arbitration authority.
Intelligent Interrupt Arbitration
The interrupt system uses a highly programmable arbitrating
technique to establish when an interrupt should be presented to the
Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
6
processor. The advantageous feature of this system is the
presentation of the context of the interrupt. It is presented in both a
current interrupt register and in the interrupt vector. The context of
the interrupt shows the interrupting channel, identifies which of the
18 possible sources in requesting interrupt service and in the case
of a receiver or transmitter gives the current fill level of the FIFO.
The content of the current interrupt register also drives the Global
Registers of the interrupt system. These registers are indirect
addresses (pointers) to the interrupt source requesting service.
Programming of Bid Control Registers allows the interrupt level of
any source to be varied at any time over a range of 256 levels.
Character and Address Recognition
The character recognition system is designed as a general-purpose
system. There is one for each UART. Each recognition block stores
up to three characters. The recognition is done on a byte boundary
and sets status and interrupt when recognition events occur. Three
modes of automatic operation are provided for the in-band flow
control and three modes of automatic operation are provided for
address recognition. Both in-band flow control and address
recognition may also be completely under the control of the host
processor.
A subset of the recognition system is Xon/Xoff character recognition
and the recognition of the multi-drop address character. If Xon/Xoff
or multi-drop function is enabled the recognition system passes the
information about the recognition event to the appropriate receiver
or transmitter state machine for execution. In any case the
information about a recognition event is available to the interrupt
system and to the control processor.
Flow Control
Flow control is implemented in either the traditional RTS/CTS
protocol or in the ‘inbound’ Xon/Xoff method. Both may be controlled
by fully/partially automatic methods or by interrupt generation.
Test Modes and Software
Four test modes are provided to verify UART function and processor
interface integrity. The first three are Auto echo, Local Loop Back,
and Remote Loop Back. Through local loop back the software
developer may verify all of the interrupt, flow control; the hardware
designer verify all of the timing and pin connections. This information
is obtained without any recourse to external test equipment, logic
analyzers or terminals.
The fourth, Receiver Error Loop back verification, employs a method
of automatic checking (accounting for transmission delays) of the
transmitted data to as echoed back through the remote receiver.
Errors generate interrupt and status events.
DETAILED DESCRIPTIONS
NOTE: For the convenience of the reader some paragraphs
of the following sections are repeated in descriptions of
closely linked functions described in other sections.
Bus Interface
The bus interface operates in two modes selected by the I/M pin. If
this pin is HIGH the signals DACKN signal is not generated or used
and data flow to and from the chip is controlled by the state the
CEN, RDN, WRN pin combination. If the I/M pin is tied low the data
is written to the device when the DACKN pin is asserted low by the
DUART. Read data is presented by a delay from CEN active.
The Host interface is comprised of the signal pins CEN, WRN RDN,
(or R/WN) IACKN, DACKN, IRQN, 6 address pins and 8 three-state
data bus pins. Addressing of the various functions of the DUART is
through the address bus A(6:0). Data is presented on the 8-bit data
bus.
DACKN Cycle
When operating in the ‘68K’ mode, bus cycle completion is indicated
by the DACKN pin (an open-drain signal) going LOW. The timing of
DACKN is controlled by GCCR[7:6] where three time delays area
available. The delay begins with the falling edge of CEN. DACKN is
presented after 1/2 to three periods of the X1/SCLK. The minimum
time will be two edges of the X1/SCLK and will be realized when the
bus cycle begins just before the transition of X1/SCLK. Usually in
this mode the address and data are set up with respect to the
leading edge of the bus cycle. Timing diagrams for this mode are
drawn with DACKN in consideration. When CEN is withdrawn before
DACKN occurs, the generation of the DACKN signal and bus cycle
will be terminated. In this case, the bus timing will return to that of
Intel type timing for that particular cycle. This timing should not be
less than the minimum read or write pulse.
The DACKN pin is an open-drain driver. At the termination of an
access to the L202 DACKN drives the pin to high impedance until
the next DACKN cycle. This will occur at the termination of the CEN
or IACKN cycle.
NOTE: The faster X86 timing may be used in the 68K mode IF the
bus cycles are faster than 1/2 period of the Sclk clock. Withdrawing
CEN before DACKN prevents the generation of DACKN. In this case
bus timing is effectively that of the X86 mode.
When operating in the ‘x86’ mode DACKN is not generated. Data is
written on the termination of CEN or WRN whichever one occurs
first. Read data is presented from the leading edge of the read
condition (CEN and RDN both low).
In the 68K mode data is written to the registers on the rise of CEN or
the fall of DACKN, whichever one occurs first. Data on a read cycle
will become valid with respect to the fall of CEN. It will always be
valid at the fall of DACKN.
IACKN Cycle, Update CIR
When the host CPU responds to the interrupt, it will usually assert
the IACKN signal low. This will cause the intelligent interrupt system
of the DUART to generate an IACKN cycle in which the condition of
the interrupting source is determined. When IACKN asserts, the last
valid of the interrupt arbitration cycle is captured in the CIR. The
value captured presents all of the important details of the highest
priority interrupt at the moment the IACKN (or the ‘Update CIR’
command) was asserted. Due to system interrupt latency the
interrupt condition captured by the CIR may not be the condition that
caused the initial assertion of the interrupt.
The Dual UART will respond to the IACKN cycle with an interrupt
vector. The interrupt vector may be a fixed value, the content of the
Interrupt Vector Register, or when ‘Interrupt Vector Modification’ is
enabled via ICR, it may contain codes for the interrupt type and/or
interrupting channel. This allows the interrupt vector to steer the
interrupt service directly to the proper service routine. The interrupt
value captured in the CIR remains until another IACKN or ‘Update
CIR’ command is given to the DUART. The interrupting channel and
interrupt type fields of the CIR set the current ‘interrupt context’ of
the DUART. The channel component of the interrupt context allows
the use of Global Interrupt Information registers that appear at fixed
positions in the register address map. For example, a read of the
Global RxFIFO will read the channel B RxFIFO if the CIR interrupt
context is channel B receiver. At another time read of the GRxFIFO
may read the channel A RxFIFO (CIR holds a channel A receiver
interrupt) and so on. Global registers exist to facilitate qualifying the

SC28L202A1DGG,129

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
UART Interface IC 3-5V 2CH UART 3MBPS
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union