Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
22
MR2 – Mode Register 2, A and B
MR2 can be accessed directly at 0x22 and 0x2A in the Extended section of the address map, or by means of the ‘MR Pointers’ at the 0x00 and
0x08 address pointers used by legacy code.
The MR2 register provides basic channel set-up control that may need more frequent updating.
Bit 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
MR2 A
MR2 B
CHANNEL MODE Tx CONTROLS
RTS
CTS
ENABLE Tx
STOP BIT LENGTH
NOTE: Add 0.5 to binary codes 0 – 7 for 5 bit character lengths.
00 = Normal
01 = Auto-Echo
10 = Local loop
11 = Remote loop
0 = No
1 = Yes
0 = No
1 = Yes
0 = 0.563 4 = 0.813 8 = 1.563 C = 1.813
1 = 0.625 5 = 0.875 9 = 1.625 D = 1.875
2 = 0.688 6 = 0.938 A = 1.688 E = 1.938
3 = 0.750 7 = 1.000 B = 1.750 F = 2.000
NOTE:
1. Add 0.5 to values shown for 0 – 7 if channel is programmed for 5 bits/char.
MR2[7:6] – Mode Select
The DUART can operate in one of four modes: Normal, Automatic
Echo, Local Loop Back and Remote Loop Back
MR2[7:6] = b’00 Normal Mode
Normal and default mode The transmitter and receiver operating
independently.
MR2[7:6] = b’01 Automatic Echo
Places the channel in the automatic echo mode, which automatically
retransmits the received data. The following conditions are true
while in automatic echo mode:
Received data is re-clocked and re-transmitted on the TxD output.
The receiver clock is used for the transmitted data.
The receiver must be enabled, but the transmitter need not be
enabled.
The TxRDY and Tx Idle status bits are inactive.
The received parity is checked, but is not regenerated for
transmission, i.e., transmitted parity bit is as received.
Character framing is checked, but the stop bits are retransmitted
as received. Rx data is sent to RxFIFO
A received break is echoed as received until the next valid start bit
is detected.
CPU to receiver communication continues normally, but the CPU
to transmitter link is disabled.
MR2[7:6] = b’10 selects local loop back diagnostic mode. In this mode:
The transmitter output is internally connected to the receiver input.
The transmitter’s 1X clock is used for the receiver.
The TxD output is held high.
The RxD input is ignored.
The transmitter must be enabled, but the receiver need not be
enabled.
CPU to transmitter and receiver communications continue
normally.
MR2 [7:6] = b’11 Selects the Remote Loop back diagnostic mode.
In this mode:
Received data is re-clocked and re-transmitted on the TxD output.
The receiver 1X clock is used for the transmitted data.
Received data is not sent to the local CPU, and the error status
conditions are inactive.
The received parity is not checked and is not regenerated for
transmission, i.e., the transmitted parity bit is as received.
The receiver must be enabled, but the transmitter need not be
enabled.
Character framing is not checked, and the stop bits are
retransmitted as received.
A received break is echoed as received until the next valid start bit
is detected.
MR2[5] Transmitter Request to Send Control
This bit controls the deactivation of the RTSN output (I/O2) by the
transmitter. This output is manually asserted and negated by
appropriate commands issued via the command register. MR2 [5] = 1
negates (drives to logical 1) RTSN automatically one bit time after
the characters in the transmit shift register and in the TxFIFO (if any)
are completely transmitted (includes the programmed number of
stop bits if the transmitter is not enabled). This feature can be used
to automatically terminate the transmission of a message as follows:
Program auto reset mode: MR2[5]= 1.
Enable transmitter.
Assert RTSN via command.
Send message.
Verify the next to last character of the message is being sent by
waiting until transmitter ready is asserted. Disable transmitter after
the last character is loaded into the TxFIFO.
The last character will be transmitted and RTSN will be reset one
bit time after the last stop bit.
NOTE: when the transmitter controls the RTSN pin the meaning of
the pin is COMPLETELY changed. It has nothing to do with the
normal RTSN/CTSN ‘handshaking’. It is usually used to mean, ‘end
of message’ and to ‘turn the line around’ in simplex communications.
From a practical point of view the simultaneous use of Tx control of
RTSN and Rx control is mutually exclusive. However if this is
programmed the DUART performs as required.
MR2[4] – Clear to Send Control
The state of this bit determines if the CTSN input (I/O0) controls the
operation of the transmitter. If this bit is 0, CTSN has no effect on the
transmitter. If this bit is a 1, the transmitter checks the state of CTSN
each time it is ready to begin sending a character. If it is asserted
(low), the character is transmitted. If it is negated (high), the TxD
output remains in the marking state and the transmission is delayed
until CTSN goes low. Changes in CTSN, while a character is being
transmitted, do not affect the transmission of that character. This
feature can be used to prevent overrun of a remote receiver.
MR2[3:0] – Stop Bit Length Select
This field programs the length of the stop bit appended to the
transmitted character. Stop bit lengths of 9/16 through 2 bits can be
programmed. In all cases, the receiver only checks for a mark
condition at the center of the first stop bit position (one bit time after
the last data bit, or after the parity bit if parity is enabled). If an
external 1X clock is used for the transmitter, MR2[1] = 0 selects one
stop bit and MR2[1] = 1 selects two stop bits to be transmitted.
Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
23
MR3 – Mode Register 3, A and B
Bit 7
Bit 6 Bit 5:4 Bit 3:2 Bit 1:0
Xon/Xoff
1
transparency
Address Recognition
1
transparency
Reserved In-band flow control
mode
Address
Recognition
control
0 = flow control characters
received are loaded onto
the RxFIFO
1 = flow control characters
received are not loaded
onto the RxFIFO
0 = Address characters
received are loaded to
RxFIFO
1 = Address characters
received are not loaded onto
the RxFIFO
00 = host mode, only the host
CPU may initiate flow control
actions through the CR
01 = Auto Transmitter flow
control
10 = Auto Receiver flow control
11 = Auto Rx and Tx flow control
00 = Default
01 = Auto wake
10 = Auto doze
11 = Auto wake
and auto doze
NOTE:
1. If these bits are not 0 the characters will be stripped regardless of bits (3:2) or (1:0)
MR3[7 & 6] Xon/Xoff Character Stripping
Control the handling of recognized Xon/Xoff or Address characters.
If set, the character codes are placed on the RxFIFO along with their
status bits just as ordinary characters are. If the character is not
loaded onto the RxFIFO, its received status will be lost unless the
receiver is operating in the block error mode, see MR1[5] and the
general discussion on receiver error handling. Interrupt processing
is not effected by the setting of these bits. See Character recognition
section.
MR3[5:4] Reserved
MR3[3:2] Xon/Xoff Processing
Control the Xon/Xoff processing logic. Auto Transmitter flow control
allows the gating of Transmitter activity by Xon/Xoff characters
received by the Channel’s receiver. Auto Receiver flow control
causes the Transmitter to emit an Xoff character when the RxFIFO
has loaded to a depth of 240 characters. Draining the RxFIFO to a
level of 128 or less causes the Transmitter to emit a Xon character.
All transmissions require no host involvement. A setting other than
b’00 in this field precludes the use of the command register to
transmit Xon/Xoff characters.
NOTE: Interrupt generation in Xon/Xoff processing is controlled by
the IMR (Interrupt Mask Register) of the individual channels. The
interrupt may be cleared by a read of the XISR, the Xon/Xoff
Interrupt Status Register. Receipt of a flow control character will
always generate an interrupt if the IMR is so programmed. The
MR0[3:2] bits have effect on the automatic aspects of flow control
only, not the interrupt generation.
MR3[1:0] Address Recognition
This field controls the operation of the Address recognition logic. If
the device is not operating in the special or ‘wake-up’ mode, this
hardware may be used as a general-purpose character detector by
choosing any combination except b’00. Interrupt generation is
controlled by the channel IMR. The interrupt may be cleared by a
read of the XISR, the Xon/Xoff Interrupt Status Register. See further
description in the section on the Wake Up mode.
Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
24
RxCSR – Receiver Clock Select Register A and B
TxCSR Transmitter Clock Select Register A and B
Both registers consist of single 6-bit field that selects the clock source for the receiver and transmitter respectively. During a read the unused
bits in this register read b’000. The ‘BRG’ baud rates (fixed BRG rates) shown in the table below are based on the Sclk crystal frequency of
14.7456 MHz. The baud rates shown below will vary as the Sclk crystal clock varies. For example, if the Sclk rate is changed to 7.3728 MHz all
the rates below will reduce by 1/2.
Bit 7 Bit 6 Bits 5:0
Reserved Reserved Transmitter/Receiver Clock select code,
See Clock Multiplex Table below
Rx and Tx Clock Select Table
NOTE: Sclk maximum rate is 50 MHz. Data clock rates will follow exactly the ratio of the X1/Sclk to 14.7654 MHz
Tx A Clock Select Code
Clock selection, Sclk = 14.7456 MHz Tx A Clock Select Code Clock selection, Sclk = 14.7456 MHz
00 0000 BRG – 50 01 0000 BRG – 75
00 0001 BRG – 110 01 0001 BRG – 150
00 0010 BRG – 134.5 01 0010 BRG – 450
00 0011 BRG – 200 01 0011 BRG – 1800
00 0100 BRG – 300 01 0100 BRG – 2000
00 0101 BRG – 600 01 0101 BRG – 14.4K
00 0110 BRG – 1200 01 0110 BRG – 19.2K
00 0111 BRG – 1050 01 0111 BRG – 28.8K
00 1000 BRG – 2400 01 1000 BRG – 57.6K
00 1001 BRG – 4800 01 1001 BRG – 115.2K
00 1010 BRG – 7200 01 1010 BRG – 230.4K
00 1011 BRG – 9600 01 1011 BRG – 460.8K
00 1100 BRG – 38.4K 01 1100 BRG – 921.6K
00 1101 Timer 0 01 1101 Timer 1
00 1110 I/O3 A transmitter – 16x External * 01 1110 PBRG 0
00 1111 I/O3 A transmitter – 1x External * 01 1111 Midi rate 31.25 KHz 1.66% error
Tx A Clock Select Code Clock selection, Sclk = 14.7456 MHz Tx A Clock Select Code Clock selection, Sclk = 14.7456 MHz
11 0000 to 11 1101 Reserved
11 1110 PBRG 1
11 1111 Reserved
This field selects the baud rate clock for the Channel A transmitter.
* External clock Pin and external clock mode assignment.
Tx/Rx CSR x [5:0]
RxC Channel A TxC Channel B RxC channel B
001110 I/O4 A 16x I/O5 A 16x I/O6 A 16x
001111 I/O4 A 1X I/O5 A 1X I/O6 A 1X

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