Register-Level Programming
Chapter 4
PC-DIO-24 User Manual
4-16
© National Instruments Corporation
Table 4-4. Interrupt Enable Signals for All Mode Combinations
Port A
Port A
Port B
Port B
Port A
Port A
Port B
Port A
Interrupt
Mode 2
Mode 2
Mode 1
Mode 1
Mode 1
Mode 1
Mode 0
Mode 0
Enable
Output
Input
Output
Input
Output
Input
Bit
No
No
No
No
No
No
Yes
Yes
N/C
No
No
No
No
No
Yes
Yes
No
PC6, PC2
No
No
No
No
Yes
No
Yes
No
PC4, PC2
No
No
No
Yes
No
No
No
Yes
PC6, PC4
No
No
No
Yes
No
Yes
No
No
PC6
No
No
No
Yes
Yes
No
No
No
PC4
No
No
Yes
No
No
No
No
Yes
PC6, PC4
No
No
Yes
No
No
Yes
No
No
PC6
No
No
Yes
No
Yes
No
No
No
PC4
No
Yes
No
No
No
No
Yes
No
PC2
No
Yes
No
Yes
No
No
No
No
N/C
No
Yes
Yes
No
No
No
No
No
N/C
Yes
No
No
No
No
No
Yes
No
PC2
Yes
No
No
Yes
No
No
No
No
N/C
Yes
No
Yes
No
No
No
No
No
N/C
The recommended jumper settings for W1 are as follows.
•
PC6 — If port A is in mode 1 input.
•
PC4 — If port A is in mode 1 output.
•
PC2 — If port A is in mode 2 (port B is not in mode 1).
To enable interrupts from the PC-DIO-24, select PC2, PC4, or PC6 as the active low interrupt
enable signal. Initially, set the selected bit high to disable unwanted interrupts.
Program the PC-DIO-24 for the I/O mode desired. To enable interrupts from the 82C55A, set
either the INTEA or the INTEB bit to enable interrupts from port A or port B, respectively. In
mode 2, set either INTE1 or INTE2 for interrupts on input or output transfers. After interrupts
have been enabled from the 82C55A, clear the selected interrupt enable bit to enable interrupts
from the PC-DIO-24.
An external signal can be used to interrupt the PC-DIO-24 when port A or port B is in mode 0.
Select PC2, PC4, or PC6 as the interrupt enable bit and clear the selected bit to enable interrupts.
Connect the external signal that should trigger an interrupt to either PC3 or PC0. When the
external signal becomes logic high, an interrupt request occurs. To disable the external signal
interrupt, set the selected interrupt enable bit to logic high.
Summary of Contents for PC-DIO-24
Page 51: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 2 National Instruments Corporation...
Page 52: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 3 PC DIO 24 User Manual...
Page 53: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 4 National Instruments Corporation...
Page 54: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 5 PC DIO 24 User Manual...
Page 55: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 6 National Instruments Corporation...
Page 56: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 7 PC DIO 24 User Manual...
Page 57: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 8 National Instruments Corporation...
Page 58: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 9 PC DIO 24 User Manual...
Page 59: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 10 National Instruments Corporation...
Page 60: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 11 PC DIO 24 User Manual...
Page 61: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 12 National Instruments Corporation...
Page 62: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 13 PC DIO 24 User Manual...
Page 63: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 14 National Instruments Corporation...
Page 64: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 15 PC DIO 24 User Manual...
Page 65: ...Appendix C OKI 82C55A Data Sheet PC DIO 24 User Manual C 16 National Instruments Corporation...
Page 66: ...Appendix C OKI 82C55A Data Sheet National Instruments Corporation C 17 PC DIO 24 User Manual...