Philips Semiconductors Product data sheet
SCC2691Universal asynchronous receiver/transmitter (UART)
2006 Aug 04
13
CR[1] – Disable Receiver
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. If the special
wake-up mode is programmed, the receiver operates even if it is
disabled (see Wake-up Mode).
CR[0] – Enable Receiver
Enables operation of the receiver. If not in the special wake-up
mode, this also forces the receiver into the search for start bit state.
SR – Channel Status Register
The status register is updated while RDN is negated. Therefore, the
bus interface used with this device must not use a static RDN line.
The RDN line must be pulsed to allow status register updates.
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 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[3]) is
set. ISR[3] 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 time in order for it to be detected.
SR[6] – Framing Error (FE)
This bit, when set, indicates that a stop bit was not detected 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 (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 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 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 underruns, 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 underrun condition.
SR[2] – Transmitter Ready (TxRDY)
This bit, when set, indicates that the THR is empty and ready to be
loaded with a character. This bit is cleared when the THR is loaded
by the CPU and is set when the 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, e.g.,
characters loaded in the THR while the transmitter is disabled will
not be transmitted.
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 three FIFO positions are occupied. It is reset
when the CPU reads the FIFO and there is no character in the
receive shift register. If a character is waiting in the receive shift
register because the FIFO is full, FFULL will be reset by the CPU
read and then set by the transfer of the character to the FIFO, which
causes all three FIFO positions to be occupied.
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 RHR, and no more characters are in the
FIFO.
ACR – Auxiliary Control Register
ACR[7] – Baud Rate Generator Set Select
This bit selects one of two sets of baud rates generated by the BRG.
Set 1: 50, 110, 134.5, 200, 300, 600, 1.05k, 1.2k, 2.4k, 4.8k, 7.2k,
9.6k, and 38.4k baud.
Set 2: 75, 110, 134.5, 150, 300, 600, 1.2k, 1.8k, 2.0k, 2.4k, 4.8k,
9.6k, and 19.2k baud.
The selected set of rates is available for use by the receiver and
transmitter. See Table 3 for characteristics of the BRG.
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 follows:
Table 4. ACR[6:4] Operating Mode
ACR [6:4] Mode Clock Source
0 0 0 Counter MPI pin
0 0 1 Counter MPI pin divided by 16
0 1 0 Counter
TxC–1X clock of the
transmitter
0 1 1 Counter
Crystal or X1/CLK divided
by 16
1 0 0 Timer (square wave) MPI pin
1 0 1 Timer (square wave) MPI pin divided by 16
1 1 0 Timer (square wave)
Crystal or external clock
(X1/CLK)
1 1 1 Timer (square wave)
Crystal or X1/CLK divided
by 16
The timer mode generates a squarewave.
ACR[3] – Power-Down Mode Select
This bit, when set to zero, selects the power-down mode. In this
mode, the SCC2691 oscillator is stopped and all functions requiring
this clock are suspended. The contents of all registers are saved. It
is recommended that the transmitter and receiver be disabled prior
Philips Semiconductors Product data sheet
SCC2691Universal asynchronous receiver/transmitter (UART)
2006 Aug 04
14
to placing the SCC2691 in this mode. Note that this bit must be set
to a logic 1 after reset.
When the power-down mode is enabled, internal circuitry forces the
X1/CLK pin to the low state and the X2 pin to the high state. If an
external clock is being used to drive the device, it is recommended
that the clock source be three-stated or forced low while the UART
is in power-down mode in order to prevent the clock driver from
being short circuited.
Table 5. BRG Characteristics
Nom Rate (Baud) Actual 16X Clock (kHz) Error (%)
50 0.8 0
75 1.2 0
110 1.759 –0.069
134.5 2.153 0.059
150 2.4 0
200 3.2 0
300 4.8 0
600 9.6 0
1050 16.756 –0.260
1200 19.2 0
1800 28.8 0
2000 32.056 0.175
2400 38.4 0
4800 76.8 0
7200 115.2 0
9600 153.6 0
14.4K 230.4 0
19.2k 307.2 0
28.8K 460.8 0
38.4k 614.4 0
57.6K 921.6 0
115.2K 1843.2K 0
Duty cycle of 16X clock is 50% ±1%. Crystal or Clock = 3.6864MHz
Asynchronous UART communications can tolerate frequency error
of 4.1% to 6.7% in a “clean” communications channel. The percent
of error changes as the character length changes. The above
percentages range from 5 bits not parity to 8 bits with parity and one
stop bit. The error with 8 bits no parity and one stop bit is 4.6%. If a
stop bit length of 9/16 is used, the error tolerance will approach 0
due to a variable error of up to 1/16 bit time in receiver clock phase
alignment to the start bit.
ACR[2:0] – MPO Output Select
This field programs the MPO output pin to provide one of the
following:
000 Request-to-send active-low output (RTSN). This output is
asserted and negated via the command register. RTSN
can be programmed to be automatically reset after the
character in the transmitter is completely shifted out or
when the receiver FIFO and receiver shift register are full
using MR2[5] and MR1[7], respectively.
001 The counter/timer output. In the timer mode, this output is
a square wave with a period of twice the value (in clock
periods) of the contents of the CTUR and CTLR. In the
counter mode, the output remains high until the 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.
010 The 1X clock for the transmitter, which is the clock that
shifts the transmitted data. If data is not being trans-
mitted, a non-synchronized 1X clock is output.
011 The 16X clock for the transmitter. This is the clock selected
by CSR[3:0] = 1111.
100 The 1X clock for the receiver, which is the clock that samples
the received data. If data is not being received, a non-syn-
chronized 1X clock is output.
101 The 16X clock for the receiver. This is the clock selected by
CSR[7:4], and is a 1X clock if CSR[7:4] = 1111.
110 The transmitter register empty signal, which is the comple-
ment of SR[2]. Active low output.
111 The receiver ready or FIFO full signal (complement of
ISR[2]). Active-low output.
ISR – Interrupt Status Register
This register provides the status of all potential interrupt sources. The
contents of this register are masked by the interrupt mask register
(IMR). If a bit in the ISR is a ‘1’ and the corresponding bit in the IMR
is also a ‘1’, the INTRN output is asserted (low). If the corresponding
bit in the IMR is a zero, the state of the bit in the ISR has no effect on
the INTRN output. Note that the IMR does not mask the reading of
the ISR; the true status is provided regardless of the contents of the
IMR. This register is cleared when the device is reset.
ISR[7] – MPI Change-of-State
This bit is set when a change-of-state occurs at the MPI input pin. It
is reset by a reset change interrupt command.
ISR[6] – MPI Current State
This bit provides the current state of the MPI pin. This information is
latched and reflects the state of the pin at the leading edge of the
ISR ready cycle.
ISR[4] – Counter Ready
In the counter mode of operation, this bit is set when the counter
reaches terminal count and is reset when the counter is stopped by
a stop counter command.
In the timer mode, this bit is set once each cycle of the generated
square wave (every other time the C/T reaches zero count). The bit
is reset by a stop counter command. The command, however, does
not stop the C/T.
ISR[3] – Change in Break
This bit, when set, indicates that the receiver has detected the
beginning or end of a received break. It is reset when the CPU
issues a reset break change interrupt command.
ISR[2] – Receiver Ready or FIFO Full
The function of this bit is programmed by MR1[6]. If programmed as
receiver ready, it 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 receiver FIFO. If the FIFO
contains more characters, the bit will be set again after the FIFO is
read. If programmed as FIFO full, it is set when a character is
transferred from the receive holding register to the receive FIFO and
the transfer causes the FIFO to become full, i.e., all three FIFO
positions are occupied. It is reset when the FIFO is read and there is
no character in the receive shift register. If there is a character
waiting in the receive shift register because the FIFO is full, the bit is
set again when the waiting character is transferred into the FIFO.
ISR[1] – Transmitter Empty
This bit is a duplicate of TxEMT (SR[3]).
ISR[0] – Transmitter Ready
This bit is a duplicate of TxRDY (SR[2]).
Philips Semiconductors Product data sheet
SCC2691Universal asynchronous receiver/transmitter (UART)
2006 Aug 04
15
IMR – Interrupt Mask Register
The programming of this register selects which bits in the ISR cause an
interrupt output. If a bit in the ISR is a ‘1’ and the corresponding bit in
the IMR is a ‘1’, the INTRN output is asserted (low). If the corresponding
bit in the IMR is a zero, the state of the bit in the ISR has no effect on
the INTRN output. Note that the IMR does not mask reading of the ISR.
NOTE: When IMR[6] is a 1, a 1 on the MPI pin causes and interrupt.
CTUR and CTLR – Counter/Timer Registers
The CTUR and CTLR hold the eight MSBs and eight LSBs,
respectively, of the value to be used by the counter/timer in either
the counter or timer modes of operation. The minimum value which
may be loaded is H‘0002’.
In the timer (programmable divider) mode, the C/T generates a
square wave whose period is twice the value (in clock periods) of
the CTUR and CTLR. The waveform so generated is often used for
a data clock. The formula for calculating the divisor n to load to the
CTUR and CTLR for a particular 1X data clock is shown below:
n +
CńT Clock Frequency
2 x 16 x Baud rate desired
Often this division will result in a non-integer number; 26.3, for
example. One can only program integer numbers in a digital divider.
Therefore, 26 would be chosen. This gives a baud rate error of
0.3/26.3 which is 1.14%; well within the ability asynchronous mode
of operation.
If the value in CTUR or CTLR is changed, the current half-period will
not be affected, but subsequent half-periods will be.
The counter ready status bit (ISR[4]) is set once each cycle of the
square wave. The bit is reset by a stop counter command. The
command, however, does not stop the C/T. The generated square
wave is output on MPO if it is programmed to be the C/T output.
In the counter mode, the C/T counts down the number of pulses
loaded in CTUR and CTLR. Counting begins upon receipt of a start
C/T command. Upon reaching the terminal count, the counter ready
interrupt bit (ISR[4]) is set. the counter continues counting past the
terminal count until stopped by the CPU. If MPO is programmed to
be the output of the C/T, the output remains high until the terminal
count is reached, at which time it goes low.
The output returns to the high state and ISR[4] is cleared when the
counter is stopped by a stop counter command. The CPU may
change the values of CTUR and CTLR at any time, but the new
count becomes effective only on the next start counter command. If
new values have not been loaded, the previous values are
preserved and used for the next count cycle.
SD00028
RESET
t
RES
Figure 3. Reset Timing
A0–A2
CEN
RDN
D0–D7
(READ)
WRN
D0–D7
(WRITE)
t
AS
t
AH
t
CS
t
RWD
t
DD
t
DF
t
RWD
t
DH
t
DS
t
RW
t
CH
FLOAT FLOATNOT VALID VALID
VALID
SD00124
Figure 4. Bus Timing

SCC2691AC1N24,129

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
IC UART 24-DIP
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union