Q-Code User Manual
Ver. 7.0 2021/11/30
59
NX1
Matrix Scan Setup Time
User can select the output setup time of matrix. For example, when
user sets the time as 256us, to avoid input pins are at unstable state,
Q-Code
will delay 256us to access the status of input pins after output
pins are set as low level.
NY4 / NY5 support 0 / 512us / 1024us / 1536us. (Default =
512us)
NY5+ / NY6 / NY7 support 0 / 256us / 512us / 768us / 1024us.
(Default = 256us)
Note:
1. NY9T / NX1 do not support this option.
2. Due to Q-Code processes time through polling, the actual time will have deviation that
base on the loading.
Ex.
Matrix_Scan_SetupTime
= 256us
; Set the matrix scan setup time as 256us.
Short Debounce
User can select the short debounce time within the range of 0 to 1ms. (Doesn’t support Matrix Key)
Note:
1. NX1 does not support this option.
2. Due to Q-Code processes time via polling, the actual time will have deviation. For more
precise debounce time or different debounce time, user needs to program assembly
code.
Ex.
ShortDebounce
= PA.0, PA.1, PA.2
; PA.0, PA.1 and PA.2 are Short Debounce
functions.
3.9.1.17 Interrupt Service
NY5
Q-Code
provides different interrupt services for three diverse
functions, they are Action, QIO and Melody. For higher accuracy
requirements, user can change the function to interrupt.
NY9T
Q-Code
provides 2 types of interrupr service: Action and Timer.
Note:
1. NY4 / NX1 do not support this option.
2. NY5+ / NY6 / NY7 always executes the interrupt service to
achieve higher accuracy requirements of all functions.
3. Interrupt service only supports a function at one time, and it cannot be changed after
setting.