Dual asynchronous receiver/transmitter (DUART)

Similar documents
INTEGRATED CIRCUITS. SCC68681 Dual asynchronous receiver/transmitter (DUART) Product data 2004 Apr 06

SCN68681 Dual asynchronous receiver/transmitter (DUART)

SCC68692 Dual asynchronous receiver/transmitter (DUART)

INTEGRATED CIRCUITS. SCC2681 Dual asynchronous receiver/transmitter (DUART) Product data 2004 Apr 06

SCC2692 Dual asynchronous receiver/transmitter (DUART)

SC28L V/5.0 V Dual Universal Asynchronous Receiver/Transmitter (DUART)

Programmable communications interface (PCI)

Preliminary Information IP0 -IOW -IOR RXB N.C. TXB OP1 OP3 OP5 OP7

XR88C92/192 DUAL UNIVERSAL ASYNCHRONOUS RECEIVER AND TRANSMITTER DESCRIPTION FEATURES. PLCC Package ORDERING INFORMATION.

SC28L General description. 3.3 V, 5 V UART, Mbit/s, with 256-byte FIFO

INTEGRATED CIRCUITS. AN405 SCN2681/SCN68681 and SCC2691 data communications. Supersedes data of 1986 Aug 1998 Sep 21

SC16C750B. 1. General description. 2. Features. 5 V, 3.3 V and 2.5 V UART with 64-byte FIFOs

Quad universal asynchronous receiver/transmitter (QUART)

SC16C550B. 1. General description. 2. Features. 5 V, 3.3 V and 2.5 V UART with 16-byte FIFOs

Enhanced octal universal asynchronous receiver/transmitter (Octal UART) SCC2698B

Freescale Semiconductor, I MC68HC681 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART)

SC16C650B. 1. General description. 2. Features. 5 V, 3.3 V and 2.5 V UART with 32-byte FIFOs and infrared (IrDA) encoder/decoder

SC16C2552B. 1. General description. 2. Features. 5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.), with 16-byte FIFOs

SC16C Description. 2. Features. Dual UART with 32 bytes of transmit and receive FIFOs

SC16C550 Rev June 2003 Product data General description Features

SC16C652B. 1. General description. 2. Features. 5 V, 3.3 V and 2.5 V dual UART, 5 Mbit/s (max.) with 32-byte FIFOs and infrared (IrDA) encoder/decoder

Product Specification

RCLK N.C. CS0 CS1 -CS2 -BAUDOUT

FEATURES PLCC Package RXB RXA -TXRDYB TXA TXB -OPB -CSA -CSB

ST16C550. UART WITH 16-BYTE FIFO s GENERAL DESCRIPTION. PLCC Package FEATURES ORDERING INFORMATION

ST16C450 UNIVERSAL ASYNCHRONOUS RECEIVER/TRANSMITTER (UART) GENERAL DESCRIPTION. PLCC Package FEATURES ORDERING INFORMATION.

RayStar Microelectronics Technology Inc. Ver: 1.4

SC16C554B/554DB. 1. General description. 2. Features. 5 V, 3.3 V and 2.5 V quad UART, 5 Mbit/s (max.) with 16-byte FIFOs

PART MAX4584EUB MAX4585EUB TOP VIEW

Description TRC NC EPE GND CLS1 RRD CLS2 RBR8 SBS RBR7 PI RBR6 CRL RBR5 TBR8 RBR4 TBR7 RBR3 TBR6 RBR2 TBR5 RBR1 TBR4 PE TBR3 FE TBR2 OE TBR1 SFD

Unit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION

V CC I SOURCE = 25µA, TX only. 0.9 DOUT, TX, RTS: I SINK = 4mA. With MHz crystal; all other logic inputs are at 0V or V CC V CC = 5V

Description PKG. NO. TRC NC EPE GND CLS1 RRD CLS2 RBR8 SBS RBR7 PI RBR6 CRL RBR5 TBR8 RBR4 TBR7 RBR3 TBR6 RBR2 TBR5 RBR1 TBR4 PE TBR3 FE TBR2 OE

6551 ASYNCHRONOUS COMMUNICATION INTERFACE ADAPTER

DS1807 Addressable Dual Audio Taper Potentiometer

DS1075. EconOscillator/Divider PRELIMINARY FEATURES PIN ASSIGNMENT FREQUENCY OPTIONS

DS1075 EconOscillator/Divider

INF8574 GENERAL DESCRIPTION

V62/03626 REVISIONS LTR DESCRIPTION DATE APPROVED REV PAGE REV PAGE REV REV STATUS OF PAGES PAGE

XR16L570 GENERAL DESCRIPTION FEATURES APPLICATIONS FIGURE 1. BLOCK DIAGRAM. *5 V Tolerant Inputs (Except for CLK) PwrSave. Data Bus Interface

INTEGRATED CIRCUITS. PCA channel I 2 C multiplexer and interrupt logic. Product data Supersedes data of 2001 May 07.

74F579 8-bit bidirectional binary counter (3-State)

DS1073 3V EconOscillator/Divider

DS1803 Addressable Dual Digital Potentiometer

DS1621. Digital Thermometer and Thermostat FEATURES PIN ASSIGNMENT

XR16V554/554D 2.25V TO 3.6V QUAD UART WITH 16-BYTE FIFO

SC16IS General description. 2. Features

DS1302 Trickle-Charge Timekeeping Chip

8-BIT SERIAL-INPUT SHIFT REGISTER WITH LATCHED 3-STATE OUTPUTS High-Performance Silicon-Gate CMOS

HD Features. CMOS Universal Asynchronous Receiver Transmitter (UART) Ordering Information. Pinout

74AC299 74ACT299 8-Input Universal Shift/Storage Register with Common Parallel I/O Pins

March 30, W65C51N Asynchronous Communications Interface Adapter (ACIA)

a8259 Features General Description Programmable Interrupt Controller

LM12L Bit + Sign Data Acquisition System with Self-Calibration

DS1720 ECON-Digital Thermometer and Thermostat

TIME SLOT INTERCHANGE DIGITAL SWITCH 256 x 256

DS1720. Econo Digital Thermometer and Thermostat PRELIMINARY FEATURES PIN ASSIGNMENT

PC16552D Dual Universal Asynchronous Receiver Transmitter with FIFOs

DS1302 Trickle-Charge Timekeeping Chip

Microcontrollers. Serial Communication Interface. EECE 218 Microcontrollers 1

PART MAX5304EUA TOP VIEW OUT 8 CONTROL INPUT REGISTER. Maxim Integrated Products 1

C16450 Universal Asynchronous Receiver/Transmitter. Function Description. Features. Symbol

SCC2698B Octal universal asynchronous receiver/transmitter (Octal-UART) AN410B

74AC574 74ACT574 Octal D-Type Flip-Flop with 3-STATE Outputs

PART MXD1013C/D MXD1013PD MXD1013UA MXD1013SE PART NUMBER EXTENSION (MXD1013 )

EEL 4744C: Microprocessor Applications. Lecture 9. Part 2. M68HC12 Serial I/O. Dr. Tao Li 1

FXMAR2104 Dual-Supply, 4-Bit Voltage Translator / Isolator for Open-Drain and Push-Pull Applications

