參數(shù)資料
型號: CD1284
廠商: Intel Corp.
英文描述: IEEE 1284-Compatible Parallel Interface Controller with Two High-Speed Asynchronous Serial Ports
中文描述: 符合IEEE 1284兼容并行接口控制器兩個高速異步串行端口
文件頁數(shù): 94/176頁
文件大?。?/td> 2255K
代理商: CD1284
CD1284
IEEE 1284-Compatible Parallel Interface Controller
94
Datasheet
outportb(CAR, chan);
outportb(RTPR, 0x14);
outportb(TCOR, 0x01);
outportb(TBPR, 0x51);
outportb(RCOR, 0x01);
outportb(RBPR, 0x51);
outportb(COR1, 0x03);
outportb(COR2, 0x40);
outportb(COR3, 0x38);
fifo thresh = 8 */
while (inportb(CCR) != 0)/* make sure that CCR is zero before issuing
commands */
;
outportb(CCR, 0x4E);
/* issue COR changed command for COR1, 2, 3 */
outportb(COR5, 0x80);
/* enable ISTRIP */
outportb(SRER, 0x14);
/* enable receive and transmit interrupts */
while (inportb(CCR) != 0)/* make sure that CCR is zero before issuing
commands */
;
outportb(CCR, 0x1A);
/* issue receiver and transmitter enable command to
CCR */
}
/* set channel number in CAR */
/* set channel time-out value (20ms) */
/* constants for 25 MHz clock – clock option*/
/*
– baud rate period */
/* constants for 25 MHz clock – clock option*/
/*
– baud rate period */
/* no parity, 1 stop bit, 8 bit chars */
/* auto. in-band flow control */
/* transp. flow-control, special char 1 & 2 detect,
6.3
Serial Poll Mode Examples
The CD1284 provides a set of seven registers dedicated to Poll-mode operation, described in
Chapter 5.0
. This section shows one of many ways that these registers are used to detect and
service requests from any of the channels receiver, transmitter, or modem signal change functions.
The primary registers involved in polling are: SVRR, RIR, TIR, MIR, and CAR. The
supplementary registers are: RIVR, TIVR, and MIVR. Of the latter three registers, only RIVR is
actually used. RIVR provides the service request status for
good
data or exception data. The
TIVR and MIVR provide redundant information and are rarely used. Other registers related to
service requests (TDR, RDSR, MISR, and so on) perform the same functions as in hardware-
acknowledged service requests. The parallel channel uses a slightly different register manipulation
procedure and is shown separately. The top-level polling routine is the same regardless of the type
of request serviced.
Once again, C code fragments describe the functions. As with other coding examples, it is assumed
that register addresses are defined elsewhere, such as in a header file. The routines cannot be
considered complete. The routines cannot be considered complete; some pieces are dependent on
the system software design and the code presented is only an example. The pieces do, however,
show methods used to implement the poll mode service request/service acknowledge sequence.
6.3.1
Polling Routine Examples
6.3.1.1
Scanning Loop
/* Poll-mode code fragments routinely check for any servicing requests and branches
to the appropriate service routine. The code prioritizes service requests as receive,
transmit, modem and parallel, in that order. System design dictates the actual
priorities required. Note that the routine ignores the state of the DMA active bit.
*/
poll( )
{
char
status;
char
rx_stat = tx_stat = md_stat = 0, par_stat = 0;
if (status = inportb(SVRR) & 0x0F) {/* Mask off DMA status */
相關(guān)PDF資料
PDF描述
CD13002 NPN SILICON PLANAR EPITAXIAL, HIGH VOLTAGE FAST SWITCHING POWER TRANSISTOR
CD14538 CMOS DUAL PRECISION MONOSTABLE MULTIVIBRATOR
CD14538BMS CMOS Dual Precision Monostable Multivibrator
CD15B-15MB CD105B
CD105B CD105B
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
CD-12AFFM-QL8D01 功能描述:MIDDLE 制造商:amphenol ltw 系列:* 零件狀態(tài):在售 標(biāo)準(zhǔn)包裝:10
CD-12AFFM-QR8D01 功能描述:MIDDLE 制造商:amphenol ltw 系列:* 零件狀態(tài):在售 標(biāo)準(zhǔn)包裝:10
CD-12AMMM-QL8D01 功能描述:MIDDLE 制造商:amphenol ltw 系列:* 零件狀態(tài):在售 標(biāo)準(zhǔn)包裝:10
CD-12BFFA-LL7001 功能描述:MIDDLE 制造商:amphenol ltw 系列:* 零件狀態(tài):在售 標(biāo)準(zhǔn)包裝:10
CD-12BFFA-QL8SP0 功能描述:CONN PLUG FMALE 12POS CRIMP 制造商:amphenol ltw 系列:X-Lok 包裝:散裝 零件狀態(tài):在售 連接器類型:插頭,母型插口 針腳數(shù):12(數(shù)據(jù)) 外殼尺寸 - 插件:C 外殼尺寸,MIL:- 安裝類型:自由懸掛 端接:壓接 緊固類型:推挽式 朝向:帶標(biāo)記 侵入防護:IP68 - 防塵,防水 外殼材料,鍍層:聚酰胺(PA),尼龍,玻璃纖維增強型 觸頭鍍層:金 特性:后殼,應(yīng)力消除 電壓 - 額定:- 額定電流:5A 觸頭鍍層厚度:- 工作溫度:-20°C ~ 80°C 標(biāo)準(zhǔn)包裝:1