57
Basic Procedures
Section 5-1
5-1-3
Control of the Interrupt from Board to PC
Here is the procedure by which to process interrupts from the CompoNet
Master Board to the user application:
[Initial process]
Before you start the communications (or you issue the command
OPEN_SYSTEM/OPEN_SYSTEMEX), set the Interrupt Mask (or select to
notify the interrupt by causes or to confirm it by polling).
[Process when an interrupt is made]
When an interrupt is made, you can confirm the interrupt cause and clear the
cause.
[Process to confirm the interrupt cause by polling]
Confirm the interrupt causes periodically.
Set the bits in the Interrupt Mask corresponding to the causes to be confirmed
by the polling into 0.
Step
Operation procedure
Access to Shared Memory
1.
Set the Interrupt Mask.
In the Interrupt Mask register (0x0004), set 1 to cause an
interrupt, or set 0 not to cause it.
Step
Operation procedure
Access to Shared Memory
1.
Confirm the interrupt
cause.
In the Interrupt Cause Indication register (0x0005),
confirm the interrupt cause.
2.
Clear the interrupt cause. In the Interrupt Clear register (0x0006), set the flags
corresponding to the generated interrupt causes into 1,
and clear the causes. When all interrupt causes are
cleared, the interrupt itself is cleared.
Step
Operation procedure
Access to Shared Memory
1.
Confirm the interrupt
causes periodically.
In the Interrupt Cause Indication register (0x0005),
confirm the interrupt cause periodically.
2.
Clear the interrupt
causes after confirming
them.
In the Interrupt Clear register (0x0006), set the flag
corresponding to the generated interrupt causes into 1,
and clear the causes.
Содержание 3G8F7-CRM21
Страница 4: ...iv...
Страница 10: ...x TABLE OF CONTENTS...
Страница 30: ...10 Specifications Section 1 7 1 7 3 Dimensions 3G8F7 CRM21 PCI unit mm 3G8F8 CRM21 CompactPCI unit mm...
Страница 46: ...26 Connecting the Communications Power Supply Cables Section 2 4...
Страница 74: ...54 Board Hardware Error Notification Section 4 8...
Страница 173: ...153 APPENDIX D Sample Program D 1 Sample Program 154...
Страница 230: ...210 Wiring for Power Supply Section E 5...
Страница 234: ...214 Index...
Страница 236: ...216 Revision History...
Страница 237: ......