參數(shù)資料
型號: CD1284
廠商: Intel Corp.
英文描述: IEEE 1284-Compatible Parallel Interface Controller with Two High-Speed Asynchronous Serial Ports
中文描述: 符合IEEE 1284兼容并行接口控制器兩個高速異步串行端口
文件頁數(shù): 98/176頁
文件大小: 2255K
代理商: CD1284
CD1284
IEEE 1284-Compatible Parallel Interface Controller
98
Datasheet
char
int
serv_type, vector, channel, status, char;
char_count, i;
vector = inportb(SVCACKR);
channel = inportb(RICR) >> 2;
serv_type = vector & 0x07;
exception)*/
switch (serv_type) {
case 3:
/* gen. ack and get vector (read LIVR) */
/* extract channel number from the RICR*/
/* mask RIVR to get type (good/
/* good data service */
char_count = inportb(RDCR); /* get number of characters in FIFO
*/
for ( i = 1; i <= char_count; i++) {/* - read that number of
chars */
char = inportb(RDSR);
/* read char from FIFO */
/* Code here would put the character in a buffer of some sort for
each
* channel. That code would be dependent on system software design
* so it won
t be shown here; this code just shows how to
manipulate the
* CD1284 registers to implement the poll mode service
acknowledge. */
}
break;
case 7:
/* exception data service request */
status = inportb(RDSR);/* by definition, only one char; get
status */
break;
}
outportb(EOSRR, 0x00);
/* write dummy value to EOSRR to terminate
*/
}
6.4.2
Serial Transmit Service
/* The transmit service acknowledge routine follows very nearly the same steps that
the receive service routine follows. The SVCACKT* input is activated to start the
service cycle, reading the contents of the TIVR, and the TICR is read to get the
channel number. */
service_txm( )
{
char
int
vector, channel;
char_count, i;
vector = inportb(SVCACKT);
value */
channel = inportb(TICR) >> 2;
/* retrieve and save transmit interrupt
/* extract channel number from the RICR*/
/* Buffer management code would set-up pointers to the next 12
* characters (maximum) to be sent on this channel. Again, buffer
* layout is system design dependent and won
t be shown here.
*/
for ( i = 0; i < char_count; i++) {/* transmit FIFO can take 12 characters
*/
outportb(TDR, *next_char++);
/* it is assumed that char_count and next_char is set up by buffer code
*/
}
outportb(EOSRR, 0x00);
/* write dummy value to EOSRR to terminate
*/
}
相關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
相關代理商/技術參數(shù)
參數(shù)描述
CD-12AFFM-QL8D01 功能描述:MIDDLE 制造商:amphenol ltw 系列:* 零件狀態(tài):在售 標準包裝:10
CD-12AFFM-QR8D01 功能描述:MIDDLE 制造商:amphenol ltw 系列:* 零件狀態(tài):在售 標準包裝:10
CD-12AMMM-QL8D01 功能描述:MIDDLE 制造商:amphenol ltw 系列:* 零件狀態(tài):在售 標準包裝:10
CD-12BFFA-LL7001 功能描述:MIDDLE 制造商:amphenol ltw 系列:* 零件狀態(tài):在售 標準包裝:10
CD-12BFFA-QL8SP0 功能描述:CONN PLUG FMALE 12POS CRIMP 制造商:amphenol ltw 系列:X-Lok 包裝:散裝 零件狀態(tài):在售 連接器類型:插頭,母型插口 針腳數(shù):12(數(shù)據(jù)) 外殼尺寸 - 插件:C 外殼尺寸,MIL:- 安裝類型:自由懸掛 端接:壓接 緊固類型:推挽式 朝向:帶標記 侵入防護:IP68 - 防塵,防水 外殼材料,鍍層:聚酰胺(PA),尼龍,玻璃纖維增強型 觸頭鍍層:金 特性:后殼,應力消除 電壓 - 額定:- 額定電流:5A 觸頭鍍層厚度:- 工作溫度:-20°C ~ 80°C 標準包裝:1