Philips Semiconductors Product data sheet
SCC2691Universal asynchronous receiver/transmitter (UART)
2006 Aug 04
10
parity mode is programmed. In the special wake-up mode, it selects
the polarity of the transmitted A/D bit.
MR1[1:0] – Bits Per Character Select
This field selects the number of data bits per character to be
transmitted and received. The character length does not include the
start, parity, and stop bits.
MR2 – Mode Register 2
MR2 is accessed when the channel MR pointer points to MR2,
which occurs after any access to MR1. Accesses to MR2 do not
change the pointer.
MR2[7:6] – Mode Select
The UART can operate in one of four modes. MR2[7:6] = 00 is the
normal mode, with the transmitter and receiver operating
independently. MR2[7:6] = 01 places the channel in the automatic
echo mode, which automatically re-transmits the received data. The
following conditions are true while in automatic echo mode:
1. Received data is re-clocked and retransmitted on the TxD
output.
2. The receive clock is used for the transmitter.
3. The receiver must be enabled, but the transmitter need not be
enabled.
4. The TxRDY and TxEMT status bits are inactive.
5. The received parity is checked, but is not regenerated for
transmission, i.e., transmitted parity bit is as received.
6. Character framing is checked, but the stop bits are retransmitted
as received.
7. A received break is echoed as received until the next valid start
bit is detected.
8. CPU-to-receiver communication continues normally, but the
CPU-to-transmitter link is disabled.
Two diagnostic modes can also be selected. MR2[7:6] = 10 selects
local loopback mode. In this mode:
1. The transmitter output is internally connected to the receiver
input.
2. The transmit clock is used for the receiver.
3. The TxD output is held high.
4. The RxD input is ignored.
5. The transmitter must be enabled, but the receiver need not be
enabled.
6. CPU to transmitter and receiver communications continue
normally.
The second diagnostic mode is the remote loopback mode, selected
by MR2[7:6] = 11. In this mode:
1. Received data is re-clocked and retransmitted on the TxD
output.
2. The receive clock is used for the transmitter.
3. Received data is not sent to the local CPU, and the error status
conditions are inactive.
4. The received parity is not checked and is not regenerated for
transmission, i.e., the transmitted parity bit is as received.
5. The receiver must be enabled, but the transmitter need not be
enabled.
6. Character framing is not checked, and the stop bits are
retransmitted as received.
7. A received break is echoed as received until the next valid start
bit is detected.
When switching in and out of the various modes, the selected mode
is activated immediately upon mode selection, even if this occurs in
the middle of a received or transmitted character. Likewise, if a
mode is deselected, the device will switch out of the mode
immediately. An exception to this is switching out of auto-echo or
remote loopback modes; if the deselection occurs just after the
receiver has sampled the stop bit (indicated in auto-echo by
assertion o fRxRDY), and the transmitter is enabled, the transmitter
is enabled, the transmitter will remain in auto-echo mode until one
full stop bit has been retransmitted.
MR2[5] – Transmitter Request-to–Send Control
CAUTION: When the transmitter controls the OP pin (usually used
for the RTSN signal) the meaning of the pin is not RTSN at all!
Rather, it signals that the transmitter has finished the transmission
(i.e., end of block).
This bit allows deactivation of the RTSN output by the transmitter.
This output is manually asserted and negated by the appropriate
commands issued via the command register. MR2[5] set to 1
caused the RTSN to be reset automatically one bit time after the
character(s) in the transmit shift register and in the THR (if any) are
completely transmitted (including the programmed number of stop
bits) if a previously issued transmitter disable is pending. This
feature can be used to automatically terminate the transmission as
follows:
1. Program the auto-reset mode: MR2[5]=1
2. Enable transmitter, if not already enabled
3. Assert RTSN via command
4. Send message
5. After the last character of the message is loaded to the THR,
disable the transmitter. (If the transmitter is underrun, a special
case exists. See note below.)
6. The last character will be transmitted and the RTSN will be reset
one bit time after the last stop bit is sent.
NOTE: The transmitter is in an underrun condition when both the
TxRDY and the TxEMT bits are set. This condition also exists
immediately after the transmitter is enabled from the disabled or
reset state. When using the above procedure with the transmitter in
the underrun condition, the issuing of the transmitter disable must be
delayed from the loading of a single, or last, character until the
TxRDY becomes active again after the character is loaded.
MR2[4] – Clear-to-Send Control
The sate of this bit determines if the CTSN input (MPI) 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 sate of CTSN
each time it is ready to send 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 to 1 and 1–9/16 to 2
bits, in increments of 1/16 bit, can be programmed for character
lengths of 6, 7, and 8 bits. For a character length of 5 bits, 1–1/16 to
2 stop bits can be programmed in increments of 1/16 bit. 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[3] = 0 selects one stop bit and MR2[3] = 1
selects two stop bits to be transmitted.
Philips Semiconductors Product data sheet
SCC2691Universal asynchronous receiver/transmitter (UART)
2006 Aug 04
11
Table 2. Register Bit Formats
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
MR1 (Mode Register 1)
RxRTS Control RxINT Select Error Mode* Parity Mode Parity Type Bits per Character
0 = no
1 = yes
0 = RxRDY
1 = FFULL
0 = Char
1 = Block
00 = With parity
01 = Force parity
10 = No parity
11 = Special mode
0 = Even
1 = Odd
00 = 5
01 = 6
10 = 7
11 = 8
NOTE:
*In block error mode, block error conditions must be cleared by using the error reset command (command 4x) or a receiver reset.
MR2 (Mode Register 2)
Channel Mode
TxRTS
Control
CTS Enable
Tx
Stop Bit Length*
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: *Add 0.5 to values shown for 0–7 if channel is programmed for 5 bits/character.
CSR (Clock Select Register)
Receiver Clock Select Transmitter Clock Select
See Text See Text
See Table 6 for BRG Test frequencies in this data sheet, and
“Extended baud rates for SCN2681, SCN68681, SCC2691, SCC2692, SCC68681
and SCC2698B”
Philips Semiconductors ICs for Data Communications, IC-19, 1994.
CR (Command Register)
Miscellaneous Commands Disable Tx Enable Tx Disable Rx Enable Rx
See Text 0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
NOTE:
Access to the miscellaneous commands should be separated by 3 X1 clock edges. A disabled transmitter cannot be loaded.
SR (Channel Status Register)
Received Break Framing
Error
Parity
Error
Overrun
Error
TxEMT TxRDY FFULL 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
NOTE:
*These status bits are appended to the corresponding data character in the receive FIFO. A read of the status register 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 reset when
the corresponding data character is read from the FIFO. In block error mode, block error conditions must be cleared by using the error reset
command (command 4x) or a receiver reset.
ACR (Auxiliary Control Register)
BRG Set
Select
Counter/Timer
Mode and Source
Power-Down
Mode
MPO Pin
Function Select
0 = Set 1
1 = Set 2
See Text 0 = On
PWRDN Active
1 = Off
Normal
000 = RTSN 100 = RxC (1X)
001 = C/TO 101 = RxC (16X)
010 = TxC (1X) 110 = TxRDY
011 = TxC (16X) 111 = RxRDY/FFULL
ISR (Interrupt Status Register)
MPI Pin
Change
MPI Pin
Current State
Not used Counter
Ready
Delta
Break
RxRDY/
FFULL
TxEMT TxRDY
0 = No
1 = Yes
0 = Low
1 = High
0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
0 = No
1 = Yes
IMR (Interrupt Mask Resister)
MPI Change
Interrupt
MPI Level
Interrupt
Not used Counter
Ready Int
Delta Break
Interrupt
RxRDY/FFULL
Interrupt
TxEMT
Interrupt
TxRDY
Interrupt
0 = Off
1 = On
0 = Off
1 = On
0 = Off
1 = On
0 = Off
1 = On
0 = Off
1 = On
0 = Off
1 = On
0 = Off
1 = On
Philips Semiconductors Product data sheet
SCC2691Universal asynchronous receiver/transmitter (UART)
2006 Aug 04
12
Table 2. Register Bit Formats (Continued)
CTUR (Counter/Timer Upper Register)
C/T[15] C/T[14] C/T[13] C/T[12] C/T[11] C/T[10] C/T[9] C/T[8]
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
CTLR (Counter/Timer Lower Register)
C/T[7] C/T[6] C/T[5] C/T[4] C/T[3] C/T[2] C/T[1] C/T[0]
CSR – Clock Select Register (see Table 6. also)
Table 3. Baud Rate Selection
CSR[3:0]/ [7:4] ACR[7] = 0 ACR[7] = 1
0 0 0 0 50 75
0 0 0 1 110 110
0 0 1 0 134.5 134.5
0 0 1 1 200 150
0 1 0 0 300 300
0 1 0 1 600 600
0 1 1 0 1,200 1,200
0 1 1 1 1,050 2,000
1 0 0 0 2,400 2,400
1 0 0 1 4,800 4,800
1 0 1 0 7,200 1,800
1 0 1 1 9,600 9,600
1 1 0 0 38.4k 19.2k
1 1 0 1 Timer Timer
1 1 1 0 MPI – 16X MPI – 16X
1 1 1 1 MPI–1X MPI–1X
The receiver clock is always a 16X clock, except for CSR[7:4] = 1111.
See
“Extended baud rates for SCN2681, SCN68681, SCC2691,
SCC2692, SCC68681 and SCC2698B”
in application notes
elsewhere in this publication
CSR[7:4] – Receiver Clock Select
This field selects the baud rate clock for the receiver as shown in
Table 3. The baud rates listed are for a 3.6864MHz crystal or
external clock.
CSR[3:0] – Transmitter Clock Select
This field selects the baud rate clock for the transmitter. The field
definition is as shown in Table 3.
CR – Command Register
CR is used to write commands to the UART. Multiple commands can
be specified in a single write to CR as long as the commands are
non-conflicting, e.g., the enable transmitter and reset transmitter
commands cannot be specified in a single command word.
CR[7:4] – Miscellaneous Commands
The encoded value of this field may be used to specify a single
command as follows:
NOTE: Access to the upper four bits of the command register
should be separated by three (3) edges of the X1 clock.
0000 No command.
0001 Reset MR pointer. Causes the MR pointer to point to MR1.
0010 Reset receiver. Resets the receiver as if a hardware reset had
been applied. The receiver is disable and the FIFO is flushed.
0011 Reset transmitter. Resets the transmitter as if a hardware reset
had been applied
0100 Reset error status. Clears the received break, parity error,
framing error, and overrun error bits in the status
register (SR[7:4]}. Used in character mode to clear OE status
(although RB, PE, and FE bits will also be cleared), and in
block mode to clear all error status after a block of data has
been received.
0101 Reset break change interrupt. Causes the break detect change
bit in the interrupt status register (ISR[3]) to be cleared to zero.
0110 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, the
break begins when transmission of the character is completed.
If a character is in the THR, the start of break is delayed until
that character or any others loaded after it have been
transmitted (TxEMT must be true before break begins). The
transmitter must be enabled to start a break
0111 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, if any, is transmitted.
1000 Start C/T. In counter or timer modes, causes the contents of
CTUR/CTLR to be preset into the counter/timer and starts the
counting cycle. In timer mode, any counting cycle in progress
when the command is issued is terminated. In counter mode,
has no effect unless a stop C/T command was issued
previously.
1001 Stop counter. In counter mode, stops operation of the
counter/timer, resets the counter ready bit in the ISR, and
forces the MPO output high if it is programmed to be the
output of the C/T. In timer mode, resets the counter ready bit in
the ISR but has no effect on the counter/timer itself or on the
MPO output.
1010 Assert RTSN. Causes the RTSN output (MPO) to be asserted
(low).
1011 Negate RTSN.Causes the RTSN output (MPO) to be negated
(high).
1100 Reset MPI change interrupt. Causes the MPI change bit in the
interrupt status register (ISR[7]) to be cleared to zero.
1100 Reserved.
111x Reserved.
CR[3] – Disable Transmitter
This command terminates operation and resets the TxRDY and
TxEMT status bits. However, if a character is being transmitted or if
a character is in the THR when the transmitter is disabled, the
transmission of the character(s) is completed before assuming the
inactive state. A disabled transmitter cannot be loaded.
CR[2] – Enable Transmitter
Enables operation of the channel A transmitter. The TxRDY status
bit will be asserted.

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