The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine   
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

full-duplex multi-protocol channels, each capable kbits/second (230.4


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet



CL-CD2231
full-duplex multi-protocol channels, each capable kbits/second (230.4 kbps async modes) 35-MHz Multi-protocol support: SLIP (serial-line interface protocol), MNP® async, async-HDLC (high-level data link control), HDLC/SDLC (synchronous data link control) both channels (does support SDLC multi-drop applications)
Intelligent Two-Channel Communications Controller
OVERVIEW
CL-CD2231 two-channel multi-protocol synchronous/asynchronous communications controller specifically designed reduce host-system processing overhead increase efficiency wide variety communications applications. CL-CD2231 packaged 100-pin PQFP, offers eight clock/modem pins channel. device fully independent serial channels that support asynchronous, asynchronous-HDLC (PPP), synchronous HDLC/SDLC, SLIP, MNP® protocols serial data rates kbps, (230.4 kbps async modes) when clocked 35MHz source. device based proprietary on-chip RISC processor that performs time-critical, low-level
(Point-to-Point Protocol) Features
Supports data link level RFC-1661 Supports dual async control character maps control characters) RFC-1662 Compatible with 3309/4335 Addendum (Async-HDLC) Automatic insertion deletion control/ escape characters complements Automatic generation detection 16-bit (frame check sequence)
V.42 Features
AppleTalk® Remote Access Protocol 1.0/2.0
SLIP Features
Supports data link level RFC-1055
(cont.)
(cont.)
Functional Block Diagram
SERIAL INTERFACE CHANNELS MODEM RECEIVE/CRC TRANSMIT/CRC TIMER/BRG/DPLL MODEM RECEIVE/CRC TRANSMIT/CRC TIMER/BRG/DPLL
HOST INTERFACE
HOST INTERFACE LOGIC
ON-CHIP CONTROLLER INTERFACE LOGIC
FIRMWARE
PROPRIETARY RISC PROCESSOR
Version
World Wide Web: http://www.basiscomm.com
September 1996
CL-CD2231
Intelligent Communications Controller
FEATURES (cont.)
HDLC/SDLC (Non-Multidrop) Features
Four 8-bit 16-bit frame address matching generation validation Programmable number leading-pad characters flags Supports shared flags receive frames Dual Configuration register sets reduce realtime constraints Append Block mode Chain/unchain long frames into multiple buffers 32-bit address 16-bit data transfer Programmable buffers following receive character exception
Asynchronous Features
User-programmable automatic flow control modes
In-band XON/XOFF both receive transmit Out-of-band (hardware flow control) RTS/CTS DTR/DSR Line-break detection generation Special-character character-range recognition Special-character transmission Transmit delay
Other Features
Improved interrupt schemes
Vectored interrupts channel allow direct jump into proper service routines Good Datainterrupts eliminate need status checks
8-bit character plus optional parity Enhanced features UNIX® environment
Character expansion transmit (for example, sending <LF> will expanded <CR> <LF> automatically) Programmable translation receiving character with error different pattern (for example, character with parity error translated into FFh, 00h, character system side) Flow-control transparency LNext
Programmable timer closely coupled with character reception, especially asynchronous receive operation Automatic baud rate detection single carriage return
Controller Features
interrupt selectable channel direction
Easily cascadable multiple-device configurations 16-byte receive transmit FIFOs Local Remote Maintenance Loopback modes independent bit-rate generators channel transmit receive On-chip (nonreturn-to-zero), NRZI (nonreturn-to-zero inverted), Manchester data encoding decoding DPLL (digital phase locked loop) each receiver independent timers channel Byte-endian-orientation selection allows easy interface 80X86 680X0 processors Eight clock/modem control signals channel addition RxD) CL-CD2231 Compatible with CL-CD24XX family communication controllers
OVERVIEW (cont.)
tasks that otherwise performed host system. CL-CD2231 boosts system efficiency with onchip DMA, on-chip FIFOs, intelligent vectored interrupts, intelligent protocol processing. onchip controller provides `fire-and-forget' transmit support host need only inform CL-CD2231 location packet sent. Similarly, receive, CL-CD2231 automatically receives complete packet with host intervention assistance required. controller also `Append mode' asynchronous applications. controller uses dual-buffer scheme that easily implements simple complex buffer schemes. Each channel direction active buffers. CL-CD2231 programmed interrupt host completion frame buffer. applications where buffers small, fixed size, dual-buffer scheme allows large frames divided into multiple buffers. September 1996
DATA BOOK v3.0
CL-CD2231
Intelligent Communications Controller
OVERVIEW (cont.)
applications where interface desired, device operated interruptdriven polled device. This choice available individually each channel each direction. example, channel programmed transmit interrupt-driven receive. either case, 16-byte FIFOs each channel each direction reduce latency time requirements, making both software hardware designs less time-critical. Threshold levels FIFOs userprogrammable. Efficient vectored interrupts another CL-CD2231 helps system efficiency. Separate interrupts generated transmit, receive, modem-signal change with unique user-defined vectors each type channel. This allows very flexible interfacing fast, efficient interrupt coding.
Benefits
Substantially reduced host overhead means more channels faster overall throughput. time-critical host software enables faster easier software development.
Features
Number serial channels Interrupt on-chip mechanism FIFO depth (per channel direction) Data size (bits) ASYNC SDLC/HDLC X.21, bisync Async-HDLC, SLIP MNP® Serial data rate (kbits/second) Number modem leads (per channel, including TxD) On-chip timers UNIX® character processing In-band flow control Special character recognition Package System interface compatibility
CL-CD2231
100-pin PQFP CL-CD2401/CD2431
CL-CD2401
134.4c 100-pin PQFP
CL-CD2431
(Revision (Revision 134.4c (Revision 100-pin PQFP
CL-CD2431/CD2231 CL-CD2401/CD2231
indicates identical operation register setting. indicates available production revision (Revision clock frequency required obtain maximum bit-rates. kbps sync mode, 2304 kbps async modes. Applies Revision later CL-CD2231/CD2431, Revision later CL-CD2401. UNIX character processing available ASYNC only.
September 1996
DATA BOOK v3.0
CL-CD2231
Intelligent Communications Controller
Before beginning design with this device, please contact Basis Communications latest errata information. back cover this document sales office locations phone numbers.
TABLE CONTENTS
REVISION HISTORY. CONVENTIONS INFORMATION
Diagram Functions Descriptions. 3.2.4.1 Programming PILR Registers.38 3.2.4.2 Systems with Interrupt Controllers 3.2.5 Multi-CL-CD2231 Systems 3.2.5.1 Keep-and-Pass Logic 3.2.5.2 Fair Share Scheme.39 FIFO Timer Operations 3.3.1 Receive FIFO Operation.39 3.3.2 Transmit FIFO Operation 3.3.3 Timers.39 3.3.4 Timers Synchronous Protocols.39 3.3.5 Timers Asynchronous Protocols 3.3.6 Transmit Timer Operation 3.4.1 Acquisition Cycle 3.4.2 Data Transfer 3.4.3 Error Handling 3.4.4 Buffers Chaining 3.4.5 Transmit Transfer 3.4.6 Synchronous Transmitter Examples 3.4.7 Receive Transfer 3.4.8 Transmit Transfer 3.4.8.1 Interrupts Transmit Buffers 3.4.8.2 Chained Buffers.50 3.4.8.3 Append Mode 3.4.8.4 Transmit Errors 3.4.9 Receive Buffer Interrupts 3.4.9.1 Receive Timeout Asynchronous Mode 3.4.9.2 Receive Errors Rate Generation Data Encoding.53 3.5.1 DPLL Operation Hardware Configurations 3.6.1 Interface 32-Bit Data Bus.63 3.6.2 Connections CL-CD2231.63 3.6.3 CL-CD2231 Interface
REGISTER TABLE.
Memory Map. 2.1.1 Global Registers 2.1.2 Option Registers. 2.1.3 Rate Clock Option Registers 2.1.4 Channel Command Status Registers 2.1.5 Interrupt Registers 2.1.5.1 Receive Interrupt Registers. 2.1.5.2 Transmit Interrupt Registers 2.1.5.3 Modem Interrupt Registers. 2.1.6 Registers 2.1.6.1 Receive Registers 2.1.6.2 Transmit Registers. 2.1.7 Timer Registers Register Definitions. 2.2.1 Global Registers 2.2.2 Option Registers. 2.2.3 Rate Clock Option Registers 2.2.4 Channel Command Status Registers 2.2.5 Interrupt Registers 2.2.5.1 Receive Interrupt Registers. 2.2.5.2 Transmit Interrupt Registers 2.2.5.3 Modem/Timer Interrupt Registers. 2.2.6 Registers 2.2.6.1 Receive Registers 2.2.6.2 Transmit Registers. 2.2.7 Timer Registers
FUNCTIONAL DESCRIPTION
Host Interface. 3.1.1 Host Read Write Cycles 3.1.2 Byte Word Transfers. Interrupts. 3.2.1 Contexts Channels 3.2.2 Interrupt Registers 3.2.3 Groups Types. 3.2.4 Hardware Signals IACK Cycles
PROTOCOL PROCESSING.
HDLC Processing 4.1.1 Frame Check Sequence 4.1.2 HDLC Transmit Mode.65 4.1.3 HDLC Receive Mode (Point-to-Point Protocol) Mode.66 4.2.1 Character Format.66 4.2.2 Frame Format 4.2.3 Frame Check Sequence
DATA BOOK v3.0
TABLE CONTENTS
September 1996
CL-CD2231
Intelligent Communications Controller
4.2.4 Transparency 4.2.4.1 Mapped Characters from 00-1F 4.2.4.2 Mapped Characters from Above. 4.2.4.3 Characters Transmitted Data 4.2.4.4 Mapped Characters Field 4.2.5 Definition Valid Frame 4.2.6 Transmitter 4.2.6.1 Fixed Transmitter Operations. 4.2.6.2 Transmitter Options 4.2.6.3 Transmission Abort. 4.2.6.4 Transmit Framing Error 4.2.7 Receiver. 4.2.7.1 Fixed Receiver Operations 4.2.7.2 Receiver Options SLIP Processing 4.3.1 Framing. 4.3.2 Debugging Aids MNP®4/ARAP Protocol Processing. 4.4.1 Framing. 4.4.2 MNP®4/ARAP (Frame Check Sequence) Calculation. Async Processing 4.5.1 Transmitter In-Band Flow Control 4.5.1.1 Receiver In-Band Flow Control. 4.5.1.2 Automatic Receive In-Band Flow Control. 4.5.2 Out-of-Band Flow Control 4.5.3 Line Break Detection Generation 4.5.4 Special Character Transmission 4.5.5 Special Character Recognition Special Character Range 4.5.6 Special Character Range 4.5.7 UNIX® Support Features Non-8-Bit Data Transfers.
5.6.1 5.6.2
PROGRAMMING EXAMPLES.
Global Initialization. Async Interrupt Setup Example HDLC Channel Setup Example Receive Interrupt Service Routine Transmit Interrupt Service Routine Support Files. Basis Communications Server Access.
DETAILED REGISTER DESCRIPTIONS
Global Registers 6.1.1 Global Firmware Revision Code Register (GFRCR) 6.1.2 Channel Access Register (CAR)
Option Registers 6.2.1 Channel Mode Register (CMR) 6.2.2 Channel Option Register (COR1) 6.2.2.1 COR1 HDLC Mode 6.2.2.2 COR1 Asynchronous Mode 6.2.3 Channel Option Register (COR2) 6.2.3.1 COR2 HDLC Mode 6.2.3.2 Asynchronous Async-HDLC Mode 6.2.3.3 COR2 MNP4/SLIP Mode 6.2.4 Channel Option Register (COR3) Async-HDLC/PPP Mode.94 6.2.4.1 MNP®4 Mode 6.2.4.2 HDLC Mode.96 6.2.4.3 SLIP Mode.97 6.2.4.4 Asynchronous Mode.98 6.2.5 Channel Option Register (COR4) 6.2.6 Channel Option Register (COR5) .100 6.2.7 Channel Option Register (COR6) Async Mode Only .101 6.2.8 Channel Option Register (COR7) Async Mode Only .102 6.2.9 Special Character Registers Async Modes Only.103 6.2.9.1 Special Character Register (SCHR1) .103 6.2.9.2 Special Character Register (SCHR2) .103 6.2.9.3 Special Character Register (SCHR3) .104 6.2.9.4 Special Character Register (SCHR4) .104 6.2.10 Special Character Range Async Mode Only .105 6.2.10.1 Special Character Range (SCRl) .105 6.2.10.2 Special Character Range high (SCRh) .105 6.2.11 LNext Character (LNXT) Async Mode Only .106 6.2.12 Receive Frame Address Registers HDLC Sync Mode Only .107 6.2.12.1 Receive Frame Address Register (RFAR1) .107 6.2.12.2 Receive Frame Address Register (RFAR2) .107 6.2.12.3 Receive Frame Address Register (RFAR3) .107 6.2.12.4 Receive Frame Address Register (RFAR4) .107 6.2.13 Polynomial Select Register (CPSR).108 6.2.14 Transmit Special Mapped Characters Mode only .109 6.2.14.1 Transmit Special Mapped Character (TSPMAP1) .109 6.2.14.2 Transmit Special Mapped Character (TSPMAP2) .109
September 1996
DATA BOOK v3.0
TABLE CONTENTS
CL-CD2231
Intelligent Communications Controller
6.2.14.3 Transmit Special Mapped Character (TSPMAP3) 6.2.15 Transmit Async Control Character Maps Mode Only 6.2.15.1 Transmit Async Control Character (TXACCM0) 6.2.15.2 Transmit Async Control Character (TXACCM1) 6.2.15.3 Transmit Async Control Character (TXACCM2) 6.2.15.4 Transmit Async Control Character (TXACCM3) 6.2.16 Receive Async Control Character Maps Mode Only 6.2.16.1 Receive Async Control Character (RXACCM0) 6.2.16.2 Receive Async Control Character (RXACCM1) 6.2.16.3 Receive Async Control Character (RXACCM2) 6.2.16.4 Receive Async Control Character (RXACCM3) Rate Clock Option Registers 6.3.1 Receive Baud Rate Generator Registers 6.3.1.1 Receive Baud Rate Period Register (RBPR) 6.3.1.2 Receive Clock Option Register (RCOR). 6.3.2 Transmit Baud Rate Generator Registers. 6.3.2.1 Transmit Baud Rate Period Register (TBPR) 6.3.2.2 Transmit Clock Option Register (TCOR) Channel Command Status Registers 6.4.1 Channel Command Register (CCR) 6.4.1.1 Mode 6.4.1.2 Mode 6.4.2 Special Transmit Command Register (STCR) 6.4.2.1 Async-HDLC/PPP Mode 6.4.2.2 SLIP/MNP®4 Mode 6.4.2.3 Async HDLC Modes 6.4.3 Channel Status Register (CSR). 6.4.3.1 HDLC Mode 6.4.3.2 Async Mode 6.4.3.3 Async-HDLC/PPP Mode 6.4.3.4 SLIP/MNP®4 Mode 6.4.4 Modem Signal Value Registers (MSVR). 6.4.4.1 Modem Signal Value Register (MSVR-RTS) 6.4.4.2 Modem Signal Value Register (MSVR-DTR) Interrupt Registers
6.5.1 General Interrupt Registers .127 6.5.1.1 Local Interrupt Vector Register (LIVR).127 6.5.1.2 Interrupt Enable Register (IER), Non-PPP Modes.128 6.5.1.3 Interrupt Enable Register (IER), Mode .129 6.5.1.4 Local Interrupting Channel Register (LICR).130 6.5.1.5 Interrupt Stack Register (STK) .131 6.5.2 Receive Interrupt Registers .132 6.5.2.1 6.5.2.2 Receive Interrupt Register (RIR) .133 6.5.2.3 Receive Interrupt Status Register (RISR.134 6.5.2.4 Receive Interrupt Status Register high (RISRh) .138 6.5.2.5 Receive FIFO Output Count (RFOC) .139 6.5.2.6 Receive Data Register (RDR) .139 6.5.2.7 Receive Interrupt Register (REOIR).140 6.5.3 Transmit Interrupt Registers .142 6.5.3.1 Transmit Priority Interrupt Level Register (TPILR).142 6.5.3.2 Transmit Interrupt Register (TIR).143 6.5.3.3 Transmit Interrupt Status Register (TISR)144 6.5.3.4 Transmit FIFO Transfer Count (TFTC).145 6.5.3.5 Transmit Data Register (TDR) .145 6.5.3.6 Transmit Interrupt Register (TEOIR) .146 6.5.4 Modem Interrupt Registers .147 6.5.4.1 Modem Priority Interrupt Level Register (MPILR) .147 6.5.4.2 Modem Interrupt Register (MIR).148 6.5.4.3 Modem (/Timer) Interrupt Status Register (MISR) .149 6.5.4.4 Modem Interrupt Register (MEOIR) .150 Registers.151 6.6.0.1 Mode Register (DMR) .151 6.6.0.2 Error Retry Count (BERCNT).151 6.6.0.3 Buffer Status (DMABSTS) .152 6.6.1 Receive Registers.153 6.6.1.1 Receive Buffer Address Register Lower (ARBADRL) .153 6.6.1.2 Receive Buffer Address Register Upper (ARB ADRU).153 6.6.1.3 Receive Buffer Address Register Lower (BRBADRL) .154 6.6.1.4 Receive Buffer Address Register Upper (BRB ADRU).154 6.6.1.5 Buffer Receive Byte Count (ARBCNT).155
TABLE CONTENTS
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
Buffer Receive Byte Count (BRBCNT). Receive Buffer Status (ARBSTS). Receive Buffer Status (BRBSTS). Receive Current Buffer Address Register Lower (RCBADRL) 6.6.1.10 Receive Current Buffer Address Register Upper (RCBADRU). 6.6.2 Transmit Registers 6.6.2.1 Transmit Buffer Address Register Lower (ATBADRL). 6.6.2.2 Transmit Buffer Address Register Upper (ATB ADRU) 6.6.2.3 Transmit Buffer Address Register Lower (BTBADRL) 6.6.2.4 Transmit Buffer Address Register Upper (BTB ADRU) 6.6.2.5 Buffer Transmit Byte Count (ATBCNT) 6.6.2.6 Buffer Transmit Byte Count (BTBCNT). 6.6.2.7 Transmit Buffer Status (ATBSTS) Async-HDLC/PPP Mode 6.6.2.8 Transmit Buffer Status (ATBSTS) SLIP/MNP®4 Mode 6.6.2.9 Transmit Buffer Status (BTBSTS) SLIP/MNP®4 Mode 6.6.2.10 Transmit Buffer Status (ATBSTS) HDLC Mode. 6.6.2.11 Transmit Buffer Status (BTBSTS) Mode 6.6.2.12 Transmit Buffer Status (ATBSTS) Async Mode. 6.6.2.13 Transmit Buffer Status (BTBSTS) Async Mode. 6.6.2.14 Transmit Current Buffer Address Register Lower (TCBADRL) 6.6.2.15 Transmit Current Buffer Address Register Upper (TCBADRU) Timer Registers 6.7.1 Timer Period Register (TPR) 6.7.2 Receive Timeout Period Register (RTPR) Async Mode Only 6.7.2.1 Receive Timeout Period Register (RTPRl) Async Mode Only. 6.7.2.2 Receive Timeout Period Register high (RTPRh) Async Mode Only. 6.7.3 General Timer (GT1) Sync Modes Only 6.7.3.1 General Timer (GT1l) Sync Modes Only 6.7.3.2 General Timer high (GT1h) Sync Modes Only 6.7.4 General Timer (GT2) Sync Modes Only 6.7.5 Transmit Timer Register (TTR) Async Modes Only
6.6.1.6 6.6.1.7 6.6.1.8 6.6.1.9
ELECTRICAL SPECIFICATIONS.171
Absolute Maximum Ratings .171 Electrical Characteristics .171 Electrical Characteristics.172
PACKAGE SPECIFICATIONS .182 ORDERING INFORMATION EXAMPLE .183 INDEX .185 INDEX .194
REVISION HISTORY
Major changes between previous data book (dated March 1995) this version listed below. Section
Revision
been added register. This allows optional internal synchronization DTACK input BUSCLK. This must external logic does synchronize DTACK input with BUSCLK before applied input pin. Autobaud mode operation been removed from data book. mode been left device, since unreliable, being described. Autobaud mode currently functional, remains described March 1995 version data book. register-description format been changed better describe register options. Timing diagrams tables that reflect maximum clock frequency (Revision later devices only) have been added.
September 1996
DATA BOOK v3.0
REVISION HISTORY
CL-CD2231
Intelligent Communications Controller
CONVENTIONS
Abbreviations
Symbol
Kbit kbits/sec., kbps Kbyte kbytes/sec. Mbyte
Units measure
degree Celsius microfarad microsecond (1,000 nanoseconds) hertz (cycle second) kilobit (1,024 bits) kilobit (1,000 bits) second kilobyte (1,024 bytes) kilobyte (1,000 bytes) second kilohertz kilohm megabyte (1,048,576 bytes) megahertz (1,000 kilohertz) milliampere millisecond (1,000 microseconds) nanosecond picovolt volt watt
`tbd' indicates values that determined', `n/a' designates `not available', `n/c' indicates that connect'.
CONVENTIONS
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
Acronyms
Acronym
bisync CMOS DPLL DRAM FIFO HDLC NRZI PQFP SDLC
Definition
alternating current block check character rate generator byte synchronous complementary metal-oxide semiconductor cyclic redundancy check direct current data communication equipment direct-memory access digital phase-locked loop dynamic random-access memory data terminal equipment end-of-frame embedded transmit command frame check sequence flow control transparency first in/first high-level data link control industry standard architecture intermediate text block longitudinal redundancy check character least-significant most-significant nonreturn zero nonreturn zero inverted point-to-point protocol plastic quad-flat pack random-access memory read/write synchronous data link control transistor-transistor logic
terms used interchangeably this document.
September 1996
DATA BOOK v3.0
CONVENTIONS
CL-CD2231
Intelligent Communications Controller
INFORMATION
Diagram
NOTE: connection. EP[1-12]: External pull-up required, terminate 4.7-k resistor.
A/D[14] A/D[13] A/D[12] CD*[0] A/D[11] A/D[10] A/D[9] A/D[8] A/D[7] A/D[6] A/D[5] A/D[4] A/D[3] A/D[2] A/D[1] A/D[0] BERR*
EP[7] EP[8] DSR*[0] CTS*[0] TXCOUT/DTR*[0] RTS*[0] DSR*[1] CTS*[1] TXCOUT/DTR*[1] RTS*[1] EP[9] EP[10] EP[11] EP[12] A[7] A[6] A[5] A[4] A[3] A[2] A[1] A[0] A/D[15]
EP[6] EP[5] TXCIN[1] RXCIN[1] TXCIN[0] RXCIN[0] TXD[1] TXD[0] EP[4] EP[3] RXD[1] RXD[0] TEST RXCOUT[1] BYTESWAP
CL-CD2231
100-Pin PQFP
AEN* ADLD* DATEN* DATDIR* RESET* RXCOUT[0] IREQ*[3] IREQ*[2] EP[2] IREQ*[1] IACKOUT* EP[1] IACKIN* DTACK* R/W* BGACK* CD*[1] BGOUT* BGIN* BUSCLK SIZ[1] SIZ[0]
INFORMATION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
Functions
A[0-7] A/D[0-15] R/W* DTACK* SIZ[0-1] BUSCLK BERR* RESET* TEST ADLD* AEN* DATDIR* DATEN* BYTESWAP IACKIN* IACKOUT* IREQ*[1-3] BGIN* BGOUT* BGACK*
HOST SIGNALS
SERIAL
TXD[0-3] RXD[0-3] TXCIN[0-3] RXCIN[0-3] TXCOUT/DTR*[0-3] RXCOUT[0-3] RTS*[0-3] CTS*[0-3] DSR*[0-3] CD*[0-3]
CL-CD2231
INTERRUPT SIGNALS
SERIAL
ARBITRATION SIGNALS
September 1996
DATA BOOK v3.0
INFORMATION
CL-CD2231
Intelligent Communications Controller
Descriptions
following conventions used pin-description tables:
after name indicates that signal active-low indicates input-only indicates output-only `I/O' indicates bidirectional `OD' indicates open-drain; pins must terminated 4.7K resistor `TS' indicates tristate indicates ascending numbers indicates descending numbers
Table 1-1. Descriptions
Symbol
Number
Type
Description
CHIP SELECT*: When low, CL-CD2231 registers read written host processor. ADDRESS STROBE*: When CL-CD2231 master, this output which indicates that R/W*, A[0-7], externally latched A[8-31] valid. DATA STROBE*: When CL-CD2231 master, this input used strobe data into registers during write cycles enable data onto during read cycles. When CL-CD2231 master, output used control data transfer from system memory. READ/WRITE*: When CL-CD2231 master, this input which determines read write operation required when signals active. When CL-CD2231 master, R/W* output indicates whether read from write system memory being performed. DATA TRANSFER ACKNOWLEDGE*: When CL-CD2231 master, this output indicates host when read write CL-CD2231 complete. When driven CL-CD2231, DTACK* input which indicates that system longer use. When CL-CD2231 master, DTACK* input which indicates when system memory read write cycles complete. SIZE [0-1]: When active master, these inputs that determine size operand being read written host. SIZ[1] SIZ[0] Byte Bytes When CL-CD2231 master, this output determining size operand being transferred from system memory. SIZ[1] SIZ[0] Byte BYTESWAP description. CL-CD2231 drives DTACK* even though device does respond such byte alignment.
(TS)
(TS)
R/W*
(TS)
DTACK*
(OD)
SIZ[0-1]
(TS)
INFORMATION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
Table 1-1. Descriptions (cont.)
Symbol
IACKIN* IACKOUT*
Number
Type
Description
INTERRUPT ACKNOWLEDGE IN*: This input, qualified with A[0-6], acknowledges CL-CD2231 interrupts. INTERRUPT ACKNOWLEDGE OUT*: This output driven during interrupt acknowledge cycles which internal interrupt valid. INTERRUPT REQUEST* [1-3]: These outputs signal that CL-CD2231 valid interrupt modem-lead activity (IREQ*[1]), transmit activity (IREQ*[2]), receive activity (IREQ*[3]). REQUEST*: This output used signal (open drain) host processor arbiter that mastership required CL-CD2231. GRANT IN*: This input indicates that available after current master relinquishes bus. GRANT OUT*: This output asserted when BGIN* internal Request been made. daisy-chain scheme arbitration formed connecting BGOUT* BGIN* next device chain. priority scheme preferred, requests must prioritized externally grant routed BGIN* appropriate device. GRANT ACKNOWLEDGE*: input, this signal used determine another alternate master control bus. output, signals other masters that this device control bus. ERROR*: this input becomes active while CL-CD2231 master, current cycle terminated, relinquished, interrupt generated indicate error host processor. ADDRESS [0-7]: When CL-CD2231 master, these pins inputs used determine which registers being accessed, which interrupt being acknowledged. When ADLD* low, A[0-7] output address bits through external latching. When CL-CD2231 master, A[0-7] output least-significant byte transfer address. ADDRESS/DATA [0-15]: When CL-CD2231 master, these pins provide 16-bit data reading writing CL-CD2231 registers. When ADLD* low, A/D[0-15] provide upper address bits external latching. When CL-CD2231 master, A/D[0-15] provide multiplexed address/data reading writing system memory. ADDRESS LOAD*: This strobe used externally latch upper portion system address A[8-31]. While ADLD* low, address bits 16-31 available A/D[0-15], address bits through A[0-7]. ADDRESS ENABLE*: This output used output enable external address drivers during CL-CD2231 cycles. DATA ENABLE*: This output active when either CL-CD2231 master, pins low. used enable external data buffers during host register read/write operations during operations. operations 32-bit buses, this signal needs gated with A[1] select correct half data bus.
IREQ*[1-3]
(OD)
BGIN*
BGOUT*
BGACK*
(OD)
BERR*
A[7:0]
71-78
(TS)
A/D[15:0]
86-95,
(TS)
ADLD*
(TS)
AEN*
(TS)
DATEN*
(TS)
September 1996
DATA BOOK v3.0
INFORMATION
CL-CD2231
Intelligent Communications Controller
Table 1-1. Descriptions (cont.)
Symbol Number Type Description
DATA DIRECTION*: This output active when either CL-CD2231 master, low. used control external data buffers; when low, buffers should enabled CL-CD2231 system direction. CLOCK: System clock. CLOCK: This system clock (divided which used internally control certain operations. This driven during hardware reset. RESET*: This signal should stay valid minimum reset state CL-CD2231 guaranteed rising edge this signal. When RESET* removed, CL-CD2231 also performs software initialization registers. TEST: normal operation, this should kept low. board-level testing purposes, provides mechanism forcing normal output pins HighImpedance mode. When TEST high, following pins HighImpedance mode: BUSCLK, BGOUT*, IACKOUT*, RXCOUT[0-1], RTS*[0-1], DTR*[0-1], TXD[0-1]. ensure CL-CD2231 outputs high-impedance, either following conditions must met: RESET* driven low, TEST driven high; CL-CD2231 kept idle state (not accessed read/write operations active), TEST driven high. RTS*[0-1] REQUEST SEND* [0-3]: This output controlled automatically CL-CD2231 indicate that data being sent pin. TRANSMIT CLOCK OUT/DATA TERMINAL READY* [0-1]: This output controlled automatically CL-CD2231 indicate programmable threshold been reached receive FIFO. also programmed output transmit data clock. Following reset, this high stays high Clock mode until transmit channel enabled first time; after which remains active, independent state transmit enable. modes, clock transitions every time, even during idle fill Asynchronous mode. Data transitions made negative-going edge TXCOUT. RECEIVE CLOCK [0-1]: This output provides one-time rate clock receive data modes, except when input (RXCIN) one-time receive clock used. After reset, this until channel receive enabled first time, after which remains active, independent state receive enable. When Asynchronous mode, output only transitions while receiving data during inter-character fill. receive data sampled positive-going edge this clock. CLEAR SEND* [0-1]: This input programmed control flow transmit data, out-of-band flow control applications. CARRIER DETECT* [0-1]: This always visible MSVR register. CL-CD2231, these functions separated onto pins. When used CD*, this input programmed validate receive data. TRANSMIT CLOCK [0-1]: This inputs transmit clock rate generator.
DATDIR*
(TS)
BUSCLK
RESET*
TEST
TXCOUT/DTR* [0-1]
RXCOUT[0-1]
CTS*[0-1]
CD*[0-1]
TXCIN[0-1]
INFORMATION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
Table 1-1. Descriptions (cont.)
Symbol
RXCIN[0-1]
Number
Type
Description
RECEIVE CLOCK [0-1]: This inputs receive clock rate generator. DATA READY* [0-1]: CL-CD2231, these functions separated onto pins. When used DSR*, this input programmed validate receive data. TRANSMIT DATA [0-1]: Serial data output each channel. RECEIVE DATA [0-1]: Serial data input each channel. BYTESWAP: This alters byte ordering data during certain 16-bit transfers changes half data which byte transfers made comply with Intel® Motorola® processor systems. BYTESWAP does alter handshake signals. When BYTESWAP high, byte A/D[0-7] precedes that A/D[8-15] string transmit receive bytes; when BYTESWAP low, A/D[8-15] precedes A/D[0-7].
DSR*[0-1] TXD[0-1] RXD[0-1]
BYTESWAP
When BYTESWAP high, bytes transferred A/D[0-7] when A[0] low, A/D[8-15] when A[0] high. When BYTESWAP low, bytes transferred A/D[8-15] when A[0] low, A/D[0-7] when A[0] high. different register used, depending state this pin. Byteswap Byte Alignment Motorola® Intel® CONNECTION: Make connections these pins. They must left open proper device operation.
49-52,
EP[1-12]
EXTERNAL PULL-UP [1-12]: These pins must terminated pullup resistors proper device operation. value recommended.
POWER GROUND
September 1996
DATA BOOK v3.0
INFORMATION
CL-CD2231
Intelligent Communications Controller
REGISTER TABLE
Registers CL-CD2231 either Global Per-Channel. column `Address mode' memory following pages defines this attribute each register. Only Global registers exists, accessible host time. sets Per-Channel registers exist, accessible time determined currently active channel number. channel number selected host normal (non-interrupt) processing writing Channel Access register. channel number Channel Access register remains force until changed host. channel number provided automatically CL-CD2231 during interrupt service routines transfers. following list, some register locations appear twice. They have different names functions asynchronous synchronous protocol operations. Chapter page this data book detailed descriptions register functions.
Memory
2.1.1 Global Registers
Name
GFRCR
Description
Global Firmware Revision Code Register Channel Access Register
Addr. Mode
Size
Access
Page
following notes applicable Section 2.1.1 through Section 2.1.7.
NOTES: Address mode Global register always accessible. Address mode Per-Channel register sets, channel, accessible interrupt context. address Intel®-style processor. address Motorola®-style processor.
REGISTER TABLE
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
2.1.2 Option Registers
Name
COR1 COR2 COR3 COR4 COR5 COR6 COR7 SCHR1 SCHR2 SCHR3 SCHR4 SCRl SCRh LNXT RFAR1 RFAR2 RFAR3 RFAR4 CPSR TSPMAP1 TSPMAP2 TSPMAP3 TXACCM0 TXACCM1 TXACCM2 TXACCM3 RXACCM0 RXACCM1 RXACCM2
Description
Channel Mode Register Channel Option Register Channel Option Register Channel Option Register Channel Option Register Channel Option Register Channel Option Register Channel Option Register Special Character Register Special Character Register Special Character Register Special Character Register Special Character Range Special Character Range high LNext Character Receive Frame Address Register Receive Frame Address Register Receive Frame Address Register Receive Frame Address Register Polynomial Select Register Transmit Special Mapped Character Transmit Special Mapped Character Transmit Special Mapped Character Transmit Async Control Character Transmit Async Control Character Transmit Async Control Character Transmit Async Control Character Receive Async Control Character Receive Async Control Character Receive Async Control Character
Addr. Mode
Size
Access
Async Async Async Async Async Async Async Sync Sync Sync Sync Sync
Page
September 1996
DATA BOOK v3.0
REGISTER TABLE
CL-CD2231
Intelligent Communications Controller
Name
RXACCM3
Description
Receive Async Control Character
Addr. Mode
Size
Access
Page
2.1.3 Rate Clock Option Registers
Name
RBPR RCOR TBPR TCOR
Description
Receive Rate Period Register Receive Clock Option Register Transmit Rate Period Register Transmit Clock Option Register
Addr. Mode
Size
Access
Page
2.1.4 Channel Command Status Registers
Name
STCR MSVR-RTS MSVR-DTR
Description
Channel Command Register Special Transmit Command Register Channel Status Register Modem Signal Value Registers
Addr. Mode
Size
Access
Page
2.1.5 Interrupt Registers
Name
LIVR LICR
Description
Local Interrupt Vector Register Interrupt Enable Register Local Interrupting Channel Register Stack Register
Addr. Mode
Size
Access
Page
REGISTER TABLE
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
2.1.5.1 Receive Interrupt Registers
Name
RPILR RISR RISRl RISRh RFOC REOIR
Description
Receive Priority Interrupt Level Register Receive Interrupt Register Receive Interrupt Status Register Receive Interrupt Status Register Receive Interrupt Status Register high Receive FIFO Output Count Receive Data Register Receive Interrupt Register
Addr. Mode
Size
Access
Page
2.1.5.2 Transmit Interrupt Registers
Name
TPILR TISR TFTC TEOIR
Description
Transmit Priority Interrupt Level Register Transmit Interrupt Register Transmit Interrupt Status Register Transmit FIFO Transfer Count Transmit Data Register Transmit Interrupt Register
Addr. Mode
Size
Access
Page
2.1.5.3 Modem Interrupt Registers
Name
MPILR MISR MEOIR
Description
Modem Priority Interrupt Level Register Modem Interrupt Register Modem (/Timer) Interrupt Status Register Modem Interrupt Register
Addr. Mode
Size
Access
Page
September 1996
DATA BOOK v3.0
REGISTER TABLE
CL-CD2231
Intelligent Communications Controller
2.1.6 Registers
Name
BERCNT DMABSTS
Description
Mode Register Error Retry Count Buffer Status
Addr. Mode
Size
Access
Page
2.1.6.1 Receive Registers
Name
ARBADRL ARBADRU BRBADRL BRBADRU ARBCNT BRBCNT ARBSTS BRBSTS RCBADRL RCBADRU
Description
Receive Buffer Address Lower Receive Buffer Address Upper Receive Buffer Address Lower Receive Buffer Address Upper Receive Buffer Byte Count Receive Buffer Byte Count Receive Buffer Status Receive Buffer Status Receive Current Buffer Address Lower Receive Current Buffer Address Upper
Addr. Mode
Size
Access
Page
REGISTER TABLE
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
2.1.6.2 Transmit Registers
Name
ATBADRL ATBADRU BTBADRL BTBADRU ATBCNT BTBCNT ATBSTS BTBSTS TCBADRL TCBADRU
Description
Transmit Buffer Address Lower Transmit Buffer Address Upper Transmit Buffer Address Lower Transmit Buffer Address Upper Transmit Buffer Byte Count Transmit Buffer Byte Count Transmit Buffer Status Transmit Buffer Status Transmit Current Buffer Address Lower Transmit Current Buffer Address Upper
Addr. Mode
Size
Access
Page
2.1.7 Timer Registers
Name
RTPR RTPRl RTPRh GT1l GT1h
Description
Timer Period Register Receive Timeout Period Register Receive Timeout Period Register Receive Timeout Period Register high General Timer General Timer General Timer high General Timer Transmit Timer Register
Addr. Mode
Size
Access
Async Async Async Sync Sync Sync Sync Async
Page
September 1996
DATA BOOK v3.0
REGISTER TABLE
CL-CD2231
Intelligent Communications Controller
Register Definitions
2.2.1 Global Registers Global Firmware Revision Code Register (GFRCR)
Firmware Revision Code
Channel Access Register (CAR)
2.2.2 Option Registers Channel Mode Register (CMR)
RxMode TxMode
chmd2
chmd1
chmd0
Channel Option Register (COR1) HDLC Mode
AFLO ClrDet AdMde1 AdMde0 Flag3
Flag2
Flag1
Flag0
Asynchronous Mode
Parity ParM1 ParM0 Ignore Chl3 Chl2 Chl1 Chl0
Channel Option Register (COR2) Asynchronous Async-HDLC Mode
TxlBE
RtsAO
CtsAE
DsrAE
HDLC Mode
FCSApd CRCNinv RtsAO CtsAE DsrAE
MNP4/SLIP Mode
RtsAO CtsAE DsrAE
REGISTER TABLE
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
Channel Option Register (COR3) Async-HDLC/PPP Mode
Stop2 FCSApd RxChk TxGen npad3
npad2
npad1
npad0
MNP4 Mode
Stop2 FCSApd RxChk TxGen npad3 npad2 npad1 npad0
HDLC Mode
sndpad Alt1 FCSPre idle npad2 npad1 npad0
Asynchronous Mode
EDCDE RngDE SCDE Splstp Stop2 Stop1 Stop0
SLIP Mode
Stop2 npad3 npad2 npad1 npad0
Channel Option Register (COR4)
DSRzd CDzd CTSzd
FIFO Threshold
Channel Option Register (COR5)
DSRod CDod CTSod In/Out
Flow Control Threshold
Channel Option Register (COR6) Asynchronous Mode
IgnCR ICRNL INLCF IgnBrk NBrklnt
ParMrk
INPCK
Parlnt
Channel Option Register (COR7) Asynchronous Mode
IStrip FCErr
ONLCR
OCRNL
September 1996
DATA BOOK v3.0
REGISTER TABLE
CL-CD2231
Intelligent Communications Controller
Special Character Registers Special Character Register (SCHR1) Special Character Register (SCHR2) Special Character Register (SCHR3) Special Character Register (SCHR4) Async Async Async Async
Special Character Ranges Special Character Range (SCRl) Special Character Range high (SCRh) Async Async
LNext Character (LNXT)
Async
Receive Frame Address Registers Receive Frame Address Register (RFAR1) Receive Frame Address Register (RFAR2) Receive Frame Address Register (RFAR3) Receive Frame Address Register (RFAR4) Sync Sync Sync Sync
Polynomial Select Register (CPSR)
poly
Transmit Special Mapped Characters (PPP only) Transmit Special Mapped Character (TSPMAP1) Transmit Special Mapped Character (TSPMAP2) Transmit Special Mapped Character (TSPMAP3)
REGISTER TABLE
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
Transmit Async Control Character Maps (PPP only) Transmit Async Control Character (TXACCM0) Transmit Async Control Character (TXACCM1) Transmit Async Control Character (TXACCM2) Transmit Async Control Character (TXACCM3)
Receive Async Control Character Maps (PPP only) Receive Async Control Character (RXACCM0) Receive Async Control Character (RXACCM1) Receive Async Control Character (RXACCM2) Receive Async Control Character (RXACCM3)
2.2.3 Rate Clock Option Registers Receive Rate Period Register (RBPR)
Receive Rate Period (Divisor)
Receive Clock Option Register (RCOR)
TLVal DpllEn Dpllmd1 Dpllmd0
ClkSel2
ClkSel1
ClkSel0
Transmit Rate Period Register (TBPR)
Transmit Rate Period (Divisor)
Transmit Clock Option Register (TCOR)
ClkSel2 ClkSel1 ClkSel0 Ext-1X
September 1996
DATA BOOK v3.0
REGISTER TABLE
CL-CD2231
Intelligent Communications Controller
2.2.4 Channel Command Status Registers Channel Command Register (CCR) Mode
ClrCh InitCh RstAll EnTx DisTx EnRx DisRx
Mode
ClrT1 ClrT2 ClrRcv
Special Transmit Command Register (STCR) Async-HDLC/PPP Mode
Abort sndsp
frame
Xoff
SLIP/MNP4 Mode
Abort sndsp frame
Asynchronous HDLC Modes
AbortTx AppdCmp SndSpc SSPC2 SSPC1 SSPC0
Channel Status Register (CSR) HDLC Mode
RxEn RxFlag RxFrame RxMark TxEn
TxFlag
TxFrame
TxMark
Asynchronous Mode
RxEn RxFloff RxFlon TxEn TxFloff TxFlon
REGISTER TABLE
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
Async-HDLC/PPP Mode
RxEn RxFloff RFram Rldle TxEn TxFloff TFram TIdle
SLIP/MNP4 Mode
RxEn RFram Rldle TxEn TFram TIdle
Modem Signal Value Registers (MSVR) Modem Signal Value Register (MSVR-RTS) Modem Signal Value Register (MSVR-DTR)
DTRop
September 1996
DATA BOOK v3.0
REGISTER TABLE
CL-CD2231
Intelligent Communications Controller
2.2.5 Interrupt Registers Local Interrupt Vector Register (LIVR)
Interrupt Enable Register (IER)
TIMER
TxMpty
Local Interrupting Channel Register (LICR)
Interrupt Stack Register (STK)
CLvl MLvl TLvl
TLvl
MLvl
CLvl
2.2.5.1 Receive Interrupt Registers Receive Priority Interrupt Level Register (RPILR) Receive Interrupt Register (RIR)
Ract Reoi Rvct
Rvct
Receive Interrupt Status Register (RISR) Receive Interrupt Status Register (RISRl) HDLC Mode
RxAbt
Reslnd
ClrDct
Asynchronous Mode
Timeout SCdet2 SCdet1 SCdet0 Break
Async-HDLC MNP4 Mode
RxAbt Break
REGISTER TABLE
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
SLIP Mode
Break
Receive Interrupt Status Register high (RISRh)
Berr BA/BB
Receive FIFO Output Count (RFOC)
RxCt4 RxCt3
RxCt2
RxCt1
RxCt0
Receive Data Register (RDR)
Receive Interrupt Register (REOIR) Asynchronous HDLC Modes
TermBuff DiscExc SetTm2 SetTm1 NoTrans
Gap2
Gap1
Gap0
Async-HDLC SLIP MNP4 Modes
TermBuff DiscExc SetTm2 SetTm1 NoTrans
September 1996
DATA BOOK v3.0
REGISTER TABLE
CL-CD2231
Intelligent Communications Controller
2.2.5.2 Transmit Interrupt Registers Transmit Priority Interrupt Level Register (TPILR) Transmit Interrupt Register (TIR)
Tact Teoi Tvct
Tvct
Transmit Interrupt Status Register (TISR)
Berr BA/BB
TxEmpty
TxDat
Transmit FIFO Transfer Count (TFTC)
TxCt4 TxCt3
TxCt2
TxCt1
TxCt0
Transmit Data Register (TDR)
Transmit Interrupt Register (TEOIR)
TermBuff SetTm2 SetTm1 Notrans
2.2.5.3 Modem/Timer Interrupt Registers Modem Priority Interrupt Level Register (MPILR) Modem Interrupt Register (MIR)
Mact Mvct
Mvct
Modem (/Timer) Interrupt Status Register (MISR)
DSRChg CDChg CTSChg
Timer2
Timer1
Modem Interrupt Register (MEOIR)
SetTm2 SetTm1
REGISTER TABLE
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
2.2.6 Registers Mode Register (DMR)
EnSync ByteDMA
Error Retry Count (BERCNT)
Binary Value
Buffer Status (DMABSTS)
TDAlign RstApd CrtBuf Append Ntbuf
Tbusy
Nrbuf
Rbusy
2.2.6.1 Receive Registers Receive Buffer Address Lower (ARBADRL) Receive Buffer Address Upper (ARBADRU) Receive Buffer Address Lower (BRBADRL) Receive Buffer Address Upper (BRBADRU)
Buffer Receive Byte Count (ARBCNT) Buffer Receive Byte Count (BRBCNT)
Receive Buffer Status (ARBSTS) Receive Buffer Status (BRBSTS)
Berr
2231own
Receive Current Buffer Address Lower (RCBADRL) Receive Current Buffer Address Upper (RCBADRU)
September 1996
DATA BOOK v3.0
REGISTER TABLE
CL-CD2231
Intelligent Communications Controller
2.2.6.2 Transmit Registers Transmit Buffer Address Lower (ATBADRL) Transmit Buffer Address Upper (ATBADRU) Transmit Buffer Address Lower (BTBADRL) Transmit Buffer Address Upper (BTBADRU)
Buffer Transmit Byte Count (ATBCNT) Buffer Transmit Byte Count (BTBCNT)
Transmit Buffer Status (ATBSTS) Transmit Buffer Status (BTBSTS) Async-HDLC/PPP Mode
Berr
map32
INTR
2231own
SLIP/MNP4 Mode
Berr INTR 2231own
Asynchronous HDLC Mode
Berr Append INTR 2231own
Transmit Current Buffer Address Lower (TCBADRL) Transmit Current Buffer Address Upper (TCBADRU)
REGISTER TABLE
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
2.2.7 Timer Registers Timer Period Register (TPR)
Binary Value
Receive Timeout Period Register (RTPR) Receive Timeout Period Register (RTPRl)
Binary Value, bits
Async Async
Receive Timeout Period Register high (RTPRh)
Binary Value, bits 15:8
Async
General Timer (GT1) General Timer (GT1l) General Timer high (GT1h) General Timer (GT2)
Sync Sync Sync Sync
Transmit Timer Register (TTR)
Async
September 1996
DATA BOOK v3.0
REGISTER TABLE
CL-CD2231
Intelligent Communications Controller
FUNCTIONAL DESCRIPTION
Host Interface
CL-CD2231 synchronous device with asynchronous interface. stable input clock required nominally MHz. divided internally, resulting signal output BUSCLK pin. baudrate generators timers also related CLK. Electrical Characteristics" Section shows that many input signal setup output signal transitions related edges BUSCLK signals. possible, however, CL-CD2231 purely asynchronous environment. CL-CD2231 either master during transfers, slave device during normal host read write transfers. Both byte
word transfers supported each Slave Master modes. Figure Figure show signals involved these transfers. 3.1.1 Host Read Write Cycles host read write cycles begin with activation (chip select) (data strobe) signals. DATADIR* (data direction) DATEN* (data enable) signals control external data buffers. falling edge DTACK* (data transfer acknowledge) signal indicates that transfer complete. that time, DTACK* released when deasserted. should also deasserted. (address strobe) used during slave cycles; output during transfers. Note that following open-drain tristate outputs should have pull-up resistors attached: AEN*, AS*, DATADIR*, DATEN*, DTACK*.
R/W* A/D[0-15] DOUT
A[0-7], SIZ[0-1] DTACK*
DATEN*
DATDIR*
Figure 3-1. Host Read Cycle September 1996
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
CL-CD2231
Intelligent Communications Controller
R/W*
A/D[0-15]
A[0-7], SIZ[0-1] DTACK*
DATEN*
DATDIR*
Figure 3-2. Host Write Cycle 3.1.2 Byte Word Transfers Data moved from CL-CD2231 either byte word transfers. accommodate various families host processors, BYTESWAP input indicate system byte-ordering scheme. pins (SIZ[1, used indicate whether transfer bytes wide. systems where even addresses represent most-significant byte, BYTESWAP input should tied low, byte transfers occur A/D[15:8] pins even addresses A/D[7:0] pins addresses. systems where most-significant byte address, situation reversed, BYTESWAP should tied high. Byte transfers even addresses occur A/D[7:0] pins, addresses A/D[15:8] pins.
Interrupts
CL-CD2231 uses interrupt requests alert host that certain events have occurred. Interrupt operations CL-CD2231 tightly coupled with several registers described later. concept context affects accessibility these other registers. 3.2.1 Contexts Channels registers CL-CD2231 grouped into Global, Virtual, sets Per-Channel registers. CL-CD2231 normally background context, where (Channel Access register) selects channel number Per-Channel registers. interrupt context begins with interrupt acknowledge cycle, ends with write access appropriate Interrupt register. interrupt context, only Per-Channel registers channel number being serviced available; effect. Most Global regis35
September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
ters available times, some shared channels, such FIFO registers. These called Virtual registers, must accessed only during interrupt context. Interrupt contexts nested that higher-priority interrupt service preempt lower-priority interrupt already progress. CL-CD2231 pushes current interrupt context onto stack, visible (Stack register), enters context newly acknowledged interrupt. register accesses interrupt context until host performs write appropriate EOIR top-level context. CL-CD2231 then pops top-level context stack returns previous interrupt context. 3.2.2 Interrupt Registers (Interrupt Enable register) LIVR (Local Interrupt Vector register) Per-Channel registers. contains bits enable disable
various interrupt sources within CL-CD2231. LIVR value output data during interrupt acknowledge cycle. There sets three Global registers that correspond three types interrupts: Receive, Transmit, Modem. Priority Interrupt Level registers RPILR, TPILR, MPILR programmed contain value that present address during interrupt acknowledge cycle each type interrupt. Interrupt Status registers RISR, TISR, MISR examined during interrupt service routine determine cause each type interrupt. (Transmit Data) (Receive Data) registers provide access FIFO buffers each channel. These registers must accessed outside proper interrupt context. write operation Interrupt registers REOIR, TEOIR, MEOIR must last access CL-CD2231 this handler routine return background context.
IREQn*
IACKIN* 1-CLOCK DELAY
CL-CD2231 SAMPLES ADDRESS
R/W*, A/D[0-15] VECTOR1
A[0-7] DTACK*
DEN*
DATDIR*
Interrupt vector always A/D[0-7].
Figure 3-3. Interrupt Acknowledge Cycle September 1996
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
CL-CD2231
Intelligent Communications Controller
3.2.3 Groups Types There general reasons CL-CD2231 request service from host processor data transfer exceptional conditions. Furthermore, interrupts grouped into three categories, each with associated Interrupt Request signal IREQ1*, IREQ2*, IREQ3*.
Group Modem signal change/timer events Group Transmit interrupts Group Receive interrupts
shows possible causes transmit receive interrupt service requests. cause interrupt request encoded into least-significant bits vector presented data during interrupt acknowledge cycle. most-significant bits vector come from LIVR: Interrupt Vector LSBs Receive exception Modem signal change timer event Transmit data exception Receive Good Data
Group only used exceptions. Groups include both data transfer exceptions. Table
Table 3-1.
Transmit Receive Interrupt Service Requests
ASYNC
mode only mode only mode
Interrupt Cause
Receive Good DataBreak detect Framing error Parity error Receive timeout, data Special character match Transmitter empty FIFO threshold Receive overrun Clear detect error Residual count Receive abort frame Transmit underrun error buffer
HDLC
SLIP
MNP®
Comments
mode
September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
3.2.4 Hardware Signals IACK Cycles IACK (interrupt acknowledge) cycle begins with IACKIN* (interrupt acknowledge asserted, value matching appropriate PILR contents least-significant seven address bits, A[6:0]. IACK cycle valid (that PILR values match), corresponding vector from interrupting channel LIVR driven onto data DTACK* asserted. DTACK* released after removed. Figure page shows interrupt acknowledge cycle timing. similar basic host read cycle, except that IACKIN* active inactive. three IREQn* pins open-drain outputs requiring external pull-up resistors, nominally IACKOUT* (interrupt acknowledge out) used form daisy chain systems with more than CL-CD2231. 3.2.4.1 Programming PILR Registers three PILRs (Priority Interrupt Level Registers) must programmed with values that correspond least-significant seven address bits present A[6:0] during interrupt acknowledge cycle. Some CPUs output priority level interrupts that being acknowledged during IACK cycle. these systems three PILR values unique. other systems that this scheme, PILR values same different depending specific design. When PILRs contain same value multiple IREQn* lines asser ted, CL-CD2231 imposes following priority scheme determine which interrupt request acknowledged: Highest priority: Lowest priority: Receive Interrupt register Transmit Interrupt register Modem Interrupt register
IACKIN* instead CS*. PILRs should programmed with addresses these three locations. Alternatively, single location decoded three PILRs given identical values described earlier. either case, host should read these locations before first access device interrupt service routine. CL-CD2231 enters interrupt acknowledge context proper type channel, data returned device interrupt vector from LIVR. 3.2.5 Multi-CL-CD2231 Systems Multiple CL-CD2231s chained together systems requiring more than channels. Each group interrupt request lines IREQn* connected parallel wired-OR fashion. system Interrupt Acknowledge signal connected IACKIN* first device, IACKOUT* then connected IACKIN* next device, forming chain CL-CD2231s. 3.2.5.1 Keep-and-Pass Logic acceptance interrupt acknowledge cycle CL-CD2231 depends whether part requesting service whether least-significant seven address bits match contents appropriate PILR. following rules apply keepand-pass logic:
CL-CD2231 does have interrupt asserted, interrupt acknowledge passed IACKOUT*. CL-CD2231 asserting more interrupts, interrupt priority levels driven address host match contents appropriate PILR, this interrupt acknowledge also passed IACKOUT*. CL-CD2231 asserting interrupt interrupt priority level address matches PILR that interrupt type, interrupt acknowledge accepted CL-CD2231, vector from LIVR driven onto data bus.
3.2.4.2 Systems with Interrupt Controllers Some systems interrupt controller that supplies vector during interrupt acknowledge cycle. function properly, CL-CD2231 needs IACK cycle response interrupt request. These systems decode three distinct locations from CL-CD2231 produce
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
3.2.5.2 Fair Share Scheme When multiple CL-CD2231s chained, Fair Share logic these devices guarantees that interrupts from CL-CD2231s system presented host with equal urgency. There positional hierarchy interrupt scheme. example, CL-CD2231 farthest from host equal chance getting interrupts through CL-CD2231 nearest interrupt chain. Fair Share scheme transparent user, enabling disabling required. When interrupt request line asserted, Fair that type interrupt asserting device cleared. Fair remains cleared until interrupt line returns high state. CL-CD2231 does assert interrupt that type while corresponding Fair cleared. Therefore, when multiple CL-CD2231s assert interrupts together, each serviced turn, before they reassert same interrupt type. IREQn* lines open-drain outputs that tied together groups same type, creating Fair Share scheme each group interrupts. Alternatively, three groups tied common request using CL-CD2231 internal-priority scheme (see Section 3.2.4.1).
3.3.1 Receive FIFO Operation Asynchronous mode, Good Data interrupt initiated when number characters FIFO greater than FIFO threshold. Note that receive timeout receive data exception conditions also cause interrupt host. Synchronous mode, interrupt request data transfer initiated when number characters greater than FIFO threshold frame reached. 3.3.2 Transmit FIFO Operation TxDat TxEmpty bits control generation transmit FIFO interrupts. CL-CD2231 initiates interrupt request more data when number empty bytes FIFO greater than threshold set. During synchronous operation when last byte frame transferred FIFO, CL-CD2231 stops asserting transmit interrupts until frame sent. 3.3.3 Timers global (Timer Period register) provides timer prescale `tick' clock source timers. counter clocked system clock (CLK) divided 2048. maintain timer accuracy, should programmed with value less than hex) `tick' about millisecond when MHz. Each channel timers: 16-bit general timer (GT1), 8-bit general timer (GT2). Their operation programming different synchronous asynchronous protocols. 3.3.4 Timers Synchronous Protocols synchronous protocols, timers have special significance CL-CD2231; they available support protocols. They started host commands interrupts generated CL-CD2231. General timers started either ways:
loading value when timer running.
FIFO Timer Operations
Each channel CL-CD2231 16-byte receive FIFO 16-byte transmit FIFO. FIFOs accessible through (Receive Data register) (Transmit Data register) registers. These Virtual registers shared among channels; therefore, they cannot accessed outside interrupt context. threshold level each channel common both FIFOs COR4 (Channel Option Register with maximum threshold value FIFO threshold meaningful both non-DMA modes. mode, FIFO threshold determines when transfer bursts should occur. non-DMA mode, threshold level determines when transfer interrupts asserted.
September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
setting SetTm1 SetTm2 bits Interrupt register when terminating interrupt service routine. this case, value should written appropriate Interrupt Status register (RISR, TISR, MISR).
simple Ownership Status used each buffer; this ensures that there deadlocks between host CL-CD2231 regarding particular buffer. using simple flexible management CL-CD2231, user host processor concerned with transmit/receive data block-byblock basis. user need concerned with character-by-character transfers, even filling emptying FIFOs. controls userselectable per-channel operate independently another. CL-CD2231 perform operations supported line protocols. special Append mode feature reduce host overhead asynchronous datastreams. operations channel- direction-specific. each channel, either transmitter receiver, both, independently programmed mode (Channel Mode register). When CL-CD2231 acquires transfer, only data channel direction transferred; then, ownership relinquished. maximum bytes depth transmit receive FIFOs transferred during ownership cycle. Whenever possible, cycles bits wide, buffers have proper byte alignment. Unaligned buffers sent using only 8-bit-wide transfers. buffer begins even address contains number bytes, CL-CD2231 uses 16-bit transfers words buffer except last transfer, which bits. buffer chain ends address, next buffer chain should also start address maintain proper alignment most efficient usage. this case, only last transfer first buffer first transfer next buffer bits wide; others bits. CL-CD2231 forced perform only bytewide operations setting byteDMA (DMR[3]) (DMA Mode register).
These timers disabled command through (Channel Command register). 3.3.5 Timers Asynchronous Protocols receive timer restarted from value programmed RTPR every time character received loaded into FIFO, data read host. example, receive FIFO threshold eight, characters stored receive FIFO. more characters received receiver timer times-out, receive interrupt asserted mode, transfer occurs). host expected retrieve characters from receive FIFO. Assuming host still enabling this feature (that (IER[5]) from register still set), there character being received receiver timer timesout, receive exception timeout interrupt group interrupt) asserted. timer disabled value RTPR cleared. 3.3.6 Transmit Timer (Transmit Timer register) used only embedded transmit command enabled COR2. delay transmit command specifies delay period loaded TTR; further transmit operations performed until this timer reaches zero. current state line held either send break inter-character fill.
Operation
CL-CD2231 uses simple, powerful, double-buffering method readily compatible with higherlevel buffer control procedures, such circular queues, link lists, buffer pools. Each transmitter each receiver assigned buffer. When transmitting, host processor alternately fills buffers, commands CL-CD2231 transmit buffers time. When receiving, CL-CD2231 fills buffers informs host processor when each ready.
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
3.4.1 Acquisition Cycle
CL-CD2231 asserts waits BGIN*. When BGIN* detected, CL-CD2231 access after current owner relinquishes control bus. BGACK* high when BGIN* goes low, then free access. step BGACK* when BGIN* goes low, then use. CL-CD2231 waits BGACK* high. Once CL-CD2231 senses that BGACK* high, CL-CD2231 waits current cycle terminate (DS* DTACK* high) then assert BGACK* driving low. that time, CL-CD2231 owns bus. After driving BGACK* low, CL-CD2231 drives high.
3.4.2 Data Transfer After CL-CD2231 acquires bus, pulses ADLD* once. This loads upper address bits external 24-bit latch. This happens only once grant cycle. AD[0-15] bits remapped memory address (MA) bits MA[16-31] A[0-7] mapped MA[8-15]. during upper bits need change, CL-CD2231 relinquishes then re-acquires bus. During each read write cycle, leastsignificant eight memory address bits, MA[0-7], come from A[0-7]. Figure 3-5, access shown after acquired.
Figure 3-4, CL-CD2231 required wait access bus.
BGIN*
BGACK* Someone else owns gives here. CL-CD2231 owns this point.
Figure 3-4. Acquisition Cycle
September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
ADLD*
AEN*
DATDIR*
High read write
R/W*
High read write
DTACK*
Figure 3-5. Data Transfer Timing 3.4.3 Error Handling When error detected during sequence, CL-CD2231 terminates current cycle relinquishes bus. data transfer ownership cycle ignored, original conditions restored. subsequent retry attempt would start again from these original conditions. there non-zero value BERCNT (Bus Error Retry Count register), register decremented failed transfer retried automatically. BERCNT zero, error interrupt generated transfers suspended failing buffer until interrupt serviced.
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
3.4.4 Buffers Chaining buffer management CL-CD2231 uses dual-buffer scheme. There buffer pair each transmitter each receiver. Each buffer controlled Ownership Status bit, called 2231own. When 2231own `1', CL-CD2231 `owns' buffer. When 2231own `0', host `owns' buffer. simple rule prevents confusion buffer management neither CL-CD2231 host seizes buffer ownership. Each always relinquishes ownership other. host relinquishes ownership receive buffer CL-CD2231 when receive buffer ready. CL-CD2231 then free write received data into buffer. CL-CD2231 returns ownership receive buffer after receive data buffer. host gives ownership transmit buffer CL-CD2231 when transmit buffer ready transmit. CL-CD2231 then transmits contents buffer. When this complete, CL-CD2231 returns ownership back host. CL-CD2231 keeps track which buffer used next status bits Ntbuf transmit Nrbuf receive. relationship between 2231own `next' bits shown later.
receive buffers handled same using Nrbuf (next receive buffer). Chaining used break relatively long frames into shorter blocks memory, useful where there frequent smaller frames occasional long frames. Chaining allows more efficient user RAM. Status controls chaining Synchronous modes. Chaining applies both transmit receive. transmit, host determines bit; receive, CL-CD2231 determines bit. Transmit DMA, when first buffer supplied CL-CD2231, treated start frame reset leading pad/flag/syn characters transmitted, followed data. set, closing flag/syn appended, next buffer again treated start frame. set, CL-CD2231 treats buffer first part larger frame chains into next buffer (does reset CRC); this process continues until buffer supplied with set.
Table 3-2.
Ntbuf
Buffers Chaining
2231own Buffer
2231own Buffer
Send nothing
Transmit Action
Host sets Buffer CL-CD2231 accepts Buffer marks next CL-CD2231 completes passes host Host sets Buffer CL-CD2231 accepts marks next Host sets Buffer CL-CD2231 completes passes host, accepts marks next CL-CD2231 completes passes host
September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
3.4.5 Transmit Transfer receive data transfers, buffers availa ATBADR/BTBADR ATBCNT/BTBCNT (Transmit Buffer Address Transmit Buffer Count registers) contain start address byte count buffers. These registers host when initiating transfer. CL-CD2231 makes copy registers perform transfer, leaving originals unchanged. transfer buffers between host CL-CD2231 controlled ATBSTS/BTBSTS (Transmit Buffer Status) registers. Buffers contain either complete frames blocks data, linked together form complete frame block, used Append mode transmit data arrives from another process. first transfer types Block mode transfers, last Append mode. Both described further below. management buffers reduces processor overhead associated with short data transfers increases minimum response time requirements frame-based transmissions. Transmit buffers chained support large frames. minimize usage, first buffer chain should begin even address host memory. CL-CD2231 begins fetching frame from buffer performing transfer, reading bytes time. CL-CD2231 cannot realign data between external memory FIFO. buffer chain ends address, next buffer chain should begin address. Otherwise, only single-byte transfers made rest buffer.
Append Mode Transfer (Buffer Only)
Append mode transfers available Buffer Asynchronous mode only. Buffer Append mode, host enable CL-CD2231 transmit data buffer before completely filled. CL-CD2231 starts transmitting data when appended buffer. This mode useful terminal echo routines that wait complete block formed before starting transmission. this mode, transmission started when buffer made available CL-CD2231 host; ATBADR[0-3] ATBCNT[l, initialized. Subsequent triggering transfer occurs programming ATBCNT[l, with accumulated byte count. this case, ATBCNT should written 16-bit word avoid confusion between byte operations. ATBADR[0-3] should reprogrammed during Append mode. memory space moved, Append mode must disabled first. When final data added append buffer ATBCNT been updated, host should AppdCmp (STCR[5]). When CL-CD2231 completed final transmission, clears 2231own ATBSTS register, generates end-of-buffer interrupt.
Chain Mode Transfer
Chain mode, frame should complete buffers memory before transmission started. Append Status should set; Start Frame must begin transmission, Last Buffer must this buffer last chained block complete frame block. When set, CL-CD2231 generates transmits cyclic redundancy check word frame using polynomial selected CPSR (CRC Polynomial Select register). Interrupt Required set, host interrupt generated after buffer transmitted.
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
CL-CD2231 Transmit Registers
Starting Address ATBADR (32) ATBCNT (16) ATBSTS
(Status register)
Physical Memory
Transmit Buffer
Buffer Byte Count
TABADR (32)
(Currently using Buffer
Current Count
BTBADR (32) BTBCNT (16) BTBSTS
(Status register)
Starting Address Buffer Byte Count Transmit Buffer
NOTE: Number bits each register shown parentheses Buffer Buffer need same length.
Figure 3-6. Transmitter Buffers
3.4.6 Synchronous Transmitter Examples Figure 3-6, buffers contained external CL-CD2231. others (DMABSTS, ATBADR, TCBADR, ATBCNT, ATBSTS, BTBADR, BTBCNT, BTBSTS) inside CL-CD2231.
Example
Transmit frame channel with chaining.
host checks Ntbuf DMABSTS register channel determine which buffer next. this example, Ntbuf indicating that Buffer used next. host sets buffer data, starting address ATBADR, buffer byte count ATBCNT. host sets ATBSTS (`A' Buffer Status) register. indicate that there chaining. 2231own give ownership CL-CD2231. setting 2231own, host commands CL-CD2231 start transmission. Thus, everything must ready (starting address, buffer data, byte count) prior setting 2231own.
CL-CD2231 starts frame transmission channel When transmission started, CL-CD2231 sets Tbusy DMABSTS. transmission progresses, current buffer pointer (TCBADR) updated CL-CD2231. Also, start transmission, Ntbuf (Next Buffer) notify host that Buffer next. CL-CD2231 completes frame transmission adding necessary CRCs trailing frame delimiters. When CL-CD2231 completes transmission, clears Tbusy bit. Then, sets clears 2231own ATBSTS. This notifies host that transmission complete, returns ownership buffer back host. CL-CD2231 optionally interrupts host, with TISR both indicate that transmission complete there chaining.
September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
Example
Transmit channel chain three buffers into frame. frame bytes long, maximum buffer size 100.
host checks Ntbuf DMABSTS register channel determine which buffer next. this example, Ntbuf indicating that Buffer used next. host sets buffer data, starting address (BTBADR), buffer byte count (BTBCNT) first `link' chain transmitted. this example, BTBCNT `100'. host sets BTBSTS (`B' Buffer Status) register. cleared indicate that this buffer first link chain. 2231own give ownership CL-CD2231. setting 2231own, host commands CL-CD2231 start transmission. Thus, everything must ready (starting address, buffer, data count) prior setting 2231own. this point, host enough time transmit bytes next buffer link. host fails this time, there transmitter underrun, frame aborted HDLC. CL-CD2231 starts transmitting Buffer from channel When this started, Ntbuf cleared indicate that Buffer next. This helps host keep track which buffer next. transmission progresses, current buffer pointer, TCBADR, updated CL-CD2231. During prior this update, host readied Buffer Buffer ATBSTS register cleared host, indicating that buffer chain. transmission this buffer, CL-CD2231 does CRCs frame delimiters because there more data current frame. After CL-CD2231 completed transmission first link Buffer CL-CD2231 sets clears 2231own BTBSTS. This notifies host that transmission complete, returns ownership buffer back host.
CL-CD2231 optionally interrupts host with clear TISR indicate that transmission completed, that there chaining. ATBSTS register indicates that CL-CD2231 ownership Buffer transmission next `link'. cleared that this link last link transmitted chain. CL-CD2231 continues transmission current frame, transmission from Buffer This second link, which bytes long. During this time, host must Buffer third final link. BTBCNT last link bytes. After CL-CD2231 completed transmission second link Buffer sets clears 2231own ATBSTS. This notifies host that transmission complete, returns ownership buffer back host. with first link, CL-CD2231 does CRCs ending frame delimiters this link. CL-CD2231 optionally interrupts host with clear TISR indicate that transmission completed, that there chaining. this time, host buffer Buffer BTBSTS indicate that this last link chain. CL-CD2231 transmits Buffer same manner explained earlier. before, CL-CD2231 transmits number bytes indicated BTBCNT, which bytes third segment. When CL-CD2231 completes transmission, necessary CRCs ending frame delimiters transmitted. CL-CD2231 optionally interrupts host with bits TISR indicate that transmission completed, that this last link chain.
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
3.4.7 Receive Transfer protocol modes, host memory buffers made available each receive channel, ARBADR/BRBADR ARBCNT/BRBCNT (Receive Buffer Address Receive Buffer Count registers) registers. make buffer available, user must supply buffer address Receive Buffer Address registers; number free bytes buffer must written Receive Buffer Count registers, buffer status must updated ARBSTS/BRBSTS (Receive Buffer Status register) registers. CL-CD2231 then free buffer receive data, updates Buffer Status register appropriate. When buffer longer use, CL-CD2231 writes number bytes stored buffer RBCNT updates status RBSTS. This frees host take control this buffer supply buffer place. CL-CD2231 automatically switches other buffer whenever buffer becomes full, frame been reached. other buffer been allocated, host still time required fill CL-CD2231 16-byte FIFO, respond, avoid loss data. Special actions taken depending channel protocol. HDLC, PPP, SLIP endof-frame/data block boundaries recognized CL-CD2231. When data-block boundary detected, current buffer automatically terminated. other buffer allocated owned CL-CD2231, becomes current buffer. Endof-frame block interrupts also generated host. Asynchronous mode, host interrupt generated when there receive exceptions (framing error, special character, etc.), buffer terminated. data exception status made available host, just when Asynchronous mode purely interrupt-driven. data buff-
ered internally FIFO until host services exception interrupt. host following three options when terminating exception interrupt:
exception character discarded. buffer terminated there additional interrupt generated). transfer count provided ARBCNT/BRBCNT, calculated RCBADR. user-defined left buffer.
These selections communicated CL-CD2231 value written host Receive Interrupt register, when Receive Interrupt service completed. Leaving `n'-byte enables host insert status current buffer, while continuing receive data same buffer. This eliminates overhead allocating buffer. host must have noted starting location while exception interrupt. This done reading Receive Current Buffer Address register. address this register guaranteed stable during Receive interrupt, point next free character location current buffer. size supplied host sufficient fill complete current buffer, CL-CD2231 automatically switches other buffer advances Receive Current Buffer Address enough complete desired gap. CL-CD2231 readjusts data alignment internal FIFO needed maintain alignment with external buffer.
Receiver Buffers
Figure 3-7, buffers contained external CL-CD2231. others (DMABSTS, BRBADR, BRBCNT, BRBSTS) inside CL-CD2231.
September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
CL-CD2231 Transmit Registers
Starting Address ARBADR (32) ARBCNT (16) ARBSTS
(Status register)
Physical Memory
Receiver Buffer
Buffer Byte Count
RCBADR (32)
(Currently using Buffer
Current Address
BRBADR (32) BRBCNT (16) BRBSTS
(Status register)
Starting Address Buffer Byte Count Receiver Buffer
NOTE: Number bits each register shown parentheses Buffer Buffer need same length.
Figure 3-7. Receiver Buffers
Example
Receive frame from channel chaining.
host must first make receive buffer available before frame received. Thus, host checks Nrbuf DMABSTS register channel determine which buffer next. this example, Nrbuf `0', indicating that Buffer used next. host sets starting address ARBADR, buffer byte count ARBCNT. When host writes count ARBCNT, host defined size limit buffer. host then gives buffer CL-CD2231 setting 2231own status register ARBSTS. This notifies CL-CD2231 that alright write received. Rbusy (DMABSTS[0]) channel until frame starts received. When frame data starts coming CL-CD2231 sets Rbusy notify host that Buffer next. data bytes written into buffer, current buffer pointer, RCBADR, updated CL-CD2231.
received frame, CL-CD2231 tests correct frame delimiter CRC. When received frame complete, CL-CD2231 clears Rbusy bit. this example, there receive chaining, received frame byte count less than equal buffer size count ARBCNT. CL-CD2231 writes value actual received byte count into same register ARBCNT. (Note that host written maximum buffer size ARBCNT when buffer given CL-CD2231. when buffer returned back host, CL-CD2231 written actual byte count received buffer into ARBCNT.) CL-CD2231 sets bits. This notifies host that buffer frame have been reached. CL-CD2231 also clears 2231own return buffer host.
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
Example
Receive frame channel which consists three buffers chained together. frame bytes long, maximum buffer size 100.
host checks Nrbuf (DMABSTS[1]) register channel determine which buffer next. this example, Nrbuf indicating that Buffer used next. host sets starting address BRBADR. Buffer size `100' this example. Thus, host sets BRBCNT `100'. host then sets 2231own relinquish ownership CL-CD2231. host should know amount time takes receive bytes, because this minimum time host next buffer link. host fails this time, there receiver overrun, received frame lost. Suppose that CL-CD2231 starts receiving data into Buffer channel When this started, Nrbuf cleared CL-CD2231 help host keep track which buffer next. (During prior this, host made Buffer ready.) After CL-CD2231 received first link frame into Buffer sets clears bit. This indicates that first link chain been received. Also, CL-CD2231 clears 2231own bit, returns ownership buffer host. first received link, received byte count (BRBCNT) remains unchanged 100, since received data filled buffer. CL-CD2231 optionally interrupts host with clear RISR indicate that received buffer complete, that there chaining. ARBSTS register indicates that CL-CD2231 ownership Buffer transmission next link. frame continues received, data goes into Buffer This second link, which bytes long. During this time, host must Buffer third final link. After CL-CD2231 received second link into Buffer CL-CD2231 sets clears 2231own ARBSTS. This returns ownership buffer host.
with first link, received byte count ARBCNT, remains unchanged since received data filled buffer. CL-CD2231 optionally interrupts host with clear RISR indicate that received buffer complete that there chaining. this time host buffer Buffer CL-CD2231 receives data into Buffer same manner, previously explained. this example, third link does fill buffer. Thus, when end-of-frame delimiter detected CL-CD2231, value (for received bytes) written into received byte count BRBCNT. Next, CL-CD2231 sets bits show that buffer complete, that this last link chain. CL-CD2231 optionally interrupts host with RISR indicate that received frame complete, this last link chain.
3.4.8 Transmit Transfer CL-CD2231 contains descriptors that loaded specify transmit buffers. These descriptors designated each consists 32-bit address 16-bit count (ATBSTS/BTBSTS). Status register contains Ownership Status 2231own. When this CL-CD2231 owns descriptor, should written CPU. When this clear, descriptor owned CPU. When selected channel enabled, CL-CD2231 waits ownership Buffer When ownership given setting 2231own bit, buffer transmitted, Ownership cleared. CL-CD2231 waits ownership Buffer this process continues, toggling between buffer descriptors. DMABSTS register contains status (NtBuf) that informs next buffer transmit ensure that CL-CD2231 stay
September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
synchronization. This procedure ensures that pipeline data available CL-CD2231 send, maximizing bandwidth utilization minimizing possibility underruns. Figure illustrates this procedure. 3.4.8.1 Interrupts Transmit Buffers types transmit interrupts available mode; they enabled controlled TxMpty bits. When TxMpty interrupt enabled, interrupts generated when there transmit data available send. example, TxMpty interrupt used determine when line turnaround occur half-duplex lines. Normally, TxDat interrupt used indicate each transmit buffer. interrupt scheduled internally when last data read from transmit buffer into FIFO. Because only interrupt generated each buffer, (IER[0]) register left permanently enabled. interrupts required selectively individual buffers, INTR
ATBSTS/BTBSTS registers used selectively enable interrupts. 3.4.8.2 Chained Buffers Synchronous modes, when frame size exceeds maximum buffer size, frame transmitted from number separate buffers. This achieved simply setting ATBSTS/BTBSTS (Transmit Buffer Status register) until last buffer frame. CL-CD2231 transmits buffers frame; appends only when data transmitted from buffer with flag set. above procedure allocating buffers used, transmission time last buffer allocate next avoid possible underrun. (TISR[6]) interrupt associated with last buffer.
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
Start
Read DMABSTS Determine Next Transmit Buffer (NtBuf)
Next Buffer 2231own
Update Descriptor 2231own
More Data Send
Other Buffer 2231own
Update Descriptor 2231own
Figure 3-8. Transmit Buffer Selection September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
3.4.8.3 Append Mode Append mode reduces overhead required provide asynchronous terminal echoing functionality; this also necessary similar application that involves unpredictable datastream. Buffer into Append mode ATBSTS register. This buffer then used echoed data, while Buffer used other output data. append buffer allows data transmission start from buffer before data available transmission. example, terminal echoing requires that each character echoed translated echoed) before complete line typed. operate Append mode, ATBADR ATBCNT normal (the ATBCNT zero), 2231own Append bits ATBSTS. When data available transmission, placed buffer CPU, total buffer byte count updated ATBCNT. CL-CD2231 scan ATBCNT register changes; data found, read from buffer transmitted. When more data found append buffer, CL-CD2231 scans Buffer ownership. Buffer owned CL-CD2231, data that buffer transmitted uninterrupted; transmission, Buffer count continues scanned data. correct operation this feature, ATBCNT register should updated with word-write operation. only byte access possible, value should exceed bytes. This mode allows multiple transfers performed through single buffer; saves overhead either processing multiple buffers handling interrupts with every character. Line retransmission becomes simple `stepping back' buffer resending. terminate Append mode, command given STCR cause Buffer terminated when current data been sent. 3.4.8.4 Transmit Errors When transmit error interrupt generated, TISR ATBSTS/BTBSTS registers indicate error status. current transfer address avail-
able TCBADR[0-3] registers, error occurred last transfer that started this address. This means actual error address bytes further buffer. Following error condition, either discontinue current buffer retry from start last transfer. discontinue current buffer, TermBuff should when TEOIR written interrupt. Synchronous mode, frame still progress needs aborted STCR (Special Transmit Command register). retry frame, should 2231own ATBSTS/BTBSTS register, TermBuff when writing TEOIR interrupt. This causes last transfer retried; should error occur again, above procedure repeated. should check ensure that location continually retried. 3.4.9 Receive Buffer Interrupts When receive buffer complete, CL-CD2231 generates end-of-frame receive exception interrupt. provides with RISR status information which buffer complete. When receive error occurs, device stops point error generates error receive exception interrupt. RISR indicates cause exception, RCBADR provides next location receive buffer. following five options:
Terminate buffer. Discard exception. Terminate buffer discard exception. Continue from current position buffer. Leave byte buffer then continue.
required option written REOIR (Receive End-of-Interrupt register) terminate interrupt. terminate buffer option ARBSTS/BRBSTS register should first cleared CPU, buffer supplied CPU.
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
3.4.9.1 Receive Timeout Asynchronous Mode Asynchronous mode, only that CL-CD2231 releases ownership reaching end-of-buffer. Receive timeout, exceptions, release ownership end-of-buffer condition met. following illustrates recommended procedures handle receive timeout Asynchronous mode. Scenario Buffer currently selected, receive timeout occurs, host wants continue Recommendation: nothing receive timeout interrupt service routine. Scenario Buffer currently selected, receive timeout occurs, host longer requires DMA. Recommendation: Reset ownership bits ARBSTS/BRBSTS, TermBuff REOIR receive timeout interrupt service routine. Scenario Buffer currently used, receive timeout occurs, host wants start Buffer Recommendation: TermBuff REOIR receive timeout interrupt service routine. CL-CD2231 switches Buffer
NOTE: When receive timeout occurs Buffer CL-CD2231 pops back Buffer unless host clears both Ownership Status bits.
transfer that failed first buffer, error, still receive FIFO transferred next buffer following interrupt. retry buffer from failure point, ARBSTS/BRBSTS register. should TermBuff when writing REOIR interrupt, this causes last transfer retried. Should error occur again, above procedure repeated. should check ensure that location continually retried.
Rate Generation Data Encoding
3.5.1 DPLL Operation Data clocks generated CL-CD2231 feeding number clock sources into programmable divider. clock source divisor separately programmable each channel direction user. Clock options programmed Transmit Clock Option Receive Clock Option registers. divisors programmed Transmit Rate Period Receive Rate Period registers. possible clock sources following:
above scenarios applies Buffer selected first. 3.4.9.2 Receive Errors When receive error interrupt generated, RISR ARBSTS/BRBSTS registers indicate error status. current transfer address available RCBADR[0-3], error occurred last transfer that started this address. This means that actual error address bytes further buffer. Following bus-error condition, either discontinue current buffer retry from start last transfer. buffer discontinued, number valid receive bytes calculated subtracting starting address A/BRBADR[0-3] from current address RCBADR[0-3]. should TermBuff REOIR terminate this buffer move next.
Transmit
input input input input input 2048 TXCIN Receive clock
September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
Receive
input input input input input 2048 RXCIN
Section includes examples programming standard rates. value loaded given rate determined with Equation 3-1:
Equation
rate divisor Frequency chosen clock source Desired rate
input nominally MHz. divisor programmed values from 1-255. maximize accuracy edge detection Asynchronous DPLL (digital phase locked loop) modes, select highest frequency clock largest divisor combination. external clock input used used multiple desired rate. appropriate divisor value must loaded into Rate Period register. external clock desired rate clock), value must loaded into associated Rate Period register. receive rate generator also programmed DPLL that mode, clock select divisor programmed near possible nominal receive rate. Clock phase adjustments made DPLL logic lock incoming datastream. receive clock optional input transmitter. This makes possible DPLL-derived clock synchronize transmit datastream.
above equation, general, yields non-integer result. nearest integer value, along with clock source, optimum choice that rate. value loaded Period register must that integer expressed 8-bit binary value. bitrate error difference between integer value ideal value, expressed percentage.
Example
This example illustrates programming rate generator 19.2 kbits/second using internal clock, system clock frequency MHz. Divisor loaded into R(T)BPR Value loaded into R(T)COR 00h, select
Example
This example illustrates programming rate generator 56,000 using external clock, system clock frequency MHz. user provides 1.25-MHz clock RXCIN TXCIN pin. Divisor loaded into R(T)BPR Value loaded into RCOR 06h, select External Clock mode Value loaded into TCOR C0h, select External Clock mode
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
Period Register (RBPR TBPR) Adjustments applied here (for DPLL only) System Clock 2048 Count Register (RBCR TBCR)
dec/inc Zero Detect
RXCIN TXCIN (for only)
From RCOR/TCOR
Figure 3-9. Rate Generator/DPLL
Receive Clock Option Register (RCOR)
TLVal dpllEn Dpllmd1 Dpllmd0
ClkSel2
ClkSel1
ClkSel0
Transmit Clock Option Register (TCOR)
ClkSel2 ClkSel1 ClkSel0 Ext-1X
September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
Table 3-3.
ClkSel2
Clock Source Select
ClkSel1
ClkSel0
Select
Reserved External clock Reserved Receive clock (RCOR) (TCOR)
Table 3-4.
Rate
1200 2400 3600 4800 7200 9600 19200 38400 56000 64000
Rate Constants,
Divisor
Clock
Error
0.16% 0.25% 0.16% 0.16% 0.16% 0.16% 0.16% 0.22% 0.16% 0.22% 0.16% 0.16% 0.16% 0.80% 0.16%
divisors hexadecimal.
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
Table 3-5.
Rate
1200 2400 3600 4800 7200 9600 19200 38400 56000 64000 76800
Rate Constants,
Divisor
Clock
Error
0.06% 0.02% 0.47% 0.15% 0.47% 0.15% 0.47% 0.01% 0.15% 0.45% 0.47% 0.15% 0.47% 0.35% 0.35% 0.76%
NOTE: divisors hexadecimal.
September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
Table 3-6.
Rate
1200 2400 3600 4800 7200 9600 19200 38400 56000 64000 76800 115200
Rate Constants,
Divisor
Clock
Error
0.13% 0.35% 0.16% 0.35% 0.16% 0.35% 0.16% 0.16% 0.16% 0.35% 0.16% 0.35% 0.05% 0.69% 0.35% 1.38%
NOTE: divisors hexadecimal.
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
Table 3-7.
Rate
1200 2401 3600 4800 7200 9600 19200 38400 56000 64000 76800 115200 12800 134400
Rate Constants,
Divisor
Clock
Error
0.23% 0.06% 0.06% 0.06% 0.06% 0.06% 0.06% 0.06% 0.06% 0.06% 0.06% 0.06% 0.16% 0.53% 0.06% 0.06% 0.53% 1.38%
divisors hexadecimal.
Transmit receive data encoded decoded NRZ, NRZI, Manchester formats. NRZI, start transmission, learning datastream contiguous zeros achieves synchronization; Manchester, alternating pattern ones zeros required. NRZ, NRZI, Manchester data encoding schemes used various synchronous protocols. NRZ, signal condition represents data type, high logic logic `0'. NRZI encoding, transitions datastream occur beginning cell. NRZI encoding, signal condition switches opposite state send binary `0'. Manchester encoding, transitions always middle cell. high-to-low transition made send logic `1', low-to-high transition send logic `0'. timing diagrams (Figure 3-10 Figure 3-12) illustrate encoding method. data bits `0110010'.
September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
Example
This example illustrates programming DPLL kbits/second NRZI mode, using internal clock system clock frequency MHz. Divisor loaded into RCOR Value loaded into RCOR 28h, enable DPLL, NRZI framing select
Example
This example illustrates programming DPLL External Clock mode, with Manchester encoding. Divisor loaded into RBPR 01h, enable external clock Value loaded into RCOR 36h, enable DPLL, select Manchester framing, external clock When using n-times external clock, highest possible clock frequency largest divisor combination recommended. frequency external clock should less than system input divided (that 33-MHz operation, data clock should less than MHz). Note that R(T)BPR 8-bit register, therefore largest divisor value 255.
Equation computes divisor value:
Equation
Frequency external clock source rate divisor Desired rate
DATA CLOCK
NRZI
MANCHESTER
Figure 3-10. Data Encoding
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
TXCIN
TxData
NOTE: When using external receive clock Receive mode, data sampled low-to-high-going edge RXCIN.
Figure 3-11. Transmit Data With External Clock
TxCout
TxData
Figure 3-12. Transmit Data With External Clock
September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
Table 3-8.
Data Clock Selection Using External Clock
External Clock Frequency
Clock
Rate
Divisor (hex)
1200 2400 3600 4800 7200 9600 19200 38400 56000 64000 76800 115200 128000
9.765 9.765 9.765 39.062 39.062 156.250 156.250 625.00 625.00 1.250 1.250 1.250 1.250 1.250 1.250 1.250 2.00 2.00
Hardware Configurations
demultiplex A/D[15:0] into separate address data buses, external buffers latches required. reduce external circuitry, multi-CL-CD2231 applications. common control lines (ADLD*, AEN*, DATDIR*, DATEN*) external devices wire-OR'ed together. These pins tristate, open collector, external pull-up resistor (2.2-5.0 must connected each line ensure logic when CL-CD2231 master. When higher-priority alternate masters present, daisy-chain priority scheme implemented wire OR'ing BGACK*
FUNCTIONAL DESCRIPTION
connecting directly 680X0. 680X0 signal then connected first device chain daisy-chained remaining devices. lower-priority master then connected chain. higher-priority master present, signal must qualified before being passed into highest priority CL-CD2231. priority encoded scheme required, signals must prioritized externally signals routed individual devices.
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
3.6.1 Interface 32-Bit Data interface 32-bit data bus, 16-bit data buffers must used isolate CL-CD2231 A/D[0-15] pins from either half 32-bit bus. A[1] address determines lower upper half data particular cycle. CL-CD2231 always drives data bits during register-read DMA-write operation, regardless size actual transfer. 3.6.2 Connections CL-CD2231
DATEN*
16-BIT DATA Xcvr
DATDIR* R/W* CD2231 DTACK* [0-15] ADLD* A[0-7]
DATA[0-15]
24-BIT LATCH [16-31] STROBE* [8-31] [8-15] [0-7]
32-BIT ADDRESS DRIVER MA[0-31]
AEN*
Figure 3-13. Connections CL-CD2231
NOTES: 24-bit latch required. 16-bit Xcvr optional depending application. 32-bit driver optional depending drive needs.
September 1996
DATA BOOK v3.0
FUNCTIONAL DESCRIPTION
CL-CD2231
Intelligent Communications Controller
3.6.3 CL-CD2231 Interface Table shows recommended (data terminal equipment) connections between CL-CD2231 RS-232C standard interfaces. Table 3-9. Connections
RS-232C
-/CD -/CF
CL-CD2231
RTS* CTS* DSR* TXCOUT/DTR* RXCIN TXCIN RXCOUT
Table 3-10 shows recommended (data communications equipment) connections between CL-CD2231 RS-232C standard interfaces. Table 3-10. Connections
CL-CD2231
RTS* CTS* DSR* TXCOUT/DTR* RXCIN TXCIN RXCOUT
RS-232C
DB/CC DA/-
Reference: CCITT 1988 Blue Book.
FUNCTIONAL DESCRIPTION
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
PROTOCOL PROCESSING
HDLC Processing
4.1.1 Frame Check Sequence 16-bit standard computation used HDLC, defined 3309. This algorithm same that used with synchronous HDLC operation CL-CD2231. basic characteristics following: Accumulation: computation starts after opening flag continues closing flag. Pre-load: 16-bit accumulator pre-set `1's. Transmit order: bits identified most-significant X15, transmitted first. Thus, first character transmitted bits X15-X8 character positions D1-D8, respectively. second character bits X7-X0 character positions D1-D8, respectively. Transmit polarity: Inverted. Correct remainder: receiver calculates entire received frame, including received field. frame received error free, then correct remainder accumulation (X15 leftmost bit). individually enabled disabled transmitter receiver. enabled transmitter, device appends transmitted frames. disabled, device adds frame. enabled receiver, device computes received reports results. append also enabled, device includes 2byte received data presented host. disabled, device does test received FCS.
4.1.2 HDLC Transmit Mode transmitter programmed idle either Flag (01111110) Mark (continuous 1's) mode Idle (COR3[3]) Channel Option Register When idle Mark mode, frame transmission programmed prepended programmable number characters flags. character selected either characters allow remote receivers phase locked loop synchronize quickly data. When NRZI encoding used Manchester encoding, character guarantees transition every time, character guarantees exactly transition time. transmitter idle Mark mode, frame transmission started when data made available transmitter, either (Transmit Data register) buffer. First, programmable number characters transmitted, then programmable number flag characters. Data characters then transmitted value accumulated using each data character. When frame status passed CL-CD2231 TEOIR A/BTBSTS, remaining data transmitted, closing flag appended frame. frame available immediately, correct number opening flags transmitted data transmission starts. data available, line returned idle condition. data underrun occurs, CL-CD2231 does append CRC, aborts transmission sending eight continuous `1's, then reverts idle condition. underrun interrupt generated, interrupt transfer being used, should provide response TEOIR. Transfer mode being used, CL-CD2231 discards buffers until buffer found; transmission then resumes from next buffer. This ensures correct operation when multiple buffer frame underruns. When programmed NRZI mode idle Mark mode, after closing flag first eight `1's transmitted, transmit data line sampled determine logic high low. low, extra transmitted force line logic high.
September 1996
DATA BOOK v3.0
PROTOCOL PROCESSING
CL-CD2231
Intelligent Communications Controller
When idle Flag mode selected, send opening number flags have significance; transmission started when data first made available FIFO. data underrun occurs, frame terminated normally with CRC, then continuous flags generated. underrun does occur, then appended, eight `1's transmitted, then continuous flags underrun interrupt generated. 4.1.3 HDLC Receive Mode When enabled, receiver enters Flag Hunt mode. When first flag detected, next nonflag/abort character treated start frame. address recognition enabled, frame reception then continues; Address Recognition mode enabled, incoming data compared with receive address registers. following modes address recognition available:
First byte address field only, (four possible matches available against RFAR[1-4]). First second byte address field, (two possible matches available against RFAR[1-2], RFAR[3-4]).
(end frame) interrupt generated. either validated ignored. CL-CD2231 does check CRC, passed onto host. validated discarded passed onto host diagnostic purposes. next non-flag/abort character restarts process; current state receive process visible register, which indicates whether data, flag, mark currently being received. support data phase X.21 connection, clear detect feature enabled COR1. When enabled, receive data CTS* monitored clear indication off) from remote. detected, remainder current frame discarded, clear detect indication passed RISR. However, channel remains HDLC mode until modified CPU.
(Point-to-Point Protocol) Mode
4.2.1 Character Format mode uses async-HDLC character format, which fixed start bit, eight data bits, stop bit. There parity bit. character format shown Figure 4-1. Using definitions from standard format (Figure 4-2), data bits identified D1-D8. LSB. Characters identified either bits (D1-D8) hexadecimal values showing value bits D5-D8 first, followed value D1-D4. Thus, flag character `01111110', indicated controlescape character `10111110'
purposes address matching, Address Extension interpreted device. address matching occurs either complete first byte, complete first second byte frame. address match recognized, Flag Hunt mode once again entered, thereby discarding current frame. match found, normal frame reception continues. When closing flag frame detected, data remaining FIFO passed CPU, either through transfers Good Data interrupts, then
START
STOP
line high prior Start bit. high value either line idle Stop from previous character.
Start next character could begin earlier than immediately after previous
Figure 4-1. Character Format
PROTOCOL PROCESSING
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
4.2.2 Frame Format standard frame format follows:
FLAG
A-FIELD C-FIELD FRAME DATA CHARACTERS
FCS-1
FCS-2
FLAG
Interframe idle time fill next address.
closing flag (7E) previous frame same flag used opening next frame. This shared flag.
Figure 4-2. Point-to-Point Protocol Frame
fields
device passes fields from host. device does special processing these fields. 4.2.3 Frame Check Sequence mode uses same 16-bit HDLC mode (V.41). Everything between flags included calculation with exceptions: control-escape (7D) characters added transparency, mapped characters received without preceding controlescape. characters preceded controlescape, calculation made after inverted. 4.2.4 Transparency Transparency means that there protocol method prevent confusion ambiguity between control characters data characters frame. mode, there control-escape mechanism. Specific characters identified `control mapped' characters. control called ACCM (async-control-character map). Whenever there mapped character data stream, transmitter precedes that character with controlescape character After control-escape, character itself transmitted with inverted. example, character mapped character, then transmission 7D-33.
When receiver sees control-escape character, removed following character inverted. resultant reconstructed character passed host received character. 4.2.4.1 Mapped Characters from 00-1F When channel selected mode, ACCMs assigned. Each ACCM consists four registers bits) define mapped characters range 00-1F. ACCM transmitter (TXACCM), receiver (RXACCM). Each within ACCM points particular character within range. When set, that character mapped character. When clear, that character mapped character. example, suppose TXACCM pointing character set, that TXACCM pointing character clear. Then whenever present transmission, actual transmission 7D-32. Whenever present transmission, transmitted without modification. Continuing example, receiver ACCM bits pointing also clear, respectively. Then received (without preceding discarded, received (without preceding passed through host unchanged.
September 1996
DATA BOOK v3.0
PROTOCOL PROCESSING
CL-CD2231
Intelligent Communications Controller
4.2.4.2 Mapped Characters from Above Three characters above mapped. These characters defined Channel Specific registers TSPMAP[1], TSPMAP[2], TSPMAP[3]. 4.2.4.3 Characters Transmitted Data Whenever transmitter sees either data transmission, transmitter treats these mapped characters. Thus, data transmitted 7D-5D, data transmitted 7D-5E. 4.2.4.4 Mapped Characters Field Whenever transmitter sees that result transmitted contains mapped character, handles that character other mapped character. Section 3.2.4. example, field A7-7E, transmitter would send three characters field, A7-7D-5E. receiver would convert received back A7-7E before completing computation. 4.2.5 Definition Valid Frame This section discusses valid frames from viewpoint CL-CD2231 devices. characters formatted standard async-HDLC format shown Section 4.2.1. When
channel placed mode, that channel transmits expects received characters shown Section 4.2.1. There exception option transmit framing error. Section 4.2.6.2 Section 4.2.6.4. Async-HDLC protocols have minimum frame size requirements. However, CL-CD2231 devices makes requirement minimum frame size. frame opens ends with flag (7E). device complies with this transmit, requires opening closing flags receiver. closing flag from preceding frame same flag opening flag next frame. This shared flag. device send receive both shared non-shared flags. frame never ends with control-escape followed flag (7D-7E). device does send 7D-7E frame normal mode. device commanded send abort either 7D-7E character with stop bit. device receives frame that ends 7D-7E, that frame indicated host being error. mode requires transparency described Section 4.2.4. transparency always enabled when channel mode.
PROTOCOL PROCESSING
DATA BOOK v3.0
September 1996
CL-CD2231
Intelligent Communications Controller
4.2.6 Transmitter 4.2.6.1 Fixed Transmitter Operations mode, transmitted characters format shown Section 4.2.1, transmitter always sends opening flag. 4.2.6.2 Transmitter Options device transmitter control-bit selected following options:
Option
map32 (ATBSTS) (BTBSTS) npad3, (COR3) TxGen (COR3) frame (STCR)
Description
When map32 set, characters TXACCM (00-1F) mapped. characters transmitted with preceding with flipped. When map32 clear, normal TXACCM used. minimum number idle character times between transmitted frames programmable from 0-15 character times. TxGen set, device adds character each frame. TxGen clear, device ends frame with closing flag after last data byte from host. When commanded setting frame STCR, device sends character frame with Stop forced `0'.
4.2.6.3 Transmission Abort When commanded through STCR (Special Transmit Command register), device ends transmission current frame with abort sequence 7D-7E. After executing abort, device clears STCR. rules shared flag transmission Section 4.2.6.2 followed trailing flag (7E) abort sequence (7D-7E). device sending frame when Command set, device clears STCR does send abort sequence. 4.2.6.4 Transmit Framing Error test purposes, character with framing error transmitted inside frame. Command STCR notifies device transmit character with Stop forced `0'. channel transmitting frame, framing error character inserted. After transmission, channel continues with frame transmission. After executing command, device clears STCR.
device sending frame when Command set, device clears STCR does send framing error character. 4.2.7 Receiver 4.2.7.1 Fixed Receiver Operations receiver accepts frame character when received data brought through device presented host. Async-HDLC mode, receiver accepts only characters format shown Section 4.2.1. receiver accepts only frames that have opening flag; there more than opening flag.
September 1996
DATA BOOK v3.0
PROTOCOL PROCESSING
CL-CD2231
Intelligent Communications Controller
4.2.7.2 Receiver Options device receiver control-bit selected following options:
Option
RxChk (COR3) RTPR
Description
RxChk set, receiver tests each frame reports result. RxChk clear, receiver makes computation. RTPR timer disabled when bits zero. RTPR enabled with non-zero value. Section 4.5.
SLIP Processing
NOTE: SLIP, MNP®4, Automatic In-Band Flow Control modes only available Revision later devices.
During receipt frame, CL-CD2231 makes following substitutions:
When `ESC' character found data stream, only `ESC_END' `ESC_ESC' characters follow. These character sequences replaced with single character: sequence `ESC', replaced with `END'. sequence `ESC', replaced with `ESC'. `ESC_END' `ESC_ESC'
4.3.1 Framing defined original implementation, SLIP frames with `END' character have beginning character. However, RFC-1055 suggests that frames begin with `END' characters. CL-CD2231 uses `END' character essentially opening closing flags. defined characters (see table below) fixed (hardcoded) cannot changed user.
Defined Character
ESC_END ESC_ESC
Encoding
0xC0 0xDB 0xDC 0xDD
Even though characters `ESC_END' `ESC_ESC' only valid characters following `ESC', RFC-1055 suggests that when other characters encountered, `ESC' should discarded second character should kept unmodified. CL-CD2231 follows this convention.
SLIP protocol prohibits in-band flow control. such, CL-CD2231 does respond XOFF characters special way, the

Other recent searches


TMP87PS68DFG - TMP87PS68DFG   TMP87PS68DFG Datasheet
STM32F101xx - STM32F101xx   STM32F101xx Datasheet
STM32F103xx - STM32F103xx   STM32F103xx Datasheet
SN74ALS113A - SN74ALS113A   SN74ALS113A Datasheet
SN54ALS113A - SN54ALS113A   SN54ALS113A Datasheet
MM74HCT14 - MM74HCT14   MM74HCT14 Datasheet
MAX1779 - MAX1779   MAX1779 Datasheet
IHW25N120R2 - IHW25N120R2   IHW25N120R2 Datasheet
CMT01N60 - CMT01N60   CMT01N60 Datasheet
BL55077 - BL55077   BL55077 Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive