LK202-24-USB rev 1
17
3. Keypad Interface
This chapter describes the keypad interface and associated commands in detail.
3.1 General
The LK202-24-USB keypad interface processes the keypad row/column matrix into a serial data byte
stream. Aside from this processing, the keypad has no effect on the LK202-24-USB display. If you need to
send keystrokes to the display, they must be routed through your controller.
3.2 Connections
Figure 3-1 Keypad Connector
The connector is not "keyed" so your keypad will probably plug in either of two ways. The LK202-24-USB
will not be damaged by reversing the connector, but your keypad will generate a different ASCII character
mapping for each position. If your connector has fewer than 10 pins it should be centered on pins 6 and 7 of
the connector.
The returned key codes are as follows, but note that your keypad may be laid out in a different pattern. If
this is the case, you will need to interpret the key codes differently. The diagram 1 shows the logical layout
(row 1, column 1 in upper left). The connector for the keypad is a 10 pin 0.1" spacing male header. Pin 1 is
indicated in Figure 2-1. Pins 1 through 5 are columns and pins 6 through 10 are rows. The keypad is
scanned whenever a key is pressed: there is no continuous key scan. This means that key presses are dealt
with immediately without any appreciable latency. This also prevents electrical noise which is often caused
by continuous key scans.
Columns
1 2 3 4 5 6
1
A B C D E F
2
G H I J K L
3
M N O P Q R
Rows
4
S T U V W X
Note:
The keypad connector must be wired with columns on one side and rows on the other side of the
center of the connector. If your keypad isn't wired this way you will need to make an adapter or rewire the
connector to meet this requirement.