Q-Code User Manual
Ver. 7.0 2021/11/30
218
Note:
1. NY4 / NY5 / NY5+ / NY6 / NY7 / NX1 do not support this command.
2. If user sets Calibrate_OFF, the Touch-Keys won’t be calibrated while executing the
Enforce_Calibrate_Sleep command, and it will continue to execute the next command.
3. It’s strongly suggested that calibrate Touch-Keys once in a while to avoid changed
environment conditions causing poor reactions.
4. If there is an Enforce_Calibrate path, it will not be executed after Enforce_Calibrate_Sleep
is done.
5. After the Enforce_Calibrate_Sleep command is executed, IC will enter Sleep without
waiting for calibration to complete.
Ex. Every 0.5 seconds to enforce calibration on Touch-Key once.
[Path]
500ms: Enforce_Calibrate_Sleep
;
Every 500ms to enforce calibration on Touch-Key once
.
4.15.12 Ri = TouchKey(Px)
Save the status of TouchKey to Ri in the unit of Port and access the designated 4 pins of Port everytime.
NY9T001A/004A:x = PA, NY9T008A:x = PA/PB, NY9T016A:x = PA~PD.
Note: NY4 / NY5 / NY5+ / NY6 / NY7 / NX1 do not support this command.
Ex.
R0=TouchKey(PA)
;Save the status of PA.0~PA.3 to the current R0.
4.15.13 Var = Touchkey_Count(TouchKey)
This command will return the specified Count value that scanned byTouchKey to variable Var, it’s
applied for adjusting TouchKey setting.
TouchKey
: Key in the used Count value from 0 to (n-1) for returning the Count value to TouchKey.
Note: NY4 / NY5 / NY5+ / NY6 / NY7 / NY9T do not support this command.
Ex.
Var32_Count=TouchKey_Count(0)
; Sent the Count value of TouchKey0 to variable
Var32_Count.
4.15.14 Var = Touchkey_BGCount(TouchKey)
This command will return the specified Count value of TouchKey background to variable Var, it’s
applied for adjusting TouchKey setting.
TouchKey
: Key in the used Count value from 0 to (n-1) for returning the Count value to TouchKey.
Note: NY4 / NY5 / NY5+ / NY6 / NY7 / NY9T do not support this command.
Ex.
Var32_BGCount=TouchKey_BGCount(0)
; Sent the Count value of TouchKey0 to variable
Var32_BGCount.