beautypg.com

6 trying out a keypad – Matrix Orbital GLK24064-25 Legacy User Manual

Page 7

background image

2. Wire the connector to the power supply. On most connectors the RED lead will go to +5V and the

BLACK lead to GND.

Do not connect the GLK24064-25 to a spare floppy drive power lead in the

PC; the wiring is not correct and the unit will be damaged.

NOTE The Manufacturer’s Warranty becomes void if the unit is subjected to over-voltage

or reversed polarity.

3. Connect the display to the PC using the serial cable and adapter if required.

4. Connect the power connector, making sure that the +5V goes to V+ as shown in the diagram. Turn on

the power: the LCD backlight should come on.

5. Use the mogd.exe program to exercise some of the features of the display to make sure everything

works properly.

6. To experiment with typing text, run a PC terminal program, such as Hyperterm. Make sure it’s con-

figured to use the correct port. Set the baud rate to 19,200.

If characters are typed on the keyboard, they should now appear on the display screen. Note that CR,

backspace etc., will not have any effect. Text will wrap around to the next line when the end of a line has

been reached.

1.6 Trying out a Keypad

Since a number of different keypad types can be connected to the display, the results may be a little

unpredictable. At this point all we need to do is make sure that the keypad and interface work, and possibly

generate an ASCII map for any programming needs.

The keypad interface on the display converts a row / column connection to an ASCII character. By

default, a keypress is transmitted as serial data immediately. Keypad buffering can be selected using the

appropriate commands.

1.6.1 Here’s what to do:

1. The PC should be running a terminal program, such as Hyperterm (as in the previous section).

2. With the display connected to the PC, plug in the keypad. If the connector has fewer pins than the one

on the display, center it as well as possible.

NOTES

• The keypad connector must be wired with columns on one side and rows on the other

side of the center of the connector. If the keypad isn’t wired this way an adapter must

be made or the connector must be rewired to meet this requirement.

• The connector is reversible. Reversing the connector will not damage the keypad or

the display, but will however, change the ASCII character map.

3. Press a key on the keypad. An upper case ASCII character (A-Y) should appear on the PC screen.

Different keys should generate different characters.

Matrix Orbital

GLK24064-25

3