DS1307ZN. 64 X 8 Serial Real Time Clock PIN ASSIGNMENT FEATURES

DS1202, DS1202S. Serial Timekeeping Chip FEATURES PIN ASSIGNMENT. ORDERING INFORMATION DS pin DIP DS1202S 16 pin SOIC DS1202S8 8 pin SOIC

SC16C General description. 2. Features and benefits

Temperature Sensor and System Monitor in a 10-Pin µmax

ST16C554/554D 2.97V TO 5.5V QUAD UART WITH 16-BYTE FIFO

+Denotes lead-free package. *EP = Exposed paddle. V CC GND AGND AV CC GND I 2 C INTERFACE. -35dB TO +25dB GAIN AUDIO SOURCE AUDIO AMPLIFIER DS4420

UNISONIC TECHNOLOGIES CO., LTD CD4541

PRODUCT OVERVIEW OVERVIEW OTP

Oscillator fail detect - 12-hour Time display 24-hour 2 Time Century bit - Time count chain enable/disable -

INTEGRATED CIRCUITS. 74ABT574A Octal D-type flip-flop (3-State) Product specification 1995 May 22 IC23 Data Handbook

CD4541BC Programmable Timer

TOP VIEW. Maxim Integrated Products 1

TL16C552A, TL16C552AM DUAL ASYNCHRONOUS COMMUNICATIONS ELEMENT WITH FIFO

DS1801 Dual Audio Taper Potentiometer

ILI2117 Capacitive Touch Controller

TIME SLOT INTERCHANGE DIGITAL SWITCH 128 x 128

DS1307ZN. 64 X 8 Serial Real Time Clock

INTEGRATED CIRCUITS. PCA9544A 4-channel I 2 C multiplexer with interrupt logic. Product data sheet Supersedes data of 2004 Jul 28.

SCAN182373A Transparent Latch with 25Ω Series Resistor Outputs

16 Channels LED Driver

DS4000 Digitally Controlled TCXO

DS1065 EconOscillator/Divider

Data Sheet PT7C4337 Real-time Clock Module (I 2 C Bus) Product Description. Product Features. Ordering Information

DS1642 Nonvolatile Timekeeping RAM

I2C Demonstration Board I 2 C-bus Protocol

SCAN18374T D-Type Flip-Flop with 3-STATE Outputs

10-Bit, Low-Power, 2-Wire Interface, Serial, Voltage-Output DAC

Philips Semiconductors Programmable Logic Devices

6-Bit A/D converter (parallel outputs)

74F160A 74F162A Synchronous Presettable BCD Decade Counter

74AC574 74ACT574 Octal D-Type Flip-Flop with 3-STATE Outputs

IS31FL CHANNEL FUN LED DRIVER July 2015

XR19L400 SINGLE CHANNEL INTEGRATED UART AND RS-485 TRANSCEIVER

Transcription:

Dual asynchronous receiver/tramitter (DUART) SCN6868 DESCRIPTION The Philips Semiconductors SCN6868 Dual Universal Asynchronous Receiver/Tramitter (DUART) is a single-chip MOS-LSI communicatio device that provides two independent full-duplex asynchronous receiver/tramitter channels in a single package. It is compatible with other S68 family devices, and can also interface easily with other microprocessors. The DUART can be used in polled or interrupt driven systems. The operating mode and data format of each channel can be programmed independently. Additionally, each receiver and tramitter can select its operating speed as one of eighteen fixed baud rates, a 6X clock derived from a programmable counter/timer, or an external X or 6X clock. The baud rate generator and counter/timer can operate directly from a crystal or from external clock inputs. The ability to independently program the operating speed of the receiver and tramitter make the DUART particularly attractive for dual-speed channel applicatio such as clustered terminal systems. Each receiver is quadruply buffered to minimize the potential of receiver overrun or to reduce interrupt overhead in interrupt driven systems. In addition, a flow control capability is provided to disable a remote DUART tramitter when the buffer of the receiving device is full. Also provided on the SCN6868 are a multipurpose 6-bit input port and a multipurpose 8-bit output port. These can be used as general purpose I/O ports or can be assigned specific functio (such as clock inputs or status/interrupt outputs) under program control. FEATURES S68 bus compatible Dual full-duplex asynchronous receiver/tramitter Quadruple buffered receiver data registers Programmable data format 5 to 8 data bits plus parity Odd, even, no parity or force parity,.5 or 2 stop bits programmable in /6-bit increments Programmable baud rate for each receiver and tramitter selectable from: 22 fixed rates: 5 to 5.2k baud Non-standard rates to 5.2kb Non-standard user-defined rate derived from programmable counter/timer External X or 6X clock 6-bit programmable Counter/Timer Parity, framing, and overrun error detection False start bit detection Line break detection and generation Programmable channel mode Normal (full-duplex) Automatic echo Local loopback Remote loopback Multi-function programmable 6-bit counter/timer Multi-function 6-bit input port Can serve as clock or control inputs Change-of-state detection on four inputs kω typical pull-up resistors Multi-function 8-bit output port Individual bit set/reset capability Outputs can be programmed to be status/interrupt signals Versatile interrupt system Single interrupt output with eight maskable interrupting conditio Interrupt vector output on interrupt acknowledge Output port can be configured to provide a total of up to six separate wire-orable interrupt outputs Maximum data trafer rates: X - MB/sec, 6X - 25kB/sec Automatic wake-up mode for multidrop applicatio Start-end break interrupt/status Detects break which originates in the middle of a character On-chip crystal oscillator Single +5V power supply Commercial and industrial temperature ranges available DIP and PLCC packages ORDERING INFORMATION COMMERCIAL DESCRIPTION V CC = +5V +5%, T A = C to +7 C INDUSTRIAL V CC = +5V +%, T A = 4 C to +85 C DWG # 4-Pin Ceramic Dual In-Line Package (cerdip) Not available SCN6868EF4 59B 4-Pin Plastic Dual In-Line Package (DIP) SCN6868CN4 SCN6868EN4 SOT29-44-Pin Plastic Leaded Chip Carrier (PLCC) SCN6868CA44 SCN6868EA44 SOT87-2 995 May 853-83 579

Dual asynchronous receiver/tramitter (DUART) SCN6868 PIN CONFIGURATIONS A 4 V CC IP3 A2 IP 2 3 4 39 38 37 IP4 IP5 IACKN 7 6 4 39 A3 A4 5 6 36 35 IP2 CSN PLCC IP 7 34 RESETN R/WN 8 33 X2 7 29 DTACKN 9 32 X/CLK 8 28 RxDB TxDB OP 2 OP3 3 OP5 4 OP7 5 D 6 D3 7 D5 8 DIP 3 3 29 28 27 26 25 24 23 RxDA TxDA OP OP2 OP4 OP6 D D2 D4 PIN/FUNCTION NC 6 OP5 3 OP2 2 A 7 OP7 32 OP 3 IP3 8 D 33 TxDA 4 A2 9 D3 34 NC 5 IP 2 D5 35 RxDA 6 A3 2 D7 36 X/CLK 7 A4 22 GND 37 X2 8 IP 23 NC 38 RESETN 9 R/WN 24 INTRN 39 CSN DTACKN 25 D6 4 IP2 RxDB 26 D4 4 IACKN 2 NC 27 D2 42 IP5 3 TxDB 28 D 43 IP4 4 OP 29 OP6 44 V CC 5 OP3 3 OP4 D7 9 22 D6 GND 2 2 INTRN SD7 ABSOLUTE MAXIMUM RATINGS SYMBOL PARAMETER RATING UNIT T A Operating ambient temperature range 2 See Note 4 C T STG Storage temperature range -65 to +5 C All voltages with respect to ground 3 -.5 to +6. V NOTES:. Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other condition above those indicated in the operation section of this specification is not implied. 2. For operating at elevated temperatures, the device must be derated based on +5 o C maximum junction temperature. 3. This product includes circuitry specifically designed for the protection of its internal devices from damaging effects of excessive static charge. Nonetheless, it is suggested that conventional precautio be taken to avoid applying any voltages larger than the rated maxima. 4. Parameters are valid over specified temperature range. See Ordering information table for applicable operating temperature range and V CC supply range. 995 May 2

