© Quantum Research Group Ltd.
K
0
X
4B - KEY
Scope
n/a
T
OUCH
R
Bytes / Cmd # Bytes Rtnd
EPORTING FOR
G
ROUP
5.4 Setup Commands
Returns
n/a
0x00..0xFF
Setup functions are those that alter the behavior a key or a
group of keys. The setups are programmed into eeprom
locations in the part and ordinarily do not need to be
reprogrammed once set. However it is possible to change a
setup while the device is in normal operation without
interrupting the sensing function of the part.
Put
Get
n/a
1
n/a
1 or 8
1, 8, 64
Section 2.12, p. 8
Uppercase 'K'. Returns 1 or 8 bytes depending on the current
scope. The byte(s) returned contain a bit pattern which
indicates touched keys. A scope of a single key, row or
column will return one byte. A scope of all keys will return 8
bytes. If scope is one key, only the LSB is used to report.
Setup functions alter the internal eeprom, and this requires a
much longer time to complete than other commands; see
Table 4-1.
Setup 'put' commands become effective immediately after the
echo response of the command byte unless otherwise noted;
some setups require that the key(s) being altered be
The bitfields for a single key are:
b7
-
b6
-
b5
-
b4
-
b3
-
b2
-
b1
-
b0
key
recalibrated with the 'b' command before they take effect.
The bitfields for a single row (scope is X) are:
^A 0
X
01 - NEGATIVE
D
ETECT
T
Bytes / Cmd Byte 2 Range
HRESHOLD
b7
Y7
b6
Y6
b5
Y5
b4
Y4
b3
Y3
b2
Y2
b1
Y1
b0
Y0
Scope
1, 8, 64
1
Returns
0x01
0x04..0x40
Put
Get
2
1
0x04..0x40
n/a
The bitfields for a single column (scope is Y) are:
Section 2.1, p. 5
b7
X7
b6
X6
b5
X5
b4
X4
b3
X3
b2
X2
b1
X1
b0
X0
Ctrl-A. In Put mode, the command followed by a setting is
programmed into eeprom for the key(s) affected by scope.
The bitfields for a global report are:
1, 8, or 64 keys may be affected. Valid decimal values are:
b7 b6 b5 b4
b3
b2
b1
X7Y0 X6Y0 X5Y0 X4Y0 X3Y0 X2Y0 X1Y0 X0Y0
b0
byte1
byte2
byte3
byte4
byte5
byte6
byte7
byte8
4
5
6
7
17 20 25 30 35 45 55 64
8
10 12 15
7
6
5
4
3
2
1
0
X7Y1 X6Y1 X5Y1 X4Y1 X3Y1 X2Y1 X1Y1 X0Y1
15 14 13 12 11 10
X7Y2 X6Y2 X5Y2 X4Y2 X3Y2 X2Y2 X1Y2 X0Y2
23 22 21 20 19 18 17 16
X7Y3 X6Y3 X5Y3 X4Y3 X3Y3 X2Y3 X1Y3 X0Y3
31 30 29 28 27 26 25 24
X7Y4 X6Y4 X5Y4 X4Y4 X3Y4 X2Y4 X1Y4 X0Y4
39 38 37 36 35 34 33 32
X7Y5 X6Y5 X5Y5 X4Y5 X3Y5 X2Y5 X1Y5 X0Y5
47 46 45 44 43 42 41 40
X7Y6 X6Y6 X5Y6 X4Y6 X3Y6 X2Y6 X1Y6 X0Y6
55 54 53 52 51 50 49 48
X7Y7 X6Y7 X5Y7 X4Y7 X3Y7 X2Y7 X1Y7 X0Y7
63 62 61 60 59 58 57 56
Values other than the above will be rounded down.
9
8
In Get mode, the command will return a single byte according
to the rules of Section 5.2, page 21.
This setup controls key sensitivity by setting the counts of
signal delta needed to cause a detect. Higher = less
sensitive. Numbers should be 6 or greater under most
conditions to reduce the probability of noise detection.
Numbers greater than 20 indicate that the burst length is
probably too high. This setup interacts with Burst Length (^F).
^B 0
X
02 - POSITIVE
D
ETECT
T
Bytes / Cmd Byte 2 Range
HRESHOLD
Scope
1, 8, 64
1
Returns
0x02
0x04..0x40
Byte 1 is the first returned byte in the sequence.
Put
Get
2
1
0x04..0x40
n/a
In all the above examples a '1' in a bit position indicates that
the key is touched; a '0' indicates no touch.
Section 2.2, p. 6
Ctrl-B. In Put mode, the command followed by a setting is
programmed into eeprom for the key(s) affected by scope. 1,
8, or 64 keys may be affected. Valid decimal values are:
4
5
6
7
17 20 25 30 35 45 55 64
8
10 12 15
Values other than the above will be rounded down.
In Get mode, the command will return a single byte according
to the rules of Section 5.2, page 21.
This setup controls the ability of a key to recalibrate quickly
should the signal transition positive quickly, as when a touch
is prolonged enough to cause a recalibration, and when the
key is then 'untouched'. This condition can also be caused by
a foreign object being removed from a key. The value should
normally be set between 6 and 10 counts. If the value is very
high, the key will still recover by means of the drift
compensation process, albeit more slowly.
lQ
24
www.qprox.com QT60xx5B / R1.06