Basic Instructions
2 − 107
Main program
INT0 program
INT0 input
on
off
INT5 program
Execution
Disabled Enabled
ICTL instruction
INT5 input
on
off
Condition
Execution
Execution
Execution
How to start the interrupt program when executing the high−speed counter match
ON/match OFF instruction.
1
Set the counter by the system register. (It is not necessary to set the external interrupt.)
2
Describe the interrupt program on the program. The high−speed counter corresponds to the interrupt
program as below.
Interrupt
Program No.
FP0/FP−e FPΣ/FP0R FP−XRy FP−XTr
INT0 ch0 ch0 ch0 ch0
INT1 ch1 ch1 ch1 ch1
INT2 — — ch2 ch2
INT3 ch2 ch2 ch3 ch3
INT4 ch3 ch3 ch4 ch4
INT5 — — ch5 ch5
INT6 — — ch6 ch6
INT7 — — ch7 ch7
INT8 — — ch8 —
INT9 — — ch9 —
INT10 — — — —
INT11 — — chA —
INT12 — — chB —
INT13 — — — —
3
Enable the setting by the ICTLinstruction.
Enable ICTL, H0, H9 −INT0 and INT7.
4
Start the match ON/match OFF instruction.
5
The program is executed when the conditions for the match ON/match OFF instruciton are met.
Example for clearing interrupt programs
Example:
ICTL, H100, HFEDF
S1
S2
S1: H100
Clears interrupts from specified input contact or target value
match interrupts.
FP0/FP0R/FP−e/FPΣ/FP−X