background image

Philips Semiconductors

Product data sheet

SCC2691

Universal 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.

Содержание SCC2691

Страница 1: ... SCC2691 Universal asynchronous receiver transmitter UART Product data sheet Supersedes data of 1998 Sep 04 2006 Aug 04 INTEGRATED CIRCUITS ...

Страница 2: ...of several magnitudes The UART is fully TTL compatible and operates from a single 5V power supply FEATURES Full duplex asynchronous receiver transmitter Quadruple buffered receiver data register Programmable data format 5 to 8 data bits plus parity Odd even no parity or force parity 1 1 5 or 2 stop bits programmable in 1 16 bit increments 16 bit programmable Counter Timer Baud rate for the receive...

Страница 3: ...n Plastic Small Outline Large SOL Package SCC2691AC1D24 SOT137 1 BLOCK DIAGRAM 8 D0 D7 RDN WRN CEN A0 A2 RESET INTRN X1 CLK X2 TIMING CONTROL INTERNAL DATA BUS 3 BUS BUFFER OPERATION CONTROL ADDRESS DECODE R W CONTROL INTERRUPT CONTROL IMR ISR TIMING BAUD RATE GENERATOR CLOCK SELECTORS COUNTER TIMER CRYSTAL OSCILLATOR POWER DOWN LOGIC CSR ACR CTUR CTLR CHANNEL A TRANSMIT HOLDING REG TRANSMIT SHIFT...

Страница 4: ... resistor X1 CLK 9 12 I Crystal 1 Crystal connection or an external clock input A crystal of a clock the appropriate frequency nominally 3 6864 MHz must be supplied at all times For crystal connections see Figure 7 Clock Timing X2 10 13 I Crystal 2 Crystal connection See Figure 7 If a crystal is not used it is best to keep this pin not connected although it is permissible to ground it RxD 2 3 I Re...

Страница 5: ...ER TEST CONDITIONS Min Typ Max UNIT VIL VIH Input low voltage Input high voltage 0 8 V All except X1 CLK X1 CLK 2 0 8VCC VCC V V VOL VOH 4 Output low voltage Output high voltage except open drain outputs IOL 2 4mA IOH 400µA 2 4 0 4 V V IIL Input leakage current VIN 0 to VCC 10 10 µA ILL Data bus 3 State leakage current VO 0 4 to VCC 10 10 µA IOD Open drain output leakage current VO 0 4 to VCC 10 1...

Страница 6: ...nput on IP pin 350 ns tTCS Output delay from TxC low at OP pin to TxD data output 0 150 ns Receiver timing Figure 9 tRXS RxD data setup time before RxC high at external clock input on IP pin 100 ns tRXH RxD data hold time after RxC high at external clock input on IP pin 100 ns NOTES 1 Parameters are valid over specified temp range See Ordering Information table for applicable operating temp and VC...

Страница 7: ...ck consists of a crystal oscillator a baud rate generator a programmable 16 bit counter timer and two clock selectors The crystal oscillator operates directly from a 3 6864MHz crystal connected across the X1 CLK and X2 inputs with a minimum of external components If an external clock of the appropriate frequency is available it may be connected to X1 CLK If an external clock is used instead of a c...

Страница 8: ...op bit is detected the receiver will immediately look for the next start bit However if a non zero character was received without a stop bit i e framing error and RxD remains low for one half of the bit period after the stop bit was sampled then the receiver operates as if a new start bit transition had been detected at that point one half bit time after the stop bit was sampled The parity error f...

Страница 9: ...ime refers to the condition where the change of state is just missed and the first change of state is not detected until after an additional 25µs The MPI pin has a small pull up device that will source 1 to 4 mA of current from VCC This pin does not require pull up devices or VCC connection if it is not used MULTI PURPOSE OUTPUT PIN This pin can be programmed to serve as a request to send output t...

Страница 10: ... 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...

Страница 11: ...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 ...

Страница 12: ...ror 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 t...

