
E
0
X
45 - E
RROR
C
ODES
FOR
G
ROUP
Scope
0x00..0xFF
1 or 4
1
1, 4, 16
Get
n/a
n/a
n/a
n/a
Put
Returns
# Bytes Rtnd
Bytes / Cmd
Section 2.11, p. 7
Uppercase 'E'. Returns general error codes for a range of
keys defined by scope. Returns either 1 or 4 bytes depending
on whether a single key, row, column, or entire matrix are
selected.
The bitfields for single key scope are the same as for 'e'
above.
The bitfields for a single row (X) are
:
Y0
Y1
Y2
Y3
-
-
-
-
b0
b1
b2
b3
b4
b5
b6
b7
The bitfields for a single column (Y) are
:
X0
X1
X2
X3
-
-
-
-
b0
b1
b2
b3
b4
b5
b6
b7
The bitfields for a global response are
:
X0Y3
12
X1Y3
13
X2Y3
14
X3Y3
15
-
-
-
-
byte4
X0Y2
8
X1Y2
9
X2Y2
10
X3Y2
11
-
-
-
-
byte3
X0Y1
4
X1Y1
5
X2Y1
6
X3Y1
7
-
-
-
-
byte2
X0Y0
0
X1Y0
1
X2Y0
2
X3Y0
3
-
-
-
-
byte1
b0
b1
b2
b3
b4
b5
b6
b7
Byte 1 is the first returned byte in the sequence.
In all the above examples a '1' in a bit position indicates that
there is some type of error associated with the key. The use
of the 'e' command (or 'E' with scope set to a specific key) will
specify the nature of the error.
k
0
X
6B - R
EPORTING
OF
F
IRST
T
OUCHED
K
EY
Bytes / Cmd
Scope
0x00..0xFF
1
1
n/a
Get
n/a
n/a
n/a
n/a
Put
Returns
#Bytes Rtnd
Section 2.11, p. 7
Lowercase 'K'. Returns a byte that indicates which (if any) key
has been touched. The byte is structured as follows
:
k0
k1
k2
k3
-
-
-
m
b0
b1
b2
b3
b4
b5
b6
b7
Bits are used as follows
:
m - if '1', indicates that yet another key is active
k0..k3 - indicates the key number of a first detected key,
in the range 0..15 (0x00..0x0F).
If a reported key drops out while other keys are active, 'k' will
report one of the other active keys, but there is no rule for
which of the next keys gets reported in k0..k5.
If the byte returned has a value of 255 (0xFF), then no key
has been detected.
K
0x4B - Key Touch Reporting for Group
Bytes / Cmd
Scope
0x00..0xFF
1 or 4
1
1, 4, 16
Get
n/a
n/a
n/a
n/a
Put
Returns
# Bytes Rtnd
Section 2.11, p. 7
Uppercase 'K'. Returns 1 or 4 bytes depending on the current
scope. The byte(s) returned contain a bit pattern which
indicates touched keys. A scope of a single key, a row or a
column will return one byte. A scope of all keys will return 4
bytes.
The bitfields for a single key are
:
key
-
-
-
-
-
-
-
b0
b1
b2
b3
b4
b5
b6
b7
The bitfields for a single row (scope is X) are
:
Y0
Y1
Y2
Y3
-
-
-
-
b0
b1
b2
b3
b4
b5
b6
b7
The bitfields for a single column (scope is Y) are
:
X0
X1
X2
X3
-
-
-
-
b0
b1
b2
b3
b4
b5
b6
b7
The bitfields for a global report are
:
X0Y3
12
X1Y3
13
X2Y3
14
X3Y3
15
-
-
-
-
byte4
X0Y2
8
X1Y2
9
X2Y2
10
X3Y2
11
-
-
-
-
byte3
X0Y1
4
X1Y1
5
X2Y1
6
X3Y1
7
-
-
-
-
byte2
X0Y0
0
X1Y0
1
X2Y0
2
X3Y0
3
-
-
-
-
byte1
b0
b1
b2
b3
b4
b5
b6
b7
Byte 1 is the first returned byte in the sequence.
In all the above examples a '1' in a bit position indicates that
the key is touched; a '0' indicates no touch.
Quantum Research Group Ltd.
l
Q
20
www.qprox.com QT60161B / R1.03