Matrix Orbital LK204-25 User Manual

Hide thumbs Also See for LK204-25:
Table of Contents

Advertisement

Quick Links

LK204-25
User Manual
LK204-25 rev 1
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the LK204-25 and is the answer not in the manual?

Questions and answers

Summary of Contents for Matrix Orbital LK204-25

  • Page 1 LK204-25 User Manual LK204-25 rev 1...
  • Page 2: Table Of Contents

    1.1 What it Does............................4 1.2 What it Does Not Do........................... 4 1.3 Keypad Interface..........................4 1.4 Setup for Testing..........................4 1.5 Trying Out your LK204-25......................... 5 1.6 Trying out a Keypad..........................6 1.6.1 Here's what to do:........................6 2. Connections..........................7 2.1 Connector Pinout..........................
  • Page 3 7.5 Keypad Interface Commands......................27 7.6 Bar Graphs and Special Characters....................28 7.7 Miscellaneous Commands......................... 29 8. Appendix: Specifications and Options.................. 30 8.1 Specifications............................ 30 8.2 Options.............................. 31 9. Appendix: Glossary........................ 32 Revisions 1.1 Updated contrast values on display LK204-25 rev 1...
  • Page 4: Introduction

    C port to the associated controller. Note that the keypad is not used to directly control any aspect of the operation of the LK204-25, which acts simply as a matrix to serial converter. If you want to use the keypad to control the LK204-25 display you must program your controller accordingly.
  • Page 5: Trying Out Your Lk204-25

    3. Connect the LK204-25 to the PC using the serial cable and adapter if required. Make sure the RS-232 cable includes the required ground lead. There must be no voltage differential between the RS- 232 ground and the power supply ground.
  • Page 6: Trying Out A Keypad

    If you want to exercise some of the other features of the LK204-25 you'll need to write a program (in any convenient language such as Basic or C) to issue the required command strings. Most terminal programs are unable to issue the 0xFE character needed as a command prefix.
  • Page 7: Connections

     Do not apply any power with reversed polarization.  Do not apply any voltage other than the specified voltage.  Do not use any cables other than the cables supplied by Matrix Orbital, unless you are aware of the modifications required.
  • Page 8 2.1.1.1Five Volt Modules If the LK204-25 is used in a PC it is tempting to plug a spare power connector into the unit. Don't do this! Wiring for the PC power connector and that required for the LK204-25 are different as shown in Figure 2-4 below.
  • Page 9: Rs-232 Communications

    Figure 2- 6 Wiring for 12 volt modules If you don't want to modify cable wiring yourself, Matrix Orbital can supply an adapter cable designed to use with the display module when it's installed in a PC. The cable is wired as shown in Figure 2-7 below.
  • Page 10: Configuring Rs-232 And I2C

    RS-232 port: J0, J1, J2 - control baud rate. RS-232 format is 8N1 (8 bits, no parity, one stop bit)  I²C port: J0, J1, J2, J3 - sets slave peripheral address Baud Rate Slave Address 1200 2400 9600 19200 1200 LK204-25 rev 1...
  • Page 11: I2C Communications

    Matrix Orbital module processes data. Basically the reason why a Matrix Orbital module might fail to receive a byte correctly is that it was unable to process the byte previous before the failed byte was transmitted. Because the module cannot possibly know that it would be unable to store the byte before the next byte was received it cannot know to not ACK.
  • Page 12 Note: The GPOs do not have any over current or over/under voltage protection so care must be taken when using them. For instance if the external device is a relay it must be fully clamped (using a diode and capacitor) to absorb any generated back electro-motive force (EMF). LK204-25 rev 1...
  • Page 13 1N400 1 10 - 100 uF Relay coil Figure 2- 12 Clamping a Relay LK204-25 rev 1...
  • Page 14: Displaying Text

    This chapter describes the various text-display commands in detail. A quick reference summary of all text commands is found in section 7.4. 3.1General Text is displayed on the LK204-25 using the built-in 5 x 7 dot matrix font (plus up to 8 user-defined characters. 3.2The Built-In Character Font The LK204-25 includes a built-in 5 x 7 dot matrix font with the full range of ASCII characters plus a variety of extended characters, as shown in Figure 3-13.
  • Page 15: Writing Text To The Display

    3.4.3Auto scroll on (254 81) When auto scrolling is on, it causes the LK204-25 to shift the entire display’s contents up to make room for a new line of text when the text reaches the scroll position (the bottom right character position).
  • Page 16: Turn On Underline Cursor (254 74)

    3.4.12Cursor right (254 77) Moves the cursor one position to the right but does not erase any character that may be in that position. Note that this command moves the text insertion point even if the cursor is turned off. LK204-25 rev 1...
  • Page 17: Keypad Interface

    The LK204-25 keypad interface processes the keypad row/column matrix into a serial (RS-232 or I C) data byte stream. Aside from this processing, the keypad has no effect on the LK204-25 display. If you need to send keystrokes to the display, they must be routed through your controller.
  • Page 18: I2C Interface

    This behavior can be modified using commands found in the next section. 4.5Keypad Commands Before issuing commands to the LK204-25 please read sections 7.2 and 7.3. 4.5.1Auto repeat mode on (254 126 [mode]) [mode] = 0x00 gives Resend Key Code mode [mode] = 0x01 gives Key down / Key up code mode Two Modes of auto repeat are available and are set via the same command.
  • Page 19: Auto Repeat Mode Off (254 96)

    This command returns any unbuffered keypresses via the RS - 232 interface. The host system must be set up to receive the key codes. When the LK204-25 receives this command it will immediately return any unbuffered keypresses which may have not been read already. If there is more than one keypress buffered, then the high order bit (MSB) of this returned keycode will be set (1).
  • Page 20: Bar Graphs And Special Characters

    [dir] specifies the direction: 0x00 goes from left to right, 0x01 goes from right to left. 5.1.6Define custom character (254 78 [c] [8 bytes]) The LK204-25 allows up to 8 user defined (custom) characters. These characters occupy the first 8 (0x00 to 0x07) places in the character set (see Figure 3-13).
  • Page 21: Initialize Large Digits (254 110)

    This command allows the large digits to be drawn on the LCD screen. Numbers of almost full display height may be placed along side regular text on four row displays. The column number has a maximum value which is less than the display width because the digits are all three columns wide. LK204-25 rev 1...
  • Page 22 [col] can have values from 0x01 to 0x12 (1 to 18). [digit] has values from 0x00 to 0x09 (0 to 9). LK204-25 rev 1...
  • Page 23: Miscellaneous Commands

    (between 0 and 255). Lower values cause "on" elements in the display area to appear lighter, while higher values cause "on" elements to appear darker. Lighting conditions will affect the actual value used for optimal viewing. Individual LK204-25 modules will also differ slightly from each other in appearance. In addition, values for optimal viewing while the LK204- 25 backlight is on may differ from values used when backlight is off.
  • Page 24: Read Module Type

    GLK128128-25 - 0x21 GLK12232-25 - 0x22 LK404-AT - 0x31 VFD1621 - 0x32 LK402-12 - 0x33 LK162-12 - 0x34 LK204-25PC - 0x35 6.1.8Read Version Number (254 54) This command will return the firmware version number of the LK204-25. LK204-25 rev 1...
  • Page 25: Appendix: Command Summary

    Chapters 3 to 5 in the same sequence as in the following tables. 7.2Issuing Commands Commands are issued to the LK204-25 by the controller. In a test setup, commands can be issued to the LK204-25 by means of a BASIC program, using the chr$( ) function. In the tables below, we've shown commands in hex, ASCII and decimal form.
  • Page 26: Ascii Characters

    57 decimal or 39 hex This gives rise to the possibility of confusion when parameters are being set on the LK204-25 For example, the GPO ON and OFF commands use a number to indicate which GPO is being controlled. We're told that acceptable values are 0 to 6.
  • Page 27: Keypad Interface Commands

    254 38 Returns 0x00 if no key presses. High order bit 254 '&' set unless this is the last/only key press. Set debounce time FE 55 [time] 52 ms Resolution: 1 = 0.6554 ms [time] is a numeric LK204-25 rev 1...
  • Page 28: Bar Graphs And Special Characters

    Place large digit number [digit] in column [col] of the display. 254 35 [col] [digit] Cursor moves to bottom right of large digit. [digit] is 0x00 to 254 '#' [col] [digit] 0x09, [col] is 0x01 to 0x12 (i.e. 1 to 18 decimal). LK204-25 rev 1...
  • Page 29: Miscellaneous Commands

    1 to 6. See section 2.2 for further 254 'W' [gpo #] details. Read Version FE 36 Reads the firmware version number of the Number 254 54 module. Returns a 1-byte hex value. 254 '6' LK204-25 rev 1...
  • Page 30: Appendix: Specifications And Options

    3.20 x 5.55 mm (XxY), not including Character Size underline Character Pitch 3.7 mm Line pitch 5.95 mm Dot Size 0.60 x 0.65 mm (XxY) Dot Pitch 0.65 x 0.70 mm (XxY) LED Backlight Life 100,000 hours typical Color of Illumination Yellow Green LK204-25 rev 1...
  • Page 31: Options

    Figure 8- 16 Physical Layout 8.2Options Options Available on LK204-25 Extended Temperature Wide Voltage Wide Voltage with Efficient Switching Power Supply LK204-25 rev 1...
  • Page 32: Appendix: Glossary

    Contrast The ratio of luminance between the light state of the display to the dark state of the display. The microcontroller or PC used to control the Matrix Orbital display unit. Controller DB-9 The designation of a connector used in the RS232 interface: 9 pin connector...
  • Page 33 A port, or interface, that can be used for serial communication, in which only 1 Serial Port bit is transmitted at a time. Version This refers to the firmware revision number of the module. Number Volatile Temporary memory. Once the power supply is turned off volatile memory is then erased. Memory LK204-25 rev 1...

Table of Contents