Dual asynchronous receiver/tramitter (DUART) SCN6868 BLOCK DIAGRAM 8 CHANNEL A D D7 BUS BUFFER TRANSMIT HOLDING REG TxDA TRANSMIT SHIFT REGISTER R/WN DTACKN CSN A A4 RESETN 4 OPERATION CONTROL ADDRESS DECODE R/W CONTROL RECEIVE HOLDING REG (3) RECEIVE SHIFT REGISTER RxDA MR, 2 CRA SRA INTRN IACKN INTERRUPT CONTROL IMR ISR IVR CHANNEL B (AS ABOVE) TxDB RxDB TIMING BAUD RATE GENERATOR CONTROL TIMING INTERNAL DATABUS INPUT PORT CHANGE OF STATE DETECTORS (4) IPCR 6 IP-IP5 ACR CLOCK SELECTORS COUNTER/ TIMER OUTPUT PORT X/CLK X2 XTAL OSC CSRA FUNCTION SELECT LOGIC OPCR OPR 8 OP-OP7 CSRB ACR CTLR U CTLR V CC GND SD8 995 May 3

Dual asynchronous receiver/tramitter (DUART) SCN6868 PIN DESCRIPTION SYMBOL TYPE NAME AND FUNCTION D-D7 I/O Data Bus: Bidirectional 3-State data bus used to trafer commands, data and status between the DUART and the CPU. D is the least significant bit. CSN I Chip Select: Active-Low input signal. When Low, data trafers between the CPU and the DUART are enabled on D-D7 as controlled by the R/WN, RDN and A-A4 inputs. When High, places the D-D7 lines in the 3-State condition. R/WN I Read/Write: A High input indicates a read cycle and a Low input indicates a write cycle, when a cycle is initiated by assertion of the CSN input. A-A4 I Address Inputs: Select the DUART internal registers and ports for read/write operatio. RESETN I Reset: A Low level clears internal registers (SRA, SRB, IMR, ISR, OPR, OPCR), initializes the IVR to hex F, puts OP-OP7 in the High state, stops the counter/timer, and puts Channel A and B in the inactive state, with the TxDA and TxDB outputs in the mark (High) state. Clears Test modes, sets MR pointer to MR. DTACKN O Data Trafer Acknowledge: Three-state active Low output asserted in write, read, or interrupt cycles to indicate proper trafer of data between the CPU and the DUART. INTRN O Interrupt Request: Active-Low, open-drain, output which signals the CPU that one or more of the eight maskable interrupting conditio are true. IACKN I Interrupt Acknowledge: Active-Low input indicating an interrupt acknowledge cycle. In respoe, the DUART will place the interrupt vector on the data bus and will assert DTACKN if it has an interrupt pending. X/CLK I Crystal : Crystal or external clock input. A crystal or clock of the specified limits must be supplied at all times. If a crystal is used, a capacitor must be connected from this pin to ground (see Figure 7). X2 I Crystal 2: Connection for other side of the crystal. When a crystal is used, a capacitor must be connected from this pin to ground (see Figure 7). If an external clock is used, this pin should be grounded. RxDA I Channel A Receiver Serial Data Input: The least significant bit is received first. Mark is High, space is Low. RxDB I Channel B Receiver Serial Data Input: The least significant bit is received first. Mark is High, space is Low. TxDA O Channel A Tramitter Serial Data Output: The least significant bit is tramitted first. This output is held in the mark condition when the tramitter is disabled, idle or when operating in local loopback mode. Mark is High, space is Low. TxDB O Channel B Tramitter Serial Data Output: The least significant bit is tramitted first. This output is held in the mark condition when the tramitter is disabled, idle, or when operating in local loopback mode. Mark is High, space is Low. OP O Output : General purpose output or Channel A request to send (RTSAN, active-low). Can be deactivated automatically on receive or tramit. OP O Output : General purpose output or Channel B request to send (RTSBN, active-low). Can be deactivated automatically on receive or tramit. OP2 O Output 2: General purpose output, or Channel A tramitter X or 6X clock output, or Channel A receiver X clock output. OP3 O Output 3: General purpose output or open-drain, active-low counter/timer output or Channel B tramitter X clock output, or Channel B receiver X clock output. OP4 O Output 4: General purpose output or Channel A open-drain, active-low, RxRDYA/FFULLA output. OP5 O Output 5: General purpose output or Channel B open-drain, active-low, RxRDYB/FFULLB output. OP6 O Output 6: General purpose output or Channel A open-drain, active-low, TxRDYA output. OP7 O Output 7: General purpose output, or Channel B open-drain, active-low, TxRDYB output. IP I Input : General purpose input or Channel A clear to send active-low input (CTSAN). IP I Input : General purpose input or Channel B clear to send active-low input (CTSBN). IP2 I Input 2: General purpose input, or Channel B receiver external clock input (RxCB), or counter/timer external clock input. When the external clock is used by the receiver, the received data is sampled on the rising edge of the clock. IP3 I Input 3: General purpose input or Channel A tramitter external clock input (TxCA). When the external clock is used by the tramitter, the tramitted data is clocked on the falling edge of the clock. IP4 I Input 4: General purpose input or Channel A receiver external clock input (RxCA). When the external clock is used by the receiver, the received data is sampled on the rising edge of the clock. IP5 I Input 5: General purpose input or Channel B tramitter external clock input (TxCB). When the external clock is used by the tramitter, the tramitted data is clocked on the falling edge of the clock. V CC I Power Supply: +5V supply input. GND I Ground: 995 May 4

