Q-Code User Manual
Ver. 7.0 2021/11/30
274
Quality
Available Channel Serial Number
Medium
0 ~ 5
Normal
0 ~ 7
4.31.34 ReadRadj(Ri)
When using ReadRadj to get resistor value, it will return a value of 0x0~0x7. If no resistor is connected,
it will return 0xF. This command has no effect to sensitivity of Touch-Keys. Users may define their own
level of sensitivity based on the return value.
Recommended Resistor (+/- 1%)
Level
Ri
750K
0
0x0
360K
1
0x1
180K
2
0x2
120K
3
0x3
82K
4
0x4
51K
5
0x5
33K
6
0x6
16K
7
0x7
Other
-
0xF
Note:
1. NY4 / NY5 / NY5+ / NY6 / NY7 / NX1 do not support this command.
2. If not using external resistor to adjust sensitivity, user needs to connect Radj pad to VDD.
Ex.
[Path]
PowerOn
: ReadRadj(R0), Switch (R0)=[Sens0, Sens1, Sens2, Sens3]
; Read the value of external resistor.
Sens0: TouchKey_Sensitivity(0)
; Set the highest sensitivity.
Sens1: TouchKey_Sensitivity(2)
; Set sensitivity between the 2
nd
highest and
intermediate.
Sens2: TouchKey_Sensitivity(4)
; Set the intermediate sensitivity.
Sens3: TouchKey_Sensitivity(7)
; Set the lowest sensitivity.
4.31.35 SW_Reset
SW_Reset (Software Reset) is able to restore the system to power-up initial status. It is different to
hardware reset that IC does not reload the hardware initial option, and only reset RAM and IO. After
SW_Reset is executed, the program will return to the starting point of entry, the instructions followed by
SW_Reset will not be executed.
Note: