3
EA KIT129-6
EXTERNLA KEYBOARD
(EA KIT129-6LW ONLY)
A keyboard (anything from individual keys to a 3x5 matrix keyboard, J4)
can be connected at the plug-in connection. The connected keys are
debounced by means of software. Please note that it is only possible to
connect an external keyboard to versions without an integrated touch
panel.
Each key is switched between an output and an input. Each input has a
100k
Ω
pullup. Up to 5 keys can be connected at each output.
To find out double-key-strokes all outputs must be decoupled by a
Schottky-Diode (e.g. BAT 46).
Transmitting the keystrokes
At each keystroke, the associated key number (1..15) is transmitted or an
internal Touch Makro (only if defined) will be started. The release of the key
is not transmitted. If the release of the key is to be transmitted as well, this
can be done by defining touch macro no. 0. The automatic keyboard scan
can be deactivated by means of the command "ESC T A 0". If the
handshake line (e.g. CTS) does not permit transmission, keystrokes can
be lost.
The key number can be determined as follows:
Key number = (output -1) * 5 +input
(output: a number between 1 and 3; input: a number between 1 and 5).
TOUCH PANEL
(EA KIT129X-LWTP ONLY)
Versions EA KIT129-6LWTP and KIT129J-6LWTP are supplied with an integrated touch panel with 15
fields. The graphics kit offers convenient commands supporting this touch panel. It is possible, for
example, to group a number of touch fields to form a single large key and then draw and label the key.
You can also assign a record code (1..255) to the key you have defined. If a return code of 0 is assigned,
the key is disabled and has no effect when it is pressed.
When the touch keys are touched, they can be automatically inverted and a tone can sound, indicating
they have been touched. At the same time, the defined return code of the key is transmitted via the serial
interface, or an internal touch macro with the number of the return code is started.
Example:
Definition of a key from field 3 to 9 with the return code 65=´A´ and the text
"STOP". Note: Before individual keys are defined, all fields should be disabled
by means of "ESC T R".
Example
Codes to be output
Note
For compiler
#TH 11, 21, ´A´, 2, "STOP"
The end code 0 is not specified
here
As ASCII
ESC
T
H
.
.
A
.
S
T
O
P
.
The dots ´.´ stand for ASCII
characters that are not to be
displayed
In hex
$1B $54 $48 $0B $15 $41 $02 $53 $54 $4F $50 $00
In decimal
27
84
72
11
21
65
2
83
84
79
80
0
ESC code
command for
"define touch"
horizontal
direction
touch count
top left
touch count
bottom right
return
code
draw field
with border
end of text
Matrix Keypad Connector
J4
Pin
Symbol
Function
1
IN 1
Input Column 1
2
OUT 1
Output Line 1
3
IN 2
Input Column 2
4
OUT 2
Output Line 2
5
IN 3
Input Column 3
6
OUT 3
Output Line 3
7
IN 4
Input Column 4
8
NC
not connected
9
IN 5
Input Columne 5
10
NC
not connected
Example