Страница 13: ...e 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 transm...

Страница 14: ...yn 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 interr...

Страница 15: ...igital 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 c...

Страница 16: ...midpoint of the switching signal VM to a point 0 5V above VOL This point represents noise margin that assures true switching has occurred Beyond this level the effects of external circuitry and test environment are pronounced and can greatly affect the resultant measurement SD00126 Figure 6 Interrupt Timing X1 CLK C T CLK RxC TxC tCLK tCTC tRx tTx tCLK tCTC tRx tTx C1 C2 Y1 X1 CLK X2 SCC2691 Y1 3 ...

Страница 17: ...a sheet SCC2691 Universal asynchronous receiver transmitter UART 2006 Aug 04 17 tTXD tTCS 1 BIT TIME 1 OR 16 CLOCKS TxD TxC INPUT TxC 1X OUTPUT SD00092 Figure 8 Transmit Timing tRXS tRXH RxC 1X INPUT RxD SD00093 Figure 9 Receive Timing ...

Страница 18: ...BE TRANSMITTED D6 CR 7 4 1010 CR 7 4 1010 NOTES 1 TIMING SHOWN FOR MR2 4 1 2 TIMING SHOWN FOR MR2 5 1 SD00128 Figure 10 Transmitter Timing D1 D2 D4 D5 D6 D7 D8 D3 RxD RECEIVER ENABLED RxRDY SR0 FFULL SR1 RxRDY RDN OVERRRUN SR4 RTS1 MPO NOTES 1 Timing shown for MR1 7 2 Shown for ACR 2 111 and MR1 6 0 FFULL MPO2 MPO 1 CR 7 4 1010 RESET BY COMMAND D5 WILL BE LOST S D S D S D S D D2 D3 D4 D1 S STATUS ...

Страница 19: ...a point of confusion arises in that MP0 may also be controlled by the transmitter When the transmitter is controlling this pin its meaning is not RTS at all It is rather that the transmitter has finished sending its last data byte Programming the MP0 pin to be controlled by the receiver and the transmitter at the same time is allowed but would usually be incompatible RTS can also be controlled by ...

Страница 20: ... for SCN2681 SCN68681 SCC2691 SCC2692 SCC68681 and SCC2698B in application notes elsewhere in this publication The test mode at address H A changes all transmitters and receivers to the 1x mode and connects the output ports to some internal nodes Receiver Reset in the Normal Mode Receiver Enabled Reset can be accomplished easily by issuing a receiver software or hardware reset followed by a receiv...

Страница 21: ...Philips Semiconductors Product data sheet SCC2691 Universal asynchronous receiver transmitter UART 2006 Aug 04 21 DIP24 plastic dual in line package 24 leads 300 mil SOT222 1 ...

Страница 22: ...Philips Semiconductors Product data sheet SCC2691 Universal asynchronous receiver transmitter UART 2006 Aug 04 22 SO24 plastic small outline package 24 leads body width 7 5 mm SOT137 1 ...

Страница 23: ...Philips Semiconductors Product data sheet SCC2691 Universal asynchronous receiver transmitter UART 2006 Aug 04 23 PLCC28 plastic leaded chip carrier 28 leads SOT261 2 ...

Страница 24: ... Date Description _3 20060804 Product data sheet 9397 750 14951 Supersedes data of 1998 Sep 04 9397 750 04358 Modifications Ordering information changed Version for PLCC28 from SOT261 3 to SOT261 2 Changed package outline drawing from SOT261 3 to SOT261 2 _2 19980904 Product specification 9397 750 04358 ECN 853 1078 19971 _1 19950501 ...

Страница 25: ...anted to be suitable for use in medical military aircraft space or life support equipment nor in applications where failure or malfunction of a Philips Semiconductors product can reasonably be expected to result in personal injury death or severe property or environmental damage Philips Semiconductors accepts no liability for inclusion and or use of Philips Semiconductors products in such equipmen...

Отзывы: