Q-Code User Manual
Ver. 7.0 2021/11/30
236
4.21 Interrupt Command
Interrupt Command
-
4.21.1 INT_ON
Activate interrupt.
Note:
1. NY4 / NY6 / NY7 / NY9T / NX1 do not support this command.
2. Even though interrupt is activated, system will enter sleep mode if no play or delay
commands are executing.
Ex.
[Path]
PowerOn
: KEY1, INT_ON
; Turn on interrupt.
4.21.2 INT_OFF
Deactivate interrupt.
Note: NY4 / NY6 / NY7 / NY9T / NX1 do not support this command.
Ex.
[Path]
PowerOn
: KEY1, INT_OFF
; Disable interrupt.
4.21.3 INT_RET
Return to interrupt service vector.
Note:
1. NY4 / NY6 / NY7 / NY9T / NX1 do not support this command.
2. If jump is used inside interrupt routine, “INT_RET” is needed to jump back to interrupt back,
or system may not work correctly.
Ex.
[Path]
PowerOn
: KEY1, INT_ON, INT=1.024
; Turn on interrupt and set interrupt time = 1ms.
Interrupt: R0=0xF?Change, PA=0x0,
; If R0 = 0xF, jump to label “change”, else execute
INT_RET
; next command.
Change: PA=0xF, INT_RET
; After executing PA=0xF, return back to interrupt
; vector.