| 전자부품 데이터시트 검색엔진 |
|
SCD1284 데이터시트(PDF) 96 Page - Intel Corporation |
|
|
|||||||||||||||||||||||||||||
SCD1284 데이터시트(HTML) 96 Page - Intel Corporation |
|
96 / 176 page ![]() CD1284 — IEEE 1284-Compatible Parallel Interface Controller 96 Datasheet /* 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. */ } outportb(RIR, save_rir & 0x3f);/* terminate service ack. sequence */ outportb(CAR, save_car); /* restore original CAR* / return(0); break; case 7: /* exception data service request */ status = inportb(RDSR);/* by definition, only one char; get status */ outportb(RIR, save_rir & 0x3f);/* terminate service ack. sequence */ outportb(CAR, save_car); /* restore original CAR */ return(status); /* just return the error type */ break; } } 6.3.1.3 Serial Transmit Service /* The transmit service acknowledge routine follows very nearly the same steps that the receive service routine follows. This time, the TIR is used to force the switch to a transmit service for the requesting channel. */ service_txm( ) { char save_tir, save_car, channel; int char_count, i; save_tir = inportb(TIR); /* retrieve and save transmit interrupt value */ channel = save_tir & 0x03; /* extract channel number from the TIR*/ save_car = inportb(CAR); /* save CAR for restore */ outportb(CAR, save_tir); /* switch CD1284 to service ack. context */ /* 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(TIR, save_tir & 0x3f);/* terminate service ack. sequence */ outportb(CAR, save_car); /* restore original CAR */ return(0); } 6.3.1.4 Modem Service /* Code to handle modem signal change service request can be simple or complex depending on whether port control is handled directly in the service routine or simply noted with status returned. The following routine services the request and returns the status of which signals changed with the channel number OR’ed into the |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |