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.
Summary of Contents for 3G8F7-CRM21
Page 4: ...iv...
Page 10: ...x TABLE OF CONTENTS...
Page 46: ...26 Connecting the Communications Power Supply Cables Section 2 4...
Page 74: ...54 Board Hardware Error Notification Section 4 8...
Page 173: ...153 APPENDIX D Sample Program D 1 Sample Program 154...
Page 230: ...210 Wiring for Power Supply Section E 5...
Page 234: ...214 Index...
Page 236: ...216 Revision History...
Page 237: ......