Dual asynchronous receiver/tramitter (DUART) SCN6868 DC ELECTRICAL CHARACTERISTICS, 2, 3 SYMBOL PARAMETER TEST CONDITIONS V IL V IH V IH V IH V OL V OH V OH I IL I LL I XL I XH I X2L I X2H I OC I CC Input low voltage Input high voltage (except X/CLK) 5 Input high voltage (except X/CLK) 4 Input high voltage (X/CLK) Output low voltage Output high voltage (except o.d. outputs) 5 Output high voltage (except o.d. outputs) 4 Input leakage current Data bus 3-State leakage current X/CLK low input current X/CLK high input current X2 low input current X2 high input current Open-collector output leakage current Power supply current C to +7 C version -4 C to +85 C version I OL = 2.4mA I OH = -4µA I OH = -4µA LIMITS Min Typ Max 2 2.5 4 2.4 2.9 V IN = to V CC V O =.4 to V CC V IN =, X2 grounded V IN =, X2 floated V IN = V CC, X2 grounded V IN = V CC, X2 floated V IN =, X/CLK floated V IN = V CC, X/CLK floated -4-3 - - V O =.4 to V CC -2 -.5.2 3.5-3 +3 UNIT.8 V.4 V NOTES:. Parameters are valid over specified temperature range. See Ordering information table for applicable operating temperature range and V CC supply range. 2. All voltage measurements are referenced to ground (GND). For testing, all inputs except X/CLK swing between.4v and 2.4V with a traition time of 2 maximum. For X/CLK this swing is between.4v and 4.4V. All time measurements are referenced at input voltages of.8v and 2.V as appropriate. 3. Typical values are at +25 C, typical supply voltages, and typical processing parameters. 4. T A < C 5. T A > C 5 75 µa ma ma ma ma µa µa µa ma ma 995 May 5

Dual asynchronous receiver/tramitter (DUART) SCN6868 AC CHARACTERISTICS T A = -55 C to +25 C, V CC = 5.V ± %, 2, 3, 4 SYMBOL Reset Timing (See Figure ) PARAMETER LIMITS Min Typ 3 Max t RES RESETN pulse width 2 Bus Timing (See Figures 2, 3, 4) t AS t AH t RWS t RWH t CSW t CSD 5 t DD t DF t DS t DH t DAL t DCR t DCW t DAH t DAT t CSC 6 A-A4 setup time to CSN Low A-A4 hold time from CSN Low RWN setup time to CSN High RWN holdup time to CSN High CSN High pulse width CSN or IACKN High from DTACKN Low Data valid from CSN or IACKN Low Data bus floating from CSN or IACKN High 7 Data setup time to CLK High Data hold time from CSN High DTACKN Low from read data valid DTACKN Low (read cycle) from CLK High DTACKN Low (write cycle) from CLK High DTACKN High from CSN or IACKN High DTACKN High impedance from CSN or IACKN High CSN or IACKN setup time to clock High Port Timing (See Figure 5) t PS Port input setup time to CSN Low t PH Port input hold time from CSN High t PD Port output valid from CSN High Interrupt Reset Timing (See Figure 6) t IR INTRN or OP3-OP7 when used as interrupts negated from: Read RHR (RxRDY/FFULL interrupt) Write THR (TxRDY interrupt) Reset command (delta break interrupt) Stop C/T command (counter interrupt) Read IPCR (input port change interrupt) Write IMR (clear of interrupt mask bit) Clock Timing (See Figure 7) t CLK f CLK t CTC f CTC t RX f RX t TX f TX X/CLK High or Low time X/CLK frequency CTCLK High or Low time CTCLK frequency RxC High or Low time RxC frequency (6X) (X) TxC High or Low time TxC frequency (6X) (X) Tramitter Timing (See Figure 8) t TXD TxD output delay from TxC Low t TCS Output delay from TxC Low to TxD data output Receiver Timing (See Figure 9) t RXS t RXH RxD data setup time to RxC High RxD data hold time from RxC High 9 2 2 9 8 22 22 75 25 25 25 4 3 3 3 3 3 3 3.6864 4. NOTES:. Parameters are valid over specified temp. range. See Ordering information table for applicable operating temp. and V CC supply range. 2. All voltage measurements are referenced to ground (GND). For testing, all inputs except X/CLK swing between.4v and 2.4V with a traition time of 2 maximum. For X/CLK this swing is between.4v and 4.4V. All time measurements are referenced at input voltages of.8v and 2.V as appropriate. 3. Typical values are at +25 C, typical supply voltages, and typical processing parameters. 4. Test conditio for outputs: C L = 5pF, except interrupt outputs. Test condition for interrupt outputs: C L = 5pF, R L = 2.7kΩ to V CC. 5. This specification will impose maximum 68 CPU CLK to 6MHz. Higher CPU CLK can be used if repeating bus reads are not performed. Coecutive write operatio to the same command register require at least three edges of the X clock between writes. 6. This specification imposes a lower bound on CSN and IACKN Low, guaranteeing that it will be Low for at least CLK period. This requirement is made on CSN only to iure assertion of DTACKN and not to guarantee operation of the part. 7. This spec is made only to iure that DTACKN is asserted with respect to the rising edge of the X/CLK pin as shown in the timing diagram, not to guarantee operation of the part. If setup time is violated, DTACKN may be asserted as shown, or may be asserted clock cycle later. 8. Operation to MHz is assured by design. Minimum test frequency is 2.MHz. 24 2 4. 2.. 2.. 35 5 UNIT MHz MHz MHz MHz MHz MHz 995 May 6

