Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

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

Back Button 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 SCD1284 Datasheet HTML 99Page - Intel Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 95 / 176 page
background image
IEEE 1284-Compatible Parallel Interface Controller — CD1284
Datasheet
95
switch (status) {
case 1:
/* all values that include a receive
request */
case 3:
case 5:
case 7:
case 0xF:
rx_stat = service_rec( );
return(rx_stat);
break;
case 2:
/* all values that include transmit but
not receive */
case 6:
case 0xA:
case 0xE:
tx_stat = service_txm( );
return(tx_stat);
break;
case 4:
/* modem service request */
case 0xC:
md_stat = service_mdm( );
return(md_stat);
break;
case: 8:
/* parallel port service request */
par_stat = service_par();
return(par_stat);
break;
default:
/* can’t happen */
break;
}
}
}
Once the code above locates an active request posted in the SVRR, it calls the appropriate
subroutine to service the request. The service routines follow.
6.3.1.2
Serial Receive Service
/* The receive service acknowledge cycle begins by reading the RIR. This register
contains the necessary information to switch the CD1284 into the correct service
acknowledge context. The RIR is saved for use at the end of the routine and then
copied into the CAR. The act of copying the RIR into the CAR forces the context
switch. The channel number requesting service is extracted from the RIR. The RIVR
register indicates whether the request is for good data or exception data and is
used to correctly handle the request. At the end of the service, the upper two bits
in the RIR are cleared causing the switch out of the service acknowledge context. */
service_rec( )
{
char
serv_type, save_rir, save_car, channel, status, char;
int
char_count, i;
save_rir = inportb(RIR);
/* retrieve and save receive interrupt
value */
channel = save_rir & 0x03;
/* extract channel number from the RIR*/
save_car = inportb(CAR);
/* save CAR for restore */
outportb(CAR, save_rir);
/* switch CD1284 to service ack. context
*/
serv_type = inportb(RIVR) & 0x07; /* read vector register; 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 */



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