Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
25
CRx – Command Register Extension, A and B
CR is used to write commands to the DUART.
Bit 7
Bit 6 Bit 5 Bit 4:0
Lock Tx and Rx Enables Enable Tx Enable Rx Command Register codes.
0 = lock Rx & Tx state
1 = Change Rx & Tx state
0 = disable
1 = enable
0 = disable
1 = enable
(See Command Register Table)
CR[7] – Lock Tx and Rx enables.
‘0’ prevents changing transmitter and receiver enable bits while
writing to the lower 5 bits of the command register. Bits CR[6:5] are
not changed.
‘1’ allows the receiver and transmitter enable bits to be changed
while issuing a command to the command register.
NOTE: Receiver or transmitter disable is not the same as receiver
or transmitter reset.
WRITES TO THE LOWER 5 BITS OF THE CR WOULD USUALLY
HAVE CR[7] AT ‘0’ in order to maintain the enable/disable condition
of the receiver and transmitter. The bit provides a mechanism for
writing commands to a channel, via CR[4:0], without the necessity of
keeping track of or reading the current enable status of the receiver
and transmitter.
CR[6] – Enable Transmitter
A one written to this bit enables operation of the transmitter. The
TxRDY status bit will be asserted. When disabled by writing a zero
to this bit, the command terminates transmitter operation and resets
the TxRDY and Tx Idle status bits returning the transmitter to its idle
state . However, if a character is being transmitted or if characters
are loaded in the TxFIFO when the transmitter is disabled, the
transmission of the all character(s) is completed before assuming
the inactive state.
CR[5] – Enable Receiver
A one written to this bit enables operation of the receiver. The
receiver immediately begins the search for and the verification the
start bit. If a zero is written, this command terminates operation of
the receiver immediately—a character being received will be lost.
The command has no effect on the receiver status bits or any other
control registers. The data in the RxFIFO will be retained and may
be read. If the receiver is re-enabled subsequent data will be
appended to that already in the RxFIFO. If the special wake-up
mode is programmed, the receiver operates even if it is disabled
(see Wake-up Mode).
CR[4:0] – Miscellaneous Commands (See Table below)
The encoded value of this field can be used to specify a single
command as follows:
00000 No command.
00001 Reserved
00010 Reset receiver. Immediately resets the receiver as if
hardware reset had been applied. The receiver is reset and the
FIFO pointer is reset to the first location effectively discarding all
unread characters in the FIFO.
00011 Reset transmitter. Immediately resets the transmitter as if a
hardware reset had been applied. The transmitter is reset and the
FIFO pointer is reset to the first location effectively discarding all
untransmitted characters in the FIFO.
00100 Reset error status. Clears the received break, parity error,
framing error, and overrun error bits in the status register
(SR[7:4]). It is used in either character or block mode. In block
mode it would normally be used after the block is read.
00101 Reset break change interrupt. Causes the break detect
change bit in the interrupt status register (ISR[2]) to be cleared to
zero.
00110 Start break. Forces the TxD output low (spacing). If the
transmitter is empty, the start of the break condition will be
delayed up to two bit times. If the transmitter is active and the
TxFIFO is empty then the break begins when transmission of the
current character is completed. If there are characters in the
TxFIFO, the start of break is delayed until all characters presently
in the TxFIFO and any subsequent characters loaded have been
transmitted. (Tx Idle must be true before break begins).
The transmitter must be enabled to start a break.
00111 Stop break. The TxD line will go high (marking) within two
bit times. TxD will remain high for one bit time before the next
character is transmitted.
01000 Assert RTSN. Causes the RTSN output to be asserted
(low).
01001 Negate RTSN. Causes the RTSN output to be negated
(high).
NOTE: The two commands above actually reset and set,
respectively, the I/O0 B (Channel A) or I/O1 B (Channel B)
pin associated with the OPR register. (See SOPR and
ROPR registers I/O pin control.
01010 Set C/T Receiver time out mode on
01011 Set MR Pointer to 0
01100 Set C/T Receiver time out mode off
01101 Block error status accumulation on FIFO entry. Allows the
‘received break’, ‘framing error’ and ‘parity error’ bits to be set as
the received character is loaded to the RxFIFO. (normally these
bits are set on reading of the data from the RxFIFO) Setting this
mode can give information about error data up to 256 bytes earlier
than the normal mode. However it clouds the ability to know
precisely which byte(s) are in error.
01110 Power Down Mode On
01111 Disable Power Down Mode
10000 Transmit an Xon Character
10001 Transmit an Xoff Character
10010 C/T start sets the counter timer to the value of the
counter/timer preset register and starts the counter.
10011 C/T stop Effectively stops the counter/timer, captures the
last count value and resets the counter ready status bit in the ISR
10100 Reserved
10101 Reserved.
10110 Transmitter resume command (This command is not active
in ‘Auto-Transmit mode’). A command to cancel a previous Host
Xoff command. Upon receipt, the channel’s transmitter will
transfer a character, if any, from the TxFIFO and begin
transmission.
Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
26
10111 Host Xoff (or transmitter pause) command (CRTXoff). This
command allows tight host CPU control of the flow control of the
channel transmitter. When interrupted for receipt of a Xoff
character by the receiver, the host may stop transmission of
further characters by the channel transmitter by issuing the Host
Xoff command. Any character that has been transferred to the
TxD shift register will complete its transmission, including the stop
bit before the transmitter pauses. Even though the transmitter is
paused it is still able to send Xon/Xoff by the request of its
associated receiver.
11000 Cancel Host transmit flow control command. Issuing this
command will cancel a previous command to transmit a flow
control character if the flow control character is not yet loaded into
the TxD Shift Register. If there is no character waiting for
transmission or if its transmission has already begun, then this
command has no effect and the character will be sent.
11001 Reserved
11010 Reserved
11011 Reset Address Recognition Status. This command clears
the interrupt status that was set when an address character was
recognized by a disabled receiver operating in the special mode.
11100 Reserved
11101 Block error status accumulates on FIFO read (Default
State)
11110 Reset to ‘C92’ Register Set
11111 Reserved for channel B, for channel A: executes a chip
wide reset. Executing this command in channel a is equivalent to
a hardware reset with the RESET(N) pin. Executing in channel B
has no effect.
COMMAND REGISTER EXTENSION TABLE A and B
Commands 0x0E, 0x0F, 0x1F (marked with ) are global and exist only in channel A’s register space.
Channel
Command
Code
Channel
Command
Channel
Command Code
Channel
Command
CR[4:0] Description CR[4:0] Description
0 0000 NOP 1 0000 Transmit Xon
0 0001 Set MR pointer to 1 1 0001 Transmit Xoff
0 0010 Reset Receiver 1 0010 Start C/T
0 0011 Reset Transmitter 1 0011 Stop C/T
0 0100 Reset Error Status 1 0100 Reserved
0 0101 Reset Break Change Interrupt 1 0101 Reserved
0 0110 Begin Transmit Break 1 0110 Transmitter Resume Command (CRXoffRe)
0 0111 End Transmit Break 1 0111 Host Xoff Command (CRTXoff)
0 1000 Assert RTSN (I/O0 B or I/O1 B) 1 1000 Cancel Transmit X Char Command (CRTX)
0 1001 Negate RTSN (I/O0 B or I/O1 B) 1 1001 Reserved
0 1010 Set C/T Receiver time-out mode on 1 1010 Reserved
0 1011 Set MR pointer to 0 1 1011 Reset Address Recognition Status
0 1100 Set C/T Receiver time-out mode off 1 1100 Reserved
0 1101 Block Error Status on RxFIFO load 1 1101 Block Error Status on RxFIFO Read
0 1110 Power Down Mode On 1 1110 Reserved
0 1111 Disable Power Down Mode 1 1111 Reset Device as a Hardware reset. Reserved in channel B*
Philips Semiconductors Product data sheet
SC28L202Dual UART
2005 Nov 01
27
SR – Channel Status Register A and B
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Received Break Framing Error Parity Error Overrun Error Tx Idle TxRDY RxFULL RxRDY
0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
SR[7] – Received Break
This bit indicates that an all zero character (including parity, if used)
of the programmed length has been received with a stop bit at a
logical zero. A single FIFO position is loaded with 0x00 when a
break is received; further entries to the FIFO are inhibited until the
RxD line returns to the marking state for at least one half bit time
(two successive edges of the internal or external 1x clock). When
this bit is set, the change in break bit in the ISR (ISR [2]) is set.
ISR[2] is also set when the end of the break condition, as defined
above, is detected. The break detect circuitry is capable of detecting
breaks that originate in the middle of a received character. However,
if a break begins in the middle of a character, it must last until the
end of the next character in order for it to be detected.
SR[6] – Framing Error (FE)
This bit indicates that a stop bit was not detected when an otherwise
non-zeros data character (including parity, if enabled) was received.
The stop bit check is made in the middle of the first stop bit position.
SR[5] – Parity Error (PE)
This bit is set when the ’with parity’ or ’force parity’ mode is
programmed and the corresponding character in the FIFO was
received with incorrect parity. In the special ’wake up mode’, the
parity error bit stores the received A/D bit.
SR[4] – Overrun Error (OE)
This bit, when set, indicates that one or more characters in the
received data stream have been lost. It is set upon receipt of the
start bit of a new character when the RxFIFO is full and a character
is already in the receive shift register (257 valid characters in the
receiver) waiting for an empty FIFO position. When this occurs, the
character in the receive shift register (and its break detect, parity
error and framing error status, if any) is lost. This bit is cleared by a
reset error status command.
SR [3] – Transmitter Idle (Tx Idle)
This bit is set when the transmitter underruns, i.e., both the TxFIFO
and the transmit shift register are empty. It is set after transmission
of the last stop bit of a character, if no character is in the TxFIFO
awaiting transmission. It is negated when the TxFIFO is loaded by
the CPU, or when the transmitter is disabled or reset. This bit is
concerned with the transmitter transmitting data and it essentially
shows ‘ transmitter underrun’. If, while it is underrun it is
commanded to send an X on/Xoff character it will remain at the zero
state. If it is underrun and while sending an Xon/Xoff character the
TxFIFO is loaded then the bit will go low.
SR[2] – Transmitter Ready (TxRDY)
This bit, when set, indicates that the TxFIFO is ready to be loaded
with at least one more character. This bit is cleared when the
TxFIFO is full or is above its interrupt threshold level set in the MR
registers or TxFIFO interrupt Fill Level register (TxFIL). Characters
loaded in the TxFIFO while the transmitter is disabled will not be
transmitted.
SR[1] – RxFIFO Full (RxFULL)
This bit is set when a character is transferred from the receive shift
register to the receive FIFO and the transfer causes the FIFO to
become full, i.e., all 256 RxFIFO positions are occupied. It is reset
when the CPU reads the RxFIFO and that read leaves one or more
empty byte position(s). If a character is waiting in the receive shift
register because the RxFIFO is full, RxFULL is not reset until the
second read of the RxFIFO since the waiting character is
immediately loaded to the RxFIFO.
SR[0] – Receiver Ready (RxRDY)
This bit indicates that a character has been received and is waiting
in the RxFIFO to be read by the CPU. It is set when the character is
transferred from the receive shift register to the RxFIFO and reset
when the CPU reads the RxFIFO, and no more characters are in the
RxFIFO.

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