Philips Semiconductors Product data sheet
SC28L91
3.3 V or 5.0 V Universal Asynchronous
Receiver/Transmitter (UART)
2004 Oct 21
28
SR Status Register
Addr Bit 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
SR RECEIVED
BREAK
1
FRAMING
ERROR
1
PARITY
ERROR
1
OVERRUN
ERROR
TxEMT TxRDY FFULL RxRDY
0x01 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
1. These status bits are appended to the corresponding data character in the receive FIFO. A read of the status provides these bits [7:5] from
the top of the FIFO together with bits [4:0]. These bits are cleared by a “reset error status” command. In character mode they are discarded
when the corresponding data character is read from the FIFO. In block error mode, the error–reset command (command 4x or receiver
reset) must used to clear block error conditions.
SR[7]— Received Break
This bit indicates that an all zero character of the programmed
length has been received without a stop bit. Only a single FIFO
position is occupied 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 a bit time two successive edges of the internal or
external 1X clock. This will usually require a high time of one X1
clock period or 3 X1 edges since the clock of the controller is
not synchronous to the X1 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 can detect breaks that originate in the
middle of a received character. However, if a break begins in the
middle of a character, it must persist until at least the end of the next
character time in order for it to be detected.
This bit is reset by command 4 (0100) written to the command
register or by receiver reset.
SR[6]— Framing Error
This bit, when set, indicates that a stop bit was not detected (not a
logical 1) when the corresponding data character in the FIFO was
received. The stop bit check is made in the middle of the first stop bit
position.
SR[5]— Parity Error
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 multi-drop mode the parity error bit stores the receive
A/D (Address/Data) bit.
SR[4]— Overrun Error
This bit, when set, indicates that one or more characters in the
received data stream have been lost. It is set upon receipt of a new
character when the FIFO is full and a character is already in the
receive shift register 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 Empty (TxEMT)
This bit will be set when the transmitter under runs, i.e., both the
TxEMT and TxRDY bits are set. This bit and TxRDY are set when
the transmitter is first enabled and at any time it is re-enabled after
either (a) reset, or (b) the transmitter has assumed the disabled
state. It is always set after transmission of the last stop bit of a
character if no character is in the THR awaiting transmission.
It is reset when the THR is loaded by the CPU, a pending
transmitter disable is executed, the transmitter is reset, or the
transmitter is disabled while in the under run condition.
SR[2]— Transmitter Ready (TxRDY)
This bit, when set, indicates that the transmit FIFO is not full and
ready to be loaded with another character. This bit is cleared when
the transmit FIFO is loaded by the CPU and there are (after this
load) no more empty locations in the FIFO. It is set when a
character is transferred to the transmit shift register. TxRDY is reset
when the transmitter is disabled and is set when the transmitter is
first enabled. Characters loaded to the TxFIFO while this bit is 0 will
be lost. This bit has different meaning from ISR[0].
SR[1]— FIFO Full (FFULL)
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 eight (or 16) FIFO positions are occupied. It is
reset when the CPU reads the receive FIFO. If a character is waiting
in the receive shift register because the FIFO is full, FFULL will not
be reset when the CPU reads the receive FIFO. This bit has
different meaning from IRS when MR1 6 is programmed to a ‘1’.
SR[0]— Receiver Ready (RxRDY)
This bit indicates that a character has been received and is waiting
in the FIFO to be read by the CPU. It is set when the character is
transferred from the receive shift register to the FIFO and reset
when the CPU reads the receive FIFO, only if (after this read) there
are no more characters in the FIFO – the Rx FIFO becomes empty.
Philips Semiconductors Product data sheet
SC28L91
3.3 V or 5.0 V Universal Asynchronous
Receiver/Transmitter (UART)
2004 Oct 21
29
OPCR Output Port Configuration Register
Addr Bit 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
OPCR OP7 OP6 OP5 OP4 OP3 OP2 OP1 OP0
0x0D 0 = OPR[7] 0 = OPR[6] 0 = OPR[5] 0 = OPR[4] 00 = OPR[3] 00 = OPR[2]
1 = Reserved 1 = TxRDY 1 = Reserved 1 = RxRDY/FFULL 01 = C/T OUTPUT 01 = TxC(16X)
10 = Reserved 10 = TxC(1X)
11 = Reserved 11 = RxC(1X)
OPCR[7]—OP7 Output Select
This bit programs the OP7 output to provide one of the following:
0 The complement of OPR[7].
1 reserved
OPCR[6]—OP6 Output Select
This bit programs the OP6 output to provide one of the following:
0 The complement of OPR[6].
1 The transmitter interrupt output which is the complement of
ISR[0]. When in this mode OP6 acts as an open-drain out-
put. Note that this output is not masked by the contents of
the IMR.
OPCR[5]—OP5 Output Select
This bit programs the OP5 output to provide one of the following:
0 The complement of OPR[5].
1 Reserved
OPCR[4]—OP4 Output Select
This field programs the OP4 output to provide one of the following:
0 The complement of OPR[4].
1 The receiver interrupt output which is the complement of
ISR[1]. When in this mode OP4 acts as an open-drain out-
put. Note that this output is not masked by the contents of
the IMR.
OPCR[3:2]—OP3 Output Select
This bit programs the OP3 output to provide one of the following:
00 The complement of OPR[3].
01 The counter/timer output, in which case OP3 acts as an
open-drain output. In the timer mode, this output is a square
wave at the programmed frequency. In the counter mode,
the output remains High until terminal count is reached, at
which time it goes Low. The output returns to the High state
when the counter is stopped by a stop counter command.
Note that this output is not masked by the contents of the
IMR.
10 Reserved
11 Reserved
OPCR[1:0]—OP2 Output Select
This field programs the OP2 output to provide one of the following:
00 The complement of OPR[2].
01 The 16X clock for the transmitter. This is the clock selected
by CSR[3:0], and will be a 1X clock if CSR[3:0] = 1111.
10 The 1X clock for the transmitter, which is the clock that shifts
the transmitted data. If data is not being transmitted, a free
running 1X clock is output.
11 The 1X clock for the receiver, which is the clock that samples
the received data. If data is not being received, a free run-
ning 1X clock is output.
SOPR—Set the Output Port Bits (OPR)
SOPR[7:0]—Ones in the byte written to this register will cause the corresponding bit positions in the OPR to set to 1. Zeros have no effect. This
allows software to set individual bits with our keeping a copy of the OPR bit configuration.
Addr
Bit 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
SOPR OP 7 OP 6 OP 5 OP 4 OP 3 OP 2 OP 1 OP 0
0x0E 1 = set bit 1 = set bit 1 = set bit 1 = set bit 1 = set bit 1 = set bit 1 = set bit 1 = set bit
0 = no change 0 = no change 0 = no change 0 = no change 0 = no change 0 = no change 0 = no change 0 = no change
ROPR—Reset Output Port Bits (OPR)
ROPR[7:0]—Ones in the byte written to the ROPR will cause the corresponding bit positions in the OPR to set to 0. Zeros have no effect. This
allows software to reset individual bits with our keeping a copy of the OPR bit configuration.
Addr
Bit 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
ROPR OP 7 OP 6 OP 5 OP 4 OP 3 OP 2 OP 1 OP 0
0x0F 1 = reset bit 1 = reset bit 1 = reset bit 1 = reset bit 1 = reset bit 1 = reset bit 1 = reset bit 1 = reset bit
0 = no change 0 = no change 0 = no change 0 = no change 0 = no change 0 = no change 0 = no change 0 = no change
Philips Semiconductors Product data sheet
SC28L91
3.3 V or 5.0 V Universal Asynchronous
Receiver/Transmitter (UART)
2004 Oct 21
30
OPR Output Port Register
The output pins (OP pins) drive the compliment of the data in this register as controlled by SOPR and ROPR.
Addr
Bit 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
N/A OP 7 OP 6 OP 5 OP 4 OP 3 OP 2 OP 1 OP 0
N/A 0 = Pin High 0 = Pin High 0 = Pin High 0 = Pin High 0 = Pin High 0 = Pin High 0 = Pin High 0 = Pin High
1 = Pin Low 1 = Pin Low 1 = Pin Low 1 = Pin Low 1 = Pin Low 1 = Pin Low 1 = Pin Low 1 = Pin Low
ACR Auxiliary Control Register
Addr Bit 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
ACR BRG SET
Select
Counter Timer Mode
Mode and clock sour select
Delta IP3 int
enable
Delta IP3 int
enable
Delta IP3 int
enable
Delta IP3 int
enable
0x04 0 = set 1 See table 7 0 = off 0 = off 0 = off 0 = off
1 = set 2 1 = enabled 1 = enabled 1 = enabled 1 = enabled
ACR—Auxiliary Control Register
ACR[7]—Baud Rate Generator Set Select
This bit selects one of two sets of baud rates to be generated by the
BRG (see Table 5).
The selected set of rates is available for use by the receiver and
transmitter as described in CSR. Baud rate generator characteristics
are given in Table 6.
ACR[6:4]—Counter/Timer Mode And Clock Source Select
This field selects the operating mode of the counter/timer and its
clock source as shown in Table 7
ACR[3:0]—IP3, IP2, IP1, IP0 Change-of-State Interrupt Enable
This field selects which bits of the input port change register (IPCR)
cause the input change bit in the interrupt status register (ISR [7]) to
be set. If a bit is in the ‘on’ state the setting of the corresponding bit
in the IPCR will also result in the setting of ISR [7], which results in
the generation of an interrupt output if IMR [7] = 1. If a bit is in the
‘off’ state, the setting of that bit in the IPCR has no effect on ISR [7].
Table 7. ACR 6:4 field definition
ACR
6:4
MODE CLOCK SOURCE
000 Counter External (IP2)
001 Counter TxC – 1X clock of transmitter
010 reserved
011 Counter Crystal or X1/CLK clock divided by 16
100 Timer External (IP2)
101 Timer External (IP2) divided by 16
110 Timer Crystal or external clock (X1/CLK)
111 Timer Crystal or external clock (X1/CLK) divided
by 16
NOTE:
1. The timer mode generates a square wave
IPCR Input Port change Register
Addr Bit 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
IPCR Delta IP3 Delta IP3 Delta IP3 Delta IP3 IP 3 IP 2 IP 1 IP 0
0x04 0 = no change 0 = no change 0 = no change 0 = no change 0 = low 0 = low 0 = low 0 = low
1 = change 1 = change 1 = change 1 = change 1 = High 1 = High 1 = High 1 = High
IPCR[7:4]—IP3, IP2, IP1, IP0 Change-of-State
These bits are set when a change-of-state, as defined in the input
port section of this data sheet, occurs at the respective input pins.
They are cleared when the IPCR is read by the CPU. A read of the
IPCR also clears ISR [7], the input change bit in the interrupt status
register. The setting of these bits can be programmed to generate
an interrupt to the CPU.
IPCR[3:0]—IP3, IP2, IP1, IP0 Change-of-State
These bits provide the current state of the respective inputs. The
information is unlatched and reflects the state of the input pins at the
time the IPCR is read.

SC28L91A1B,557

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