TA600032-EN0/0
- 79 -
6.8
Interrupt request
"G9006" can output "Interrupt request" signal (INT pin) to "Local CPU".
6.8.1
Interrupt request signal
The logic of "Interrupt request" signal (INT pin) is negative.
When the "Interrupt factor" is cleared, the "Interrupt request" signal returns to "H level".
6.8.1.1
Multiple interrupt requests
When there are multiple "Interrupt factors" and one of the "Interrupt factors" is cleared, "INT = H level" is output.
When other "Interrupt factors" remain, "INT = L level" is output again after 8 cycles of the "CLK" signal.
This allows the "Local CPU" to process "Interrupt request" using the falling edge of the "Interrupt request" signal (INT pin). When
there are no uncleared "Interrupt factors", "INT = H level" is kept output.
Interrupt clear procedure)
1. The "Local CPU" triggers the "Interrupt request" to call the interrupt routine ("INT = L level" or the falling edge of the
"Interrupt request" signal).
2. The "Local CPU" executes the subsequent processing in the interrupt routine.
1)
Read "Status" (MSTS) by "Status reading" control command.
2)
Clear "Interrupt factors" other than "Port change event" (MSTS.IPTC) interrupt.
They are cleared by writing the corresponding interrupt clear operation command.
3)
When "MSTS.IPTC = 1" is set, the following processing is selected depending on whether or not a "Port change
interrupt information acquisition failure event" (MSTS.IPOV) interrupt has been generated.
3-a) When "MSTS.IPOV = 1" is set, all "Port change interrupt flags" can be cleared using the "Port change interrupt
flag clear" control command.
If necessary, the "Port data" is confirmed using the "Port change interrupt flag reading" control command and the
"Port data memory reading" control command at the beginning.
3-b) When "MSTS.IPOV = 0" is set, the "Port change interrupt information reading" control command can be
repeatedly written until "PCII.Pn = 0000b" is read.
4)
End the interrupt routine.
3. Return to step 1.
For details on the "PCII.Pn", see "5.2.2.3.12
Port change interrupt information read".
R e m a r k s
If the error interrupt remains in "Interrupt factors", the "Interrupt request" signal (INT pin) is output when writing to clear the
"Interrupt factor" is completed (after the "SS" signal rises).
The error interrupt includes a "Device setting change error" interrupt, a "Port data write error" interrupt, or a "Port data write
processing error" interrupt.