7
PROGRAMMING
7.3 Program Example when the Coincidence Detection Interrupt Function is Used
7
- 14
1
OVE
R
VI
EW
2
SYS
TEM
CONFIGURA
T
ION
3
SP
ECIFI
C
A
T
IO
N
S
4
PRO
C
EDURES AND
SETT
ING
S
BEFO
RE
O
PERA
T
IO
N
5
FUNCTIONS
6
UTIL
IT
Y P
A
C
K
A
G
E
(G
X Conf
igu
rat
or-CT)
7
PROGRA
MMING
8
T
R
OUB
L
ES
HO
O
T
ING
(3) Program example
An interrupt must be enabled using the IMASK instruction before using an interrupt
pointer.
POINT
• When the above described program is executed, only I50 interrupt
program is execution-enabled and other interrupt programs are
execution-disabled.
When executing interrupt programs other than I50, set the corresponding
bit for interrupt program to be executed to 1 (enabled).
• For details of the IMASK instruction, refer to QCPU (Q Mode)/QnACPU
Programming Manual (Common Instructions).
QD63P6 program
Interrupt program
<Enabling interrupt of I50>
<Interrupt program>