Dual asynchronous receiver/tramitter (DUART) SCN6868 BLOCK DIAGRAM The SCN6868 DUART coists of the following eight major sectio: data bus buffer, operation control, interrupt control, timing, communicatio Channels A and B, input port and output port. Refer to the Block Diagram. Data Bus Buffer The data bus buffer provides the interface between the external and internal data buses. It is controlled by the operation control block to allow read and write operatio to take place between the controlling CPU and the DUART. Operation Control The operation control logic receives operation commands from the CPU and generates appropriate signals to internal sectio to control device operation. It contai address decoding and read and write circuits to permit communicatio with the microprocessor via the data bus buffer. The DTACKN output is asserted during write and read cycles to indicate to the CPU that data has been latched on a write cycle, or that valid data is present on the bus on a read cycle. Interrupt Control A single active-low interrupt output (INTRN) is provided which is activated upon the occurrence of any of eight internal events. Associated with the interrupt system are the Interrupt Mask Register (IMR) and the Interrupt Status Register (ISR), the Auditory Control Register(ACR) and the Interrupt Vector Register (IVR). The IMR may be programmed to select only certain conditio to cause INTRN to be asserted. The ISR can be read by the CPU to determine all currently active interrupting conditio. When IACKN is asserted, and the DUART has an interrupt pending, the DUART responds by placing the contents of the IVR register on the data bus and asserting DTACKN. Outputs OP3-OP7 can be programmed to provide discrete interrupt outputs for the tramitter, receivers, and counter/timer. Timing Circuits The timing block coists of a crystal oscillator, a baud rate generator, a programmable 6-bit counter/timer, and four clock selectors. The crystal oscillator operates directly from a crystal connected across the X/CLK and X2 inputs. If an external clock of the appropriate frequency is available, it may be connected to X/CLK. The clock serves as the basic timing reference for the Baud Rate Generator (BRG), the counter/timer, and other internal circuits. A clock signal within the limits specified in the specificatio section of this data sheet must always be supplied to the DUART. If an external is used itead of a crystal, X should be driven using a configuration similar to the one in Figure 7. The baud rate generator operates from the oscillator or external clock input and is capable of generating 8 commonly used data communicatio baud rates ranging from 5 to 38.4k baud. The clock outputs from the BRG are at 6X the actual baud rate. The counter/timer can be used as a timer to produce a 6X clock for any other baud rate by counting down the crystal clock or an external clock. The four clock selectors allow the independent selection, for each receiver and tramitter, of any of these baud rates or external timing signal. Counter/Timer (C/T) The counter timer is a 6-bit programmable divider that operates in one of three modes: counter, timer, time out. In the timer mode it generates a square wave. In the counter mode it generates a time delay. In the time out mode it monitors the time between received characters. The C/T uses the numbers loaded into the Counter/Timer Lower Register (CTLR) and the Counter/Timer Upper Register (CTUR) as its divisor. The counter timer is controlled with six commands: Start/Stop C/T, Read/Write Counter/Timer lower register and Read/Write Counter/Timer upper register. These commands have slight differences depending on the mode of operation. Please see the detail of the commands under the CTLR/CTUR Register descriptio. Communicatio Channels A and B Each communicatio channel of the SCN6868 comprises a full-duplex asynchronous receiver/tramitter (DUART). The operating frequency for each receiver and tramitter can be selected independently from the baud rate generator, the counter timer, or from an external input. The tramitter accepts parallel data from the CPU, converts it to a serial bit stream, ierts the appropriate start, stop, and optional parity bits and outputs a composite serial stream of data on the TxD output pin. The receiver accepts serial data on the RxD pin, converts this serial input to parallel format, checks for start bit, stop bit, parity bit (if any), or break condition and sends an assembled character to the CPU. The input port pulse detection circuitry uses a 38.4kHz sampling clock derived from one of the baud rate generator taps. This results in a sampling period of slightly more than 25µs (assuming that the clock input is 3.6864MHz). The detection circuitry, in order to guarantee a true change in level has occurred, requires that two successive samples at the new logic level be observed. As a coequence, the minimum duration of the signal change is 25µs if the traition occurs coincident with the first sample pulse. The 5µs time refers to the situation in which the change of state is just missed and the first change of state is not detected until 25µs later. Input Port The inputs to this unlatched 6-bit port can be read by the CPU by performing a read operation at address H D. A High input results in a logic while a Low input results in a logic. D7 will always read as a logic and D6 will reflect the level of IACKN. The pi of this port can also serve as auxiliary inputs to certain portio of the DUART logic. Four change-of-state detectors are provided which are associated with inputs IP3, IP2, IP and IP. A High-to-Low or Low-to-High traition of these inputs, lasting longer than 25-5µs, will set the corresponding bit in the input port change register. The bits are cleared when the register is read by the CPU. Any change-of-state can also be programmed to generate an interrupt to the CPU. Output Port The 8-bit multipurpose output port can be used as a general purpose output port, in which case the outputs are the complements of the Output Port Register (OPR). OPR[n] = results in OP[n] = Low and vice versa. Bits of the OPR can be individually set and reset. A bit is set by performing a write operation at address H E with the accompanying data specifying the bits to be reset ( = set, = no change). Likewise, a bit is reset by a write at address H F with the accompanying data specifying the bits to be reset ( = reset, = no change). Outputs can be also individually assigned specific functio by appropriate programming of the Channel A mode registers (MRA, MR2A), the Channel B mode registers (MRB, MR2B), and the Output Port Configuration Register (OPCR). 995 May 7

Dual asynchronous receiver/tramitter (DUART) SCN6868 OPERATION Tramitter The SCN6868 is conditioned to tramit data when the tramitter is enabled through the command register. The SCN6868 indicates to the CPU that it is ready to accept a character by setting the TxRDY bit in the status register. This condition can be programmed to generate an interrupt request at OP6 or OP7 and INTRN. When a character is loaded into the Tramit Holding Register (THR), the above conditio are negated. Data is traferred from the holding register to tramit shift register when it is idle or has completed tramission of the previous character. The TxRDY conditio are then asserted again which mea one full character time of buffering is provided. Characters cannot be loaded into the THR while the tramitter is disabled. The tramitter converts the parallel data from the CPU to a serial bit stream on the TxD output pin. It automatically sends a start bit followed by the programmed number of data bits, an optional parity bit, and the programmed number of stop bits. The least significant bit is sent first. Following the tramission of the stop bits, if a new character is not available in the THR, the TxD output remai High and the TxEMT bit in the Status Register (SR) will be set to. Tramission resumes and the TxEMT bit is cleared when the CPU loads a new character into the THR. If the tramitter is disabled, it continues operating until the character currently being tramitted is completely sent out. The tramitter can be forced to send a continuous Low condition by issuing a send break command. The tramitter can be reset through a software command. If it is reset, operation ceases immediately and the tramitter must be enabled through the command register before resuming operation. If CTS operation is enable, the CTSN input must be Low in order for the character to be tramitted. If it goes High in the middle of a tramission, the character in the shift register is tramitted and TxDA then remai in the marking state until CTSN goes Low. The tramitter can also control the deactivation of the RTSN output. If programmed, the RTSN output will be reset one bit time after the character in the tramit shift register and tramit holding register (if any) are completely tramitted, if the tramitter has been disabled. Receiver The SCN6868 is conditioned to receive data when enabled through the command register. The receiver looks for a High-to-Low (mark-to-space) traition of the start bit on the RxD input pin. If a traition is detected, the state of the RxD pin is sampled each 6X clock for 7-/2 clocks (6X clock mode) or at the next rising edge of the bit time clock (X clock mode). If RxD is sampled High, the start bit is invalid and the search for a valid start bit begi again. If RxD is still Low, a valid start bit is assumed and the receiver continues to sample the input at one bit time intervals at the theoretical center of the bit, until the proper number of data bits and parity bit (if any) have been assembled, and one stop bit has been detected. The least significant bit is received first. The data is then traferred to the Receive Holding Register (RHR) and the RxRDY bit in the SR is set to a. This condition can be programmed to generate an interrupt at OP4 or OP5 and INTRN. If the character length is less than 8 bits, the most significant unused bits in the RHR are set to zero. After the stop 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 (framing error) and RxD remai Low for one half of the bit period after the stop bit was sampled, then the receiver operates as if a new start bit traition had been detected at that point (one-half bit time after the stop bit was sampled). The parity error, framing error, and overrun error (if any) are strobed into the SR at the received character boundary, before the RxRDY status bit is set. If a break condition is detected (RxD is Low for the entire character including the stop bit), a character coisting of all zeros will be loaded into the RHR and the received break bit in the SR is set to. The RxD input must return to high for two (2) clock edges of the X crystal clock for the receiver to recognize the end of the break condition and begin the search for a start bit. This will usually require a high time of one X clock period or 3 X edges since the clock of the controller is not synchronous to the X clock. Receiver FIFO The RHR coists of a First-In-First-Out (FIFO) stack with a capacity of three characters. Data is loaded from the receive shift register into the topmost empty position of the FIFO. The RxRDY bit in the status register is set whenever one or more characters are available to be read, and a FFULL status bit is set if all three stack positio are filled with data. Either of these bits can be selected to cause an interrupt. A read of the RHR outputs the data at the top of the FIFO. After the read cycle, the data FIFO and its associated status bits (see below) are popped thus emptying a FIFO position for new data. Receiver Status Bits In addition to the data word, three status bits (parity error, framing error, and received break) are also appended to each data character in the FIFO (overrun is not). Status can be provided in two ways, as programmed by the error mode control bit in the mode register. In the character mode, status is provided on a character-by-character basis; the status applies only to the character at the top of the FIFO. In the block mode, the status provided in the SR for these three bits is the logical-or of the status for all characters coming to the top of the FIFO since the last reset error command was issued. In either mode reading the SR does not affect the FIFO. The FIFO is popped only when the RHR is read. Therefore the status register should be read prior to reading the FIFO. If the FIFO is full when a new character is received, that character is held in the receive shift register until a FIFO position is available. If an additional character is received while this state exits, the contents of the FIFO are not affected; the character previously in the shift register is lost and the overrun error status bit (SR[4]) will be set-upon receipt of the start bit of the new (overrunning) character). The receiver can control the deactivation of RTS. If programmed to operate in this mode, the RTSN output will be negated when a valid start bit was received and the FIFO is full. When a FIFO position becomes available, the RTSN output will be re-asserted automatically. This feature can be used to prevent an overrun, in the receiver, by connecting the RTSN output to the CTSN input of the tramitting device. Receiver Reset and Disable Receiver disable stops the receiver immediately data being assembled if the receiver shift register is lost. Data and status in the FIFO is preserved and may be read. A re-enable of the receiver after a disable will cause the receiver to begin assembling characters at the next start bit detected. A receiver reset will discard the present shift register data, reset the receiver ready bit (RxRDY), clear the status of the byte at the top of the FIFO and re-align the FIFO read/write pointers. This has the appearance of clearing or 995 May 8

