Mitsubishi Electronics MR-MC210 Sleep Apnea Machine User Manual


 
7 - 24
7. AUXILIARY FUNCTION
7.6.4 Interrupt processing example
Write the interrupt signal
clear register (Note 2)
Set an event for the interrupt
service routine (ISR)
Interrupt Handler
CH number S 1
No
Yes
No
Yes
CH number S S 1
Is the maximum number
of CH S?
Finish
Capture of system interrupt factors
and interrupt factors for each axis
Execution of processing for each
cause for interrupt (Note 3)
No
Yes
Turn on the interrupt processing
complete signal (ITE)
Waiting for setting of event
from interrupt handler
Interrupt service routine
(ISR)
Is the outputting with
factor of interrupt (ITO) OFF?
Is the during
interrupt output signal
(Note1) for CH number
S ON?
Note 1. Confirm the bit(s) for the during interrupt output signal (address 20004h on the dual port memory).
(If the bit(s) are on: a current interrupt is being output, while if the bit(s) are OFF: there is not a current interrupt)
2. When 1 is written in the interrupt signal clear register (address 20008h (CH1) on the dual port memory), the output of the
interrupt is cancelled.
3. Implement processing necessary for the different causes of interrupts, such as for completion of operation and generation of an
operation alarm.
(example) When an operation alarm occurs, send a stop request to other axes that are in operation.
API LIBRARY
This interrupt processing example is processed by the device driver thus
processing by user program is unnecessary.