Electronic Components Datasheet Search
  English  ▼

X  

SCD1284 Datasheet(PDF) 94 Page - Intel Corporation

Part # SCD1284
Description  IEEE 1284-Compatible Parallel Interface Controller with Two High-Speed Asynchronous Serial Ports
PDF  176 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  INTEL [Intel Corporation]
Direct Link  http://www.intel.com
Logo INTEL - Intel Corporation

SCD1284 Datasheet(HTML) 94 Page - Intel Corporation

Back Button SCD1284 Datasheet HTML 90Page - Intel Corporation SCD1284 Datasheet HTML 91Page - Intel Corporation SCD1284 Datasheet HTML 92Page - Intel Corporation SCD1284 Datasheet HTML 93Page - Intel Corporation SCD1284 Datasheet HTML 94Page - Intel Corporation SCD1284 Datasheet HTML 95Page - Intel Corporation SCD1284 Datasheet HTML 96Page - Intel Corporation SCD1284 Datasheet HTML 97Page - Intel Corporation SCD1284 Datasheet HTML 98Page - Intel Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 94 / 176 page
background image
CD1284 — IEEE 1284-Compatible Parallel Interface Controller
94
Datasheet
outportb(CAR, chan);
/* set channel number in CAR */
outportb(RTPR, 0x14);
/* set channel time-out value (20ms) */
outportb(TCOR, 0x01);
/* constants for 25 MHz clock – clock option*/
outportb(TBPR, 0x51);
/*
– baud rate period */
outportb(RCOR, 0x01);
/* constants for 25 MHz clock – clock option*/
outportb(RBPR, 0x51);
/*
– baud rate period */
outportb(COR1, 0x03);
/* no parity, 1 stop bit, 8 bit chars */
outportb(COR2, 0x40);
/* auto. in-band flow control */
outportb(COR3, 0x38);
/* transp. flow-control, special char 1 & 2 detect,
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 */
}
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 */



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com