Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
19
SFSR A and B Special Feature & Status Register
Bit 7 Bit 6 Bit 5 BIT 4 BIT 3 BIT 2:1 BIT 0
Reserved Reserved Reserved Reserved Loop Back Error Remote Loop Error Check Reserved
0 = No
1 = Yes
(read Only)
00 = Disabled
01 = Enabled, RxC TxC
10 = Enabled, RxC TxCN
SFSR(7:4) Reserved
SFSR(3) Status of loop back error check.
A ‘1’ indicates a loop back error occurred, which will be entered for
interrupt arbitration.
It can be cleared by the processor by a write to this register with
D(3) equal to ‘1’.
SFSR(2:1) Certification of returned data as Valid (This feature
implies the transmitted data is being returned by the remote
receiver. )
Sets automatic checking of returned data. This mode stores
transmitted data and compares it to data returned from the remote
receiver. It is used where relative short delay times are available, up
to two characters in time . This mode will totally relieve the
processor of this task where certainty of transmission and reception
is required. The transmitted data is looped back by the remote
station with a half-bit time delay. The local transmitted data is
internally sent to the local receiver for comparison. An interrupt is
generated in the case of an error (data mismatch, parity or framing).
00 = The checking is disabled
01 = Return data is clocked in on rise of TxC
10 = Return data is clocked on of rise of TxCN
00 = Reserved
SFSR(0) Reserved
TRR Test and Revision Register.
TRR
Bit 7 Bit 6:0
Test 2 Revision Code
TRR[7] Test 2 Enable
Bypass divide by 16 counter in all TxC and RxC.
TRR[6:0] – Chip Revision Code
Indicates the revision of the chip. Initial code will be
0000000
. The
revision code bits [6:0] are hard wired. The default setting of the test
bits is all zero.
STCR – Scan Test Control Register.
Addr
BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
77 Memory Test Scan Test Iddq Test
STCR(0) Iddq Test – Turns off all pull-up devices on the I/O pins.
SES – System Enable Status Register, A and B
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Reserved Reserved Transmitter
Enabled
Receiver
Enabled
Watch Dog
Timer
Address
Recognition
Xon Xoff
Set to 0 Set to 0 0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
This register reports the enabled status of the several sub systems in the DUART. These systems are sometimes controlled by the state
machines of the receiver FIFOs.
EOS – Enhanced Operation Status Register
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Reserved I/O Port
Operation
Reserved Counter/Timer
0 Clock Select
Channel B
Rx/Tx
Clock
Selection
Channel A
Rx/Tx
Clock
Selection
Channel B
FIFO
Interrupt Level
Control
Channel A FIFO
Interrupt Level
Control
0 = Default
1 = Enhanced
0 = Default
1 = Enhanced
0 = Default
1 = Enhanced
0 = Default
1 = Enhanced
0 = Default
1 = Enhanced
0 = Default
1 = Enhanced
This register reports the status of the Enhanced operation in several sub systems in the DUART.
Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
20
UART Registers
These registers are generally concerned with formatting,
transmitting and receiving data.
The user must exercise caution when changing the mode of running
receivers, transmitters, PBRG or counter/timers. The selected mode
will be activated immediately upon selection, even if this occurs
during the reception or transmission of a character. It is also
possible to disrupt internal controllers by changing modes at critical
times, thus rendering later transmission or reception faulty or
impossible.
An exception to this policy is switching from auto-echo or remote
loop back modes to normal mode. If the deselecting occurs just after
the receiver has sampled the stop bit (in most cases indicated by
the assertion of the channel’s RxRDY bit) and the transmitter is
enabled, the transmitter will remain in auto-echo mode until the end
of the transmission of the stop bit.
MR0 – Mode Register 0, A and B
MR0 can be accessed directly at H’20’ and H’28’ 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.
Bit 7 BIT 6 BIT (5:4) BIT 3 BIT 2 BIT 1 BIT 0
MR0 A, MR0
B, and
MR0 B[3:0]
are reserved
Rx Watchdog
*
0 = Disable
1 = Enable
RxINT BIT 2
See Tables in
MR0
description
TxINT (1:0)
See Table 13
FIFO Size
0 = 8 bytes
1 = 256
bytes
BAUD RATE
EXTENDED II
0 = NormaL
1 = Extend II
Reserved
Set to 0
BAUD RATE
EXTENDED 1
0 = Normal
1 = Extend
*This bit control is duplicated at WCXER[7:6], the Watch Dog, Character, Address and X Enable Register.
MR0[7] Fixed length Watchdog Timer
This bit controls the receiver watchdog timer. 0 = disable, 1 =
enable. When enabled, the watch dog timer will generate a receiver
interrupt if the receiver FIFO has not been accessed within 64 bit
times of the receiver 1X clock. This is used to alert the control
processor that data is in the RxFIFO that has not been read. This
situation may occur when the byte count of the last part of a
message is not large enough to generate an interrupt.
MR0[6] – Bit 2 of receiver FIFO interrupt level. This bit along with Bit
6 of MR1 sets the fill level of the 8 byte FIFO that generates the
receiver interrupt.
MR0[6] and MR1[6] Note that this control is split between MR0 and
MR1. This is for backward compatibility to the SC2692 and
SCN2681.
Table 3. Receiver FIFO Interrupt Fill Level
MR0(3)=0
MR0[6] MR1[6] Interrupt Condition
00 1 or more bytes in FIFO (RxRDY)
01 3 or more bytes in FIFO
10 6 or more bytes in FIFO
11 8 bytes in FIFO (Rx FULL)
Table 4. Receiver FIFO Interrupt Fill Level
MR0(3)=1
MR0[6] MR1[6] Interrupt Condition
00 1 or more bytes in FIFO (RxRDY)
01 128 or more bytes in FIFO
10 192 or more bytes in FIFO
11 256 bytes in FIFO (Rx FULL)
For the receiver these bits control the number of FIFO positions
filled when the receiver will attempt to interrupt. After the reset the
receiver FIFO is empty. The default setting of these bits cause the
receiver to attempt to interrupt when it has one or more bytes in it.
MR0[5:4] – Tx interrupt fill level.
Table 5. Transmitter FIFO Interrupt Fill Level
MR0(3)=0
MR0[5:4] Interrupt Condition
00 8 bytes empty (Tx EMPTY)
01 4 or more bytes empty
10 6 or more bytes empty
11 1 or more bytes empty (TxRDY)
Table 6. Transmitter FIFO Interrupt Fill Level
MR0(3)=0
MR0[5:4] Interrupt Condition
00 256 bytes empty (Tx EMPTY)
01 128 or more bytes empty
10 192 or more bytes empty
11 1 or more bytes empty (TxRDY)
For the transmitter these bits control the number of FIFO positions
empty when the receiver will attempt to interrupt. After the reset the
transmit FIFO has 8 bytes empty. It will then attempt to interrupt as
soon as the transmitter is enabled. The default setting of the MR0
bits (00) condition the transmitter to attempt to interrupt only when it
is completely empty. As soon as one byte is loaded, it is no longer
empty and hence will withdraw its interrupt request.
MR0[3] – FIFO Size
Selects between 8 or 256 byte FIFO structure
MR0[2:0] – Legacy Baud Rate Group Selection
These bits are used to select one of the six-baud rate groups.
See Table 13 for the group organization.
000 Normal mode
001 Extended mode I
100 Extended mode II
Other combinations of MR2[2:0] should not be used
NOTE: MR0[3:0] are not used in channel B and should be set to 0.
Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
21
MR1 – Mode Register 1, A and B
MR1 can be accessed directly at H’21’ and H’29’ 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.
Bit 7 Bit 6 Bit 5 Bit 4:3 Bit 2 Bit 1:0
RxRTS Control See Tables in MR0
description
Error Mode Parity Mode Parity Type Bits per
Character
0 = off
1 = on
0 = Character
1 = Block
(entry or exit)
00 = With Parity
01 = Force parity
10 = No parity
11 = Multi drop Special Mode
0 = Even
1 = Odd
00 = 5
01 = 6
10 = 7
11 = 8
MR1[7] – Receiver Request to Send (hardware flow control)
This bit controls the deactivation of the RTSN output (I/O2) by the
receiver. The I/O2 output is asserted and negated by commands
applied via the command register or through the setting of the OPR
register bits. MR1[7] = 1 enables the receiver state machine to
controls the sate of the I/O2 (where the RTSN function is assigned)
to be automatically negated (driven high) upon receipt of a valid start
bit if the receiver FIFO is 240 full or greater. (for 8-byte mode the
FIFO full signal is used) RTSN is reasserted when the FIFO fill level
falls below 240 filled FIFO positions. This constitutes a change from
previous members of Philips (Signets)’ UART families where the
RTSN function triggered on FIFO full. This behavior caused
problems with PC UARTs that could not stop transmission at the
proper time.
NOTE: When the FIFO is set to an 8-byte depth the RTSN signaling
is triggered on position 8 of the FIFO
The RTSN feature can be used to prevent overrun in the receiver, by
using the RTSN output signal, to control the CTSN (see MR2(4)
description) input of the transmitting device. It is not recommend to
use the hardware flow control and the ‘in-band’ (Xon/Xoff) flow
control at the same time although the DUART hardware will allow it.
To use the RTSN function:
1. Set MR1(7) to 1
2. Set I/O0 B or I/O1 B as appropriate to logical 0
3. Enable receiver
MR1[6] – Receiver interrupt control bit 1.
See description under MR0 [6]. (Writing to this register will reset the
RxFIFO interrupt to the bit configuration of MR0 and MR1. Reading
has no effect.)
*** change in MR in legacy section – at MR0 also***
MR1 [5] – Error Mode Select and sub modes
This bit selects the operating mode of the three FIFOed status bits
(FE, PE, and received break). In the character mode, status is
provided on a character by character basis; the status applies only
to the character at the output of the FIFO.
In the block mode, the status provided in the SR for these bits is the
accumulation (logical OR) of the status for all characters coming to
the output of the FIFO, since the last reset error command was
issued.
The Block Error mode has two-sub mode. These modes are
controlled by the command register. The error is ‘accumulated’ (as
described above) at either the entry of the data in to the FIFO or on
the exit (read of the FIFO). Of the two the setting of the error on the
entry of the data into the FIFO gives the earliest warning of error
data.
MR1[4:3] – Parity Mode Select
If ’with parity’ or ’force parity’ is selected, a parity bit is added to the
transmitted character and the receiver performs a parity check on
incoming data. MR1[4:3] = 11 selects the channel to operate in the
special wake up mode.
MR1[2] – Parity Type Select
This bit sets the parity type (odd or even) if the ’with parity’ mode is
programmed by MR1[4:3], and the polarity of the forced parity bit if
the ’force parity’ mode is programmed it has no effect if the ’no
parity’ mode is programmed. In the special ’wake up’ mode, it
selects the polarity of the A/D bit. The parity bit is used to an
address or data byte in the ’wake up’ mode.
MR1[1:0] – Bits per Character Select
This field selects the number of data bits per character to be
transmitted and received. This number does not include the start,
parity, or stop bits.

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