Dual asynchronous receiver/tramitter (DUART) SCN6868 flushing the receiver FIFO. In fact, the FIFO is NEVER cleared! The data in the FIFO remai valid until overwritten by another received character. Because of this, erroneous reading or extra reads of the receiver FIFO will miss-align the FIFO pointers and result in the reading of previously read data. A receiver reset will re-align the pointers. Multidrop Mode The DUART is equipped with a wake up mode for multidrop applicatio. This mode is selected by programming bits MRA[4:3] or MRB[4:3] to for Channels A and B, respectively. In this mode of operation, a master station tramits an address character followed by data characters for the addressed slave station. The slave statio, with receivers that are normally disabled, examine the received data stream and wake up the CPU (by setting RxRDY) only upon receipt of an address character. The CPU compares the received address to its station address and enables the receiver if it wishes to receive the subsequent data characters. Upon receipt of another address character, the CPU may disable the receiver to initiate the process again. A tramitted character coists of a start bit, the programmed number of data bits, and Address/Data (A/D) bit, and the programmed number of stop bits. The polarity of the tramitted A/D bit is selected by the CPU by programming bit MRA[2]/MRB[2]. MRA[2]/MRB[2] = tramits a zero in the A/D bit position, which identifies the corresponding data bits as data while MRA[2]/MRB[2] = tramits a one in the A/D bit position, which identifies the corresponding data bits as an address. The CPU should program the mode register prior to loading the corresponding data bits into the THR. In this mode, the receiver continuously looks at the received data stream, whether it is enabled or disabled. If disabled, it sets the RxRDY status bit and loads the character into the RHR FIFO if the received A/D bit is a one (address tag), but discards the received character if the received A/D bit is a zero (data tag). If enabled, all Table. SCN6868 Register Addressing received characters are traferred to the CPU via the RHR. In either case, the data bits are loaded into the data FIFO while the A/D bit is loaded into the status FIFO position normally used for parity error (SRA[5] or SRB[5]). Framing error, overrun error, and break detect operate normally whether or not the receive is enabled. PROGRAMMING The operation of the DUART is programmed by writing control words into the appropriate registers. Operational feedback is provided via status registers which can be read by the CPU. The addressing of the registers is described in Table. The contents of certain control registers are initialized to zero on RESET. Care should be exercised if the contents of a register are changed during operation, since certain changes may cause operational problems. For example, changing the number of bits per character while the tramitter is active may cause the tramission of an incorrect character. In general, the contents of the MR, the CSR, and the OPCR should only be changed while the receiver(s) and tramitter(s) are not enabled, and certain changes to the ACR should only be made while the C/T is stopped. Mode registers and 2 of each channel are accessed via independent auxiliary pointers. The pointer is set to MRx by RESET or by issuing a reset pointer command via the corresponding command register. Any read or write of the mode register while the pointer is at MRx, switches the pointer to MR2x. The pointer then remai at MR2x, so that subsequent accesses are always to MR2x unless the pointer is reset to MRx as described above. Mode, command, clock select, and status registers are duplicated for each channel to provide total independent operation and control. Refer to Table 2 for register bit descriptio. The reserved registers at addresses H 2 and H OA should never be read during normal operation since they are reserved for internal diagnostics. A4 A3 A2 A READ (R/WN = ) WRITE (R/WN = ) Mode Register A (MRA, MR2A) Status Register A (SRA) BRG Test Rx Holding Register A (RHRA) Input Port Change Register (IPCR) Interrupt Status Register (ISR) Counter/Timer Upper (CTU) Counter/Timer Lower (CTL) Mode Register B (MRB, MR2B) Status Register B (SRB) X/6X Test Rx Holding Register B (RHRB) Interrupt Vector Register (IVR) Input Port Start Counter Command Stop Counter Command Mode Register A (MRA, MR2A) Clock Select Register A (CSRA) Command Register A (CRA) Tx Holding Register A (THRA) Aux. Control Register (ACR) Interrupt Mask Register (IMR) C/T Upper Register (CRUR) C/T Lower Register (CTLR) Mode Register B (MRB, MR2B) Clock Select Register B (CSRB) Command Register B (CRB) Tx Holding Register B (THRB) Interrupt Vector Register (IVR) Output Port Conf. Register (OPCR) Set Output Port Bits Command Reset Output Port Bits Command * See Table 6 for BRG Test frequencies in this data sheet, and Extended baud rates for SCN268, SCN6868, SCC269, SCC2692, SCC6868 and SCC2698B Philips Semiconductors ICs for Data Communicatio, IC-9, 994. 995 May 9

Dual asynchronous receiver/tramitter (DUART) SCN6868 Table 2. MRA MRB Register Bit Formats BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT BIT RxRTS CONTROL = No = Yes RxINT SELECT = RxRDY = FFULL ERROR MODE* = Char = Block PARITY MODE = With Parity = Force Parity = No Parity = Multidrop Mode PARITY TYPE = Even = Odd NOTE: *In block error mode, block error conditio must be cleared by using the error reset command (command 4x) or a receiver reset. BITS PER CHARACTER = 5 = 6 = 7 = 8 NOTE: MR2A MR2B BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT BIT CHANNEL MODE = Normal = Auto-Echo = Local loop = Remote loop *Add.5 to values shown for - 7 if channel is programmed for 5 bits/char. CSRA CSRB TxRTS CONTROL = No = Yes CTS ENABLE Tx = No = Yes STOP BIT LENGTH* =.563 4 =.83 8 =.563 C =.83 =.625 5 =.875 9 =.625 D =.875 2 =.688 6 =.938 A =.688 E =.938 3 =.75 7 =. B =.75 F = 2. BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT BIT RECEIVER CLOCK SELECT See Text NOTE: *In block error mode, block error conditio must be cleared by using the error reset command (command 4x) or a receiver reset. TRANSMITTER CLOCK SELECT See Text NOTE: CRA CRB BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT BIT Not used should be MISCELLANEOUS COMMANDS DISABLE Tx ENABLE Tx DISABLE Rx ENABLE Rx See Text = No = Yes = No = Yes *Access to the upper four bits of the command register should be separated by three (3) edges of the X clock. A disabled tramitter cannot be loaded. NOTE: SRA SRB = No = Yes = No = Yes BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT BIT RECEIVED BREAK* = No = Yes FRAMING ERROR* = No = Yes PARITY ERROR* = No = Yes OVERRUN ERROR = No = Yes TxEMT TxRDY FFULL RxRDY = No = Yes = No = Yes = No = Yes = No = Yes * 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:). 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, block error conditio must be cleared by using the error reset command (command 4x) or a receiver reset. OPCR BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT BIT OP7 OP6 OP5 OP4 OP3 OP2 = OPR[7] = TxRDYB = OPR[6] = TxRDYA = OPR[5] = RxRDY/ FFULLB = OPR[4] = RxRDY/ FFULLA = OPR[3] = C/T OUTPUT = TxCB(x) = RxCB(x) = OPR[2] = TxCA(6x) = TxCA(x) = RxCA(x) ACR BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT BIT BRG SET SELECT = set = set 2 COUNTER/TIMER MODE AND SOURCE See Table 4 IP3 INT = Off = On IP2 INT = Off = On IP INT = Off = On IP INT = Off = On 995 May

Dual asynchronous receiver/tramitter (DUART) SCN6868 Table 2. IPCR ISR IMR Register Bit Formats (Continued) BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT BIT IP3 = No = Yes IP2 = No = Yes IP = No = Yes IP = No = Yes IP3 IP2 IP IP = Low = High = Low = High = Low = High = Low = High BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT BIT INPUT PORT CHANGE = No = Yes BREAK B = No = Yes RxRDY/ FFULLB = No = Yes TxRDYB = No = Yes COUNTER READY = No = Yes BREAK A = No = Yes RxRDY/ FFULLA = No = Yes TxRDYA = No = Yes BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT BIT IN. PORT CHANGE INT = Off = On BREAK B INT = Off = On RxRDY/ FFULLB INT = Off = On TxRDYB INT = Off = On COUNTER READY INT = Off = On BREAK A INT = Off = On RxRDY/ FFULLA INT = Off = On TxRDYA INT = Off = On BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT BIT CTUR C/T[5] C/T[4] C/T[3] C/T[2] C/T[] C/T[] C/T[9] C/T[8] BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT BIT CTLR C/T[7] C/T[6] C/T[5] C/T[4] C/T[3] C/T[2] C/T[] C/T[] BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT BIT IVR IVR[7] IVR[6] IVR[5] IVR[4] IVR[3] IVR[2] IVR[] IVR[] MRA Channel A Mode Register MRA is accessed when the Channel A MR pointer points to MR. The pointer is set to MR by RESET or by a set pointer command applied via CRA. After reading or writing MRA, the pointer will point to MR2A. MRA[7] Channel A Receiver Request-to-Send Control This bit controls the deactivation of the RTSAN output (OP) by the receiver. This output is normally asserted by setting OPR[] and negated by resetting OPR[]. MRA[7] = causes RTSAN to be negated upon receipt of a valid start bit if the Channel A FIFO is full. However, OPR[] is not reset and RTSAN will be asserted again when an empty FIFO position is available. This feature can be used for flow control to prevent overrun in the receiver by using the RTSAN output signal to control the CTSN input of the tramitting device. MRA[6] Channel A Receiver Interrupt Select This bit selects either the Channel A receiver ready status (RxRDY) or the Channel A FIFO full status (FFULL) to be used for CPU interrupts. It also causes the selected bit to be output on OP4 if it is programmed as an interrupt output via the OPCR. MRA[5] Channel A Error Mode Select This bit select the operating mode of the three FIFOed status bits (FE, PE, received break) for Channel A. In the character mode, status is provided on a character-by-character basis; the status applies only to the character at the top of the FIFO. In the block mode, the status provided in the SR for these bits is the accumulation (logical-or) of the status for all characters coming to the top of the FIFO since the last reset error command for Channel A was issued. MRA[4:3 Channel A Parity Mode Select If with parity or force parity is selected a parity bit is added to the tramitted character and the receiver performs a parity check on incoming data MRA[4:3] = selects Channel A to operate in the special multidrop mode described in the Operation section. MRA[2] Channel A Parity Type Select This bit selects the parity type (odd or even) if the with parity mode is programmed by MRA[4:3], and the polarity of the forced parity bit if the force parity mode is programmed. It has no effect if the no parity mode is programmed. In the special multidrop mode it selects the polarity of the A/D bit. MRA[:] Channel A Bits Per Character Select This field selects the number of data bits per character to be tramitted and received. The character length does not include the start, parity, and stop bits. MR2A Channel A Mode Register 2 MR2A is accessed when the Channel A MR pointer points to MR2, which occurs after any access to MRA. Accesses to MR2A do not change the pointer. MR2A[7:6] Channel A Mode Select Each channel of the DUART can operate in one of four modes. MR2A[7:6] = is the normal mode, with the tramitter and receiver operating independently. MR2A[7:6] = places the 995 May

Dual asynchronous receiver/tramitter (DUART) SCN6868 channel in the automatic echo mode, which automatically re-tramits the received data. The following conditio are true while in automatic echo mode:. Received data is re-clocked and re-tramitted on the TxDA output. 2. The receive clock is used for the tramitter. 3. The receiver must be enabled, but the tramitter need not be enabled. 4. The Channel A TxRDY and TxEMT status bits are inactive. 5. The received parity is checked, but is not regenerated for tramission, i.e. tramitted parity bit is as received. 6. Character framing is checked, but the stop bits are retramitted 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 tramitter link is disabled. Two diagnostic modes can also be configured. MR2A[7:6] = selects local loopback mode. In this mode:. The tramitter output is internally connected to the receiver input. 2. The tramit clock is used for the receiver. 3. The TxDA output is held High. 4. The RxDA input is ignored. 5. The tramitter must be enabled, but the receiver need not be enabled. 6. CPU to tramitter and receiver communicatio continue normally. The second diagnostic mode is the remote loopback mode, selected by MR2A[7:6] =. In this mode:. Received data is re-clocked and re-tramitted on the TxDA output. 2. The receive clock is used for the tramitter. 3. Received data is not sent to the local CPU, and the error status conditio are inactive. 4. The received parity is not checked and is not regenerated for tramission, i.e., tramitted parity is as received. 5. The receiver must be enabled. 6. Character framing is not checked, and the stop bits are retramitted as received. 7. A received break is echoed as received until the next valid start bit is detected. The user must exercise care when switching into and out of the various modes. The selected mode will be activated immediately upon mode selection, even if this occurs in the middle of a received or tramitted character. Likewise, if a mode is deselected the device will switch out of the mode immediately. An exception to this is switching out of autoecho or remote loopback modes: if the de-selection occurs just after the receiver has sampled the stop bit (indicated in autoecho by assertion of RxRDY), and the tramitter is enabled, the tramitter will remain in autoecho mode until the entire stop has been re-tramitted. MR2A[5] Channel A Tramitter Request-to-Send Control CAUTION: When the tramitter 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 tramitter has finished the tramission (i.e., end of block). This bit allows deactivation of the RTSN output by the tramitter. This output is manually asserted and negated by the appropriate commands issued via the command register. MR2[5] set to caused the RTSN to be reset automatically one bit time after the character(s) in the tramit shift register and in the THR (if any) are completely tramitted (including the programmed number of stop bits) if a previously issued tramitter disable is pending. This feature can be used to automatically terminate the tramission as follows:. Program the auto-reset mode: MR2[5]= 2. Enable tramitter, 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 tramitter. (If the tramitter is underrun, a special case exists. See note below.) 6. The last character will be tramitted and the RTSN will be reset one bit time after the last stop bit is sent. NOTE: The tramitter is in an underrun condition when both the TxRDY and the TxEMT bits are set. This condition also exists immediately after the tramitter is enabled from the disabled or reset state. When using the above procedure with the tramitter in the underrun condition, the issuing of the tramitter disable must be delayed from the loading of a single, or last, character until the TxRDY becomes active again after the character is loaded. MR2A[4] Channel A Clear-to-Send Control If this bit is, CTSAN has no effect on the tramitter. If this bit is a, the tramitter checks the state of CTSAN (IP) each time it is ready to send a character. If IP is asserted (Low), the character is tramitted. If it is negated (High), the TxDA output remai in the marking state and the tramission is delayed until CTSAN goes low. Changes in CTSAN while a character is being tramitted do not affect the tramission of that character. MR2A[3:] Channel A Stop Bit Length Select This field programs the length of the stop bit appended to the tramitted character. Stop bit lengths of 9/6 to and -9/6 to 2 bits, in increments of /6 bit, can be programmed for character lengths of 6, 7, and 8 bits. For a character lengths of 5 bits, -/6 to 2 stop bits can be programmed in increments of /6 bit. 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 is enabled), in all cases. If an external X clock is used for the tramitter, MR2A[3] = selects one stop bit and MR2A[3] = selects two stop bits to be tramitted. MRB Channel B Mode Register MRB is accessed when the Channel B MR pointer points to MR. The pointer is set to MR by RESET or by a set pointer command applied via CRB. After reading or writing MRB, the pointer will point to MR2B. The bit definitio for this register are identical to MRA, except that all control actio apply to the Channel B receiver and tramitter and the corresponding inputs and outputs. MR2B Channel B Mode Register 2 MR2B is accessed when the Channel B MR pointer points to MR2, which occurs after any access to MRB. Accesses to MR2B do not change the pointer. 995 May 2

Dual asynchronous receiver/tramitter (DUART) SCN6868 The bit definitio for mode register are identical to the bit definitio for MR2A, except that all control actio apply to the Channel B receiver and tramitter and the corresponding inputs and outputs. CSRA Channel A Clock Select Register CSRA[7:4] Channel A Receiver Clock Select This field selects the baud rate clock for the Channel A receiver. The field definition is shown in Table 3. CSRA[3:] Channel A Tramitter Clock Select This field selects the baud rate clock for the Channel A tramitter. The field definition is as shown in Table 3, except as follows: CSRA[3:] ACR[7] = Baud Rate ACR[7] = IP3-6X IP3-X IP3-6X IP3-X The tramitter and receiver clock is always a 6X clock except for selection. Table 3. Baud Rate Clock = 3.6864 MHz CSRA[7:4] ACR[7] = Baud Rate ACR[7] = See Table 6. also. 5 34.5 2 3 6,2,5 2,4 4,8 7,2 9,6 38.4k Timer IP4-6X IP4-X 75 34.5 5 3 6,2 2, 2,4 4,8,8 9,6 9.2k Timer IP4-6X IP4-X CSRB Channel B Clock Select Register CSRB[7:4] Channel B Receiver Clock Select This field selects the baud rate clock for the Channel B receiver. The field definition is as shown in Table 3, except as follows: CSRB[7:4] ACR[7] = Baud Rate ACR[7] = IP2-6X IP2-X IP2-6X IP2-X The receiver clock is always a 6X clock except for CSRB[7:4] =. CSRB[3:] Channel B Tramitter Clock Select This field selects the baud rate clock for the Channel B tramitter. The field definition is as shown in Table 3, except as follows: CSRB[3:] ACR[7] = Baud Rate ACR[7] = IP5-6X IP5-X IP5-6X IP5-X The tramitter clock is always a 6X clock except for CSRB[3:] =. CRA Channel A Command Register CRA is a register used to supply commands to Channel A. Multiple commands can be specified in a single write to CRA as long as the commands are non-conflicting, e.g., the enable tramitter and reset tramitter commands cannot be specified in a single command word. CRA[7] Not Used Should be set to zero for upward compatibility with newer parts. CRA[6:4] Miscellaneous Commands The encoded value of this field may be used to specify a single command as follows: CRA[6:4] COMMAND NOTE: Access to the upper four bits of the command register should be separated by three (3) edges of the X clock. No command. Reset MR pointer. Causes the Channel A MR pointer to point to MR. Reset receiver. Resets the Channel A receiver as if a hardware reset had been applied. The receiver is disabled and the FIFO is flushed. Reset tramitter. Resets the Channel A tramitter as if a hardware reset had been applied. Reset error status. Clears the Channel A Received Break, Parity Error, and Overrun Error bits in the status register (SRA[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. Reset Channel A break change interrupt. Causes the Channel A break detect change bit in the interrupt status register (ISR[2]) to be cleared to zero. Start break. Forces the TxDA output Low (spacing). If the tramitter is empty the start of the break condition will be delayed up to two bit times. If the tramitter is active the break begi when tramission of the character is completed. If a character is in the THR, the start of the break will be delayed until that character, or any other loaded subsequently are tramitted. The tramitter must be enabled for this command to be accepted. Stop break. The TxDA line will go High (marking) within two bit times. TxDA will remain High for one bit time before the next character, if any, is tramitted. CRA[3] Disable Channel A Tramitter This command terminates tramitter operation and reset the TxDRY and TxEMT status bits. However, if a character is being tramitted or if a character is in the THR when the tramitter is disabled, the tramission of the character(s) is completed before assuming the inactive state. CRA[2] Enable Channel A Tramitter Enables operation of the Channel A tramitter. The TxRDY status bit will be asserted. CRA[] Disable Channel A 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 multidrop mode is programmed, the receiver operates even if it is disabled. See Operation section. CRA[] Enable Channel A Receiver Enables operation of the Channel A receiver. If not in the special wake up mode, this also forces the receiver into the search for start-bit state. CRB Channel B Command Register CRB is a register used to supply commands to Channel B. Multiple commands can be specified in a single write to CRB as long as the commands are non-conflicting, e.g., the enable tramitter and reset tramitter commands cannot be specified in a single command word. The bit definitio for this register are identical to the bit definitio for CRA, except that all control actio apply to the Channel B receiver and tramitter and the corresponding inputs and outputs., 995 May 3