Allen-Bradley 1784-KTX Reference Manual page 110

Table of Contents

Advertisement

/**** If good, clear interrupt type ****/
else
dp–>int_status_to_host = 0;
break;
/**** A confirmation is available ****/
case CONFIRMATION_INTERRUPT :
/**** The application programmer needs to write a routine
***** that handles confirmations.
***** provided show how to do it when the application
***** waits for a confirmation before proceeding to the
***** next command.
***** to match up confirmations with pending commands
***** using the transaction number and acknowledge the
***** confirmation.
****/
break;
/**** A processing problem is an unrecoverable error ****/
case PROCESSING_PROBLEM_INTERRUPT
unrecoverable_error(dp);
break;
/**** Unknown interrupt type ****/
default :
break;
}
}
/* Need to issue the End Of Interrupt to the PIC controller(s) */
outportb(LowPICPort, EOI);
if (InterruptNumber > 7) outportb(HighPICPort, EOI); /* if int > 7 then second PIC also */
}
The other examples
An asynchronous version would need
:
Appendix B
Programming Examples
B-31

Advertisement

Table of Contents
loading

This manual is also suitable for:

1784-ktxd1784-kts

Table of Contents