144
Operation Theory
8164 Interrupt Service Routine (ISR) with DOS
A DOS function library is included with the card for developing
applications under DOS environment. This library also includes
a few functions to work with the ISR. It is highly recommended
that programs be written according to the following example for
applications working with the ISR. Since the PCI bus has the
ability to do IRQ sharing when multiple cards are installed,
each card must have a corresponding ISR. The library pro-
vided have the names of the ISR fixed, for example:
_8164_isr0(void), _8164_isr1(void)…etc. A sample program is
described below. It assumes that two cards are present in the
system, axes 1 and 5 are requested to work with the ISR:
// header file declare
#include“pci_8164.h”
void main(void) {
I16 TotalCard,i; // Initialize cards
_8164_initial(&TotalCard);
if( TotalCard == 0 ) exit(1);
_8164_set_int_factor(0,0x1);// Set int factor
_8164_int_control(0,1);// enable int service
:
:
// Insert User’s Code in Main
:
//
_8164_int_control(0,0);// disable int
service
_8164_close();// Close PCI-8164
}
void interrupt _8164_isr0(void)
{
U16 irq_status;// Declaration
U16 int_type;
I16 i;
U32 i_int_status1[4],i_int_status2[4];
disable();
// Stop all int service
Summary of Contents for MPC-8164
Page 4: ......
Page 12: ......
Page 14: ...2 Introduction Figure 1 1 PCI 8164 block diagram ...
Page 50: ...38 Installation ...
Page 70: ...58 Signal Connections ...
Page 74: ...62 Signal Connections 3 17 1 Isolated input channels 3 17 2 Isolated output channels ...
Page 75: ...Signal Connections 63 3 17 3 Example of input connection ...
Page 76: ...64 Signal Connections 3 17 4 Example of output connections ...
Page 109: ...Operation Theory 97 ...
Page 110: ...98 Operation Theory ...
Page 111: ...Operation Theory 99 ...
Page 112: ...100 Operation Theory ...
Page 113: ...Operation Theory 101 ...
Page 148: ...136 Operation Theory Users can use this function to check if auto trigger is running Results ...
Page 280: ...268 Connection Example Figure 7 2 Connection of PCI 8164 with Panasonic Driver ...
Page 287: ...Connection Example 275 7 3 3 Mechanical Dimensions ...
Page 297: ...Connection Example 285 7 5 2 Mechanical Dimensions ...
Page 300: ...288 Connection Example 7 6 Wiring with DIN 814M J3A ...
Page 304: ...292 Connection Example 7 7 Wiring with DIN 814Y ...
Page 308: ...296 ...