Electronic Components Datasheet Search
  English  ▼

X  

SCD1284 Datasheet(PDF) 98 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) 98 Page - Intel Corporation

Back Button 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 SCD1284 Datasheet HTML 99Page - Intel Corporation SCD1284 Datasheet HTML 100Page - Intel Corporation SCD1284 Datasheet HTML 101Page - Intel Corporation SCD1284 Datasheet HTML 102Page - Intel Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 98 / 176 page
background image
CD1284 — IEEE 1284-Compatible Parallel Interface Controller
98
Datasheet
char
serv_type, vector, channel, status, char;
int
char_count, i;
vector = inportb(SVCACKR);
/* gen. ack and get vector (read LIVR) */
channel = inportb(RICR) >> 2;
/* extract channel number from the RICR*/
serv_type = vector & 0x07;
/* mask RIVR to get type (good/
exception)*/
switch (serv_type) {
case 3:
/* 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
vector, channel;
int
char_count, i;
vector = inportb(SVCACKT);
/* retrieve and save transmit interrupt
value */
channel = inportb(TICR) >> 2;
/* 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
*/
}



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