Matrix Orbital LK202-25 Technical Manual

Matrix Orbital LK202-25 Technical Manual

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

Advertisement

Quick Links

LK202-25
Technical Manual
Revision: 3.1
Downloaded from
Elcodis.com
electronic components distributor

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Matrix Orbital LK202-25

  • Page 1 LK202-25 Technical Manual Revision: 3.1 Downloaded from Elcodis.com electronic components distributor...
  • Page 2: Table Of Contents

    5.7 Set Auto Line Wrap Off ........24 Matrix Orbital...
  • Page 3 9.9 Assign Keypad Codes ........40 Matrix Orbital...
  • Page 4 14.6 Contacting Matrix Orbital ........
  • Page 5: Getting Started

    With the ability to communicate via serial RS-232/TTL and I C protocols, the versatile LK202-25 can be used with virtually any controller. The ease of use is further enhanced by an intuitive command structure to allow display settings such as backlight brightness, contrast and baud rate to be software controlled.
  • Page 6: Accessories

    1.2 Accessories NOTE Matrix Orbital provides all the interface accessories needed to get your display up and running. You will find these accessories and others on our e-commerce website at http://www.matrixorbital.com. To contact a sales associate see Section 14.6 on page 59 for contact information.
  • Page 7 Figure 6: Communication and 5V Power Cable Figure 7: Aluminum Mountings Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 8 Figure 8: Keypad Mountings Figure 9: Mounting Kits Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 9: Features

    1.4 Connecting to a PC The LK202-25 connects seamlessly to a PC and it is an excellent means of testing the functionality. To connect your display to a PC, you will require a standard RS-232 9-pin serial cable such as the one pictured , as well as a modified 5V power adapter such as the one pictured in...
  • Page 10: Installing The Software

    1.5 Installing the Software 1.5.1 uProject uProject was designed by Matrix Orbital to provide a simple and easy to use interface that will allow you to test all of the features of our alpha numeric displays. To install uProject from the Matrix Orbital CD, follow the following steps: 1.
  • Page 11: Hardware Information

    Figure 12: uProject Settings NOTES • uProject and other alphanumeric software may also be downloaded from Matrix Or- bital’s support site at http://www.matrixorbital.ca/software/software_alpha/ 2 Hardware Information Refer to the following diagram for this chapter: Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 12: Connector

    2.1 DB-9 Connector The LK202-25 provides a DB-9 Connector to readily interface with serial devices which use the EIA232 standard signal levels of ±12V to ±12V. It is also possible to communicate at TTL levels of 0 to +5V by setting the Protocol Select Jumpers to TTL.
  • Page 13 Figure 15: Power Through DB-9 Jumper WARNING Do not apply voltage through pin 9 of the DB-9 connector AND through the Power/Data Connector at the same time. Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 14: Power/Data Connector

    C mode and have a default slave address of 0x50 unless it has been changed. Similarly, in order to change the display to TTL mode, simply remove the zero ohm resistors from the 232 or I C jumpers and solder them to the TTL jumpers. Matrix Orbital LK202-25 Downloaded from Elcodis.com...
  • Page 15 Figure 17: Protocol Select Jumpers Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 16: General Purpose Outputs

    2.4 General Purpose Outputs A unique feature of the LK202-25 is the ability to control relays and other external devices using a General Purpose Output, which can provide up to 20 mA of current and +5Vdc from the positive side of the GPO.
  • Page 17: Manual Override

    Figure 19: Dallas 1-Wire Bridge 2.6 Manual Override The Manual Override is provided to allow the LK202-25 to be reset to factory defaults. This can be particularly helpful if the display module has been set to an unknown baud rate or I C Slave Address and you are no longer able to communicate with it.
  • Page 18 Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 19: Keypad Interface Connector

    2.7 Keypad Interface Connector The LK202-25 provides a Keypad Interface Connector which allows for up to a five by five matrix style keypad to be directly connected to the display module. Key presses are generated when a short is detected between a row and a column.
  • Page 20: Troubleshooting

    • The last step will be to check the Power / Data Connector on the LK202-25. If the Power / Data Connector has become loose, or you are unable to resolve the issue, please contact Matrix Orbital, see 14.6 on page 59 for contact information.
  • Page 21: Communications

    0x51, whereas the write address is 0x50 by default. This address may be changed by using cmd 254 / 51 / <address>. The LK202-25 should only be sent addresses that are even (LSB is 0). When the...
  • Page 22: C Transaction Example

    RS-232 protocol at at a default baud rate of 19,200 bps and is capable of standard baud rates from 9600 to 115,200 bps. Furthermore the LK202-25 is also capable of reproducing any non-standard baud rate in between using values entered into our baud rate generation algorithm and set through command 164 (0xA4).
  • Page 23: Changing The Baud Rate

    Hex Value Baud Rate 1200 2400 4800 9600 19200 28800 38400 57600 115200 NOTE This command is not available in I C mode. Remembered Always Default 19,200 bps Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 24: Setting A Non-Standard Baud Rate

    12 to 2047 which corresponds to a baud range of 977 to 153,800 baud. Setting the baud rate out of this range could cause the display to stop working properly and require the Manual Override jumper to be set. Remembered Always Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 25: Text

    5 Text 5.1 Introduction The LK202-25 is an intelligent display module, designed to reduce the amount of code necessary to begin displaying data. This means that it is able to display all ASCII formated characters and strings that are sent to it, which are defined in the current character set. The display module will begin displaying text at the top left corner of the display area, known as home, and continue to print to the display as if it was a page on a typewriter.
  • Page 26: Character Set

    5.1.1 Character Set Figure 22: Character Set 5.1.2 Control Characters In addition to a full text set, the LK202-25 display supports the following ASCII Control characters: 0x08 Backspace 0x0C Clear screen / New page 0x0D Carriage return 0x0A Line feed / New line 5.2 Auto Scroll On...
  • Page 27: Auto Scroll Off

    254 “@” Description In order to change the text that is displayed by the LK202-25 when it starts up simply send the command bytes 254 64 followed by the characters that you wish to display, starting from the top left. This command will automatically line wrap the characters that are sent to it.
  • Page 28: Set Auto Line Wrap On

    flow. Remembered 5.8 Set Cursor Position Syntax Hexadecimal 0xFE 0x47 [col] [row] Decimal 254 71 [col] [row] ASCII 254 “G” [col] [row] Parameters Parameter Length Description Column Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 29: Go Home

    Remembered 5.11 Move Cursor Forward Syntax Hexadecimal 0xFE 0x4D Decimal 254 77 ASCII 254 “M” Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 30: Underline Cursor On

    Hexadecimal 0xFE 0x53 Syntax Decimal 254 83 ASCII 254 “S” Description This command will cause the LK202-25 to display a block cursor at the current text insertion point. Remembered 5.15 Blinking Block Cursor Off Matrix Orbital LK202-25 Downloaded from Elcodis.com...
  • Page 31: Special Characters

    6 Special Characters 6.1 Introduction The LK202-25 has the ability to create four different sets of eight custom characters and save them to internal banks of memory. Each set of eight can be recalled from memory at any time, and selected characters can be written to the display screen.
  • Page 32: Saving Custom Characters

    Description The LK202-25 allows for upta to eight custom defined characters to be added onto the the character set. A custom character is a five by eight pixel matrix with each row represented by a byte value. For example: Custom Character ’h’...
  • Page 33: Loading Custom Characters

    Description New to the LK202-25 has added five non-volatile memory banks for custom character storage. This is intended to allow you to create your own custom bar graphs, medium/large numbers and startup screen. However, each memory bank may be used to store a set of any eight custom characters;...
  • Page 34: Initialize Medium Number

    Medium number to place (0-9). Description This command will place a medium number (two columns high) at the [row] and [col] specified. NOTE Medium Numbers must be initialized before this command is executed. Remembered Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 35: Initialize Horizontal Bar

    • Horizontal Bars must be initialized before this command is executed. • Bar graphs may be one directional only. Remembered 6.10 Initialize Narrow Vertical Bar Syntax Hexadecimal 0xFE 0x73 Decimal 254 115 ASCII 254 “s” Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 36: Initialize Wide Vertical Bar

    Hexadecimal 0xFE 0x3D [Column] [Length] Syntax Decimal 254 61 [Column] [Length] ASCII 254 “=” [Column] [Length] Parameters Parameter Length Description Column The column number. Length The length of the bar data. Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 37: General Purpose Output

    General purpose outputs allow you to connect devices, such as LEDs, to the LK202-25 and supply them with up to 20mA of current at 5V. The LK202-25 has 6 GPOs which are software controlled, with functions to turn them on/off and set the power state for the next startup.
  • Page 38: Set Startup Gpo State

    8 Dallas 1-Wire 8.1 Introduction Another convenient feature of the LK202-25 is that it provides a Dallas 1-wire interface in order to readily communicate with up to thirty two 1-wire devices on a single bus. 1-wire communication is begun by discovering the address of the device that you wish to communicate with. To do this you must send the “Search for a 1-Wire Device’...
  • Page 39: Dallas 1-Wire Transaction

    The number of bits you will be transmitting on the bus. RcvBits The number of bits you will be reading on the bus. Data variable Data to be transmitted, LSB to MSB. Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 40: Keypad

    9 Keypad 9.1 Introduction The LK202-25 supports up to a 25 key, matrix style, keypad and may be configured to allow key presses to be automatically transmitted via RS-232 or polled through I C. The LK202-25 also allows for auto- repeating key presses, and remapping of all keypad character codes.
  • Page 41: I C Interface

    This is the default mode on power up. NOTE This command is not available in I Remembered Default 9.3 Auto Transmit Key Presses Off Hexadecimal 0xFE 0x4F Syntax Decimal 254 79 ASCII 254 “O” Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 42: Poll Key Press

    It may also be used, in effect, to reset the keypad in case the host application resets for whatever reason. Matrix Orbital LK202-25 Downloaded from Elcodis.com...
  • Page 43: Set Debounce Time

    9.7 Set Auto Repeat Mode Hexadecimal 0xFE 0x7E [mode] Syntax Decimal 254 126 [mode] ASCII 254 “~” [mode] Parameter Length Description Parameters mode Auto Repeat Mode (0: Resend Key , 1: Key Up/Down) Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 44: Auto Repeat Mode Off

    254 “‘” Description This command turns auto repeat mode off. See Set Auto Repeat Mode. Remembered 9.9 Assign Keypad Codes Hexadecimal 0xFE 0xD5 [KDown] [KUp] Syntax Decimal 254 213 [KDown] [KUp] Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 45: Display Functions

    10 Display Functions 10.1 Introduction The LK202-25 employs software controlled display settings, which allow for control over, clearing the screen, changing the brightness and contrast or setting timers for turning it on or off. The combination of these allow you complete software control over your display’s appearance.
  • Page 46: Display Off

    This command sets and saves the display [brightness] as default. Remembered Always 10.6 Set Contrast Hexadecimal 0xFE 0x50 [contrast] Syntax Decimal 254 80 [contrast] ASCII 254 “P” [contrast] Parameters Parameter Length Description contrast Contrast value (0 to 255). Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 47: Set And Save Contrast

    NOTE This command saves the [contrast] value so that it is not lost after power down. Remembered Default Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 48: Data Security

    Ensuring that your LK202-25 display’s exactly what you want it to can be the difference between a projects success and failure. This is why we incorporate features such as Data Lock into the LK202-25 With this new feature you now are in control over of how and when settings will be changed so there is no need to worry about the module acting exactly like you expected it to because all the settings may be locked and remembered for the next power up.
  • Page 49: Data Lock

    • Sending a new data lock level will override the previous data lock level. • Data lock levels may be combined. Remembered Always Default Examples Binary Description 0x00 Unlock 0x50 01010000 Setting and Command Lock Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 50: Set And Save Data Lock

    12.1 Introduction This chapter covers the ’Report Version Number’ and ’Read Module Type’ commands. These commands can be particularly useful to find out more information about the display module before contacting technical support. Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 51: Read Version Number

    Hex Value Version Number 0x19 Version 1.9 0x57 Version 5.7 Remembered 12.3 Read Module Type Hexadecimal 0xFE 0x37 Syntax Decimal 254 55 ASCII 254 “7” Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 52 Description This command will return a hex value corresponding to the the model number of the module see the following table: Product ID Product ID LCD0821 LCD2021 LCD2041 LCD4021 LCD4041 LK202-25 LK204-25 LK404-55 VFD2021 VFD2041 VFD4021 VK202-25 VK204-25 GLC12232 GLC24064...
  • Page 53: Command Summary

    254 “D” Hexadecimal 0xFE 0x47 [col] [row] Set Cursor Position Decimal 254 71 [col] [row] ASCII 254 “G” [col] [row] Hexadecimal 0xFE 0x48 Go Home Decimal 254 72 ASCII 254 “H” Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 54: Special Characters

    Decimal 254 104 ASCII 254 “h” Hexadecimal 0xFE 0x7C [Col] [Row] [Dir] [Length] Place Horizontal Bar Decimal 254 124 [Col] [Row] [Dir] [Length] Graph ASCII 254 “|” [Col] [Row] [Dir] [Length] Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 55: General Purpose Output

    Description Syntax Page Hexadecimal 0xFE 0x41 Auto Transmit Key Decimal 254 65 Presses On ASCII 254 “A” Auto Transmit Key Hexadecimal 0xFE 0x4F Decimal 254 79 Presses Off ASCII 254 “O” Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 56: Display Functions

    254 “P” [contrast] Hexadecimal 0xFE 0x91 [contrast] Set and Save Contrast Decimal 254 145 [contrast] 13.8 Data Security Description Syntax Page Set Remember Hexadecimal 0xFE 0x93 [switch] Decimal 254 147 [switch] Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 57: Miscellaneous

    “C” Set Auto Line Wrap On 0x44 “D” Set Auto Line Wrap Off 0x45 “E” Clear Key Buffer 0x46 “F” Display Off 0x47 “G” Set Cursor Position 0x48 “H” Go Home Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 58 Setting a Non-Standard Baud Rate 0xC0 Loading Custom Characters 0xC1 Saving Custom Characters 0xC2 Save Startup Screen Custom Characters 0xC3 Set Startup GPO state 0xC8 Dallas 1-Wire Transaction 0xCA Data Lock Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 59: Appendix

    LED Backlight Half-Life (YG, IY & FY) 50, 000 hours typical LED Backlight Half-Life (R, FG & FA) 20, 000 hours typical LED Backlight Half-Life (GW, WB, FW & FB) 10, 000 hours typical Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 60 NOTE To prolong life, it is recommended that the backlight be turned off when the display is not in use. Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 61: Physical Layout

    14.3 Physical Layout Figure 23: Physical Diagram Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 62: Ordering Information

    E Extended Temperature (-20C to 70C) VPT Wide Voltage with Efficient Switching Power Supply (+9 to +35Vdc) V Wide Voltage (+9 to +15Vdc) GW Grey Text / White Background WB White Text / Blue Background Matrix Orbital LK202-25 Downloaded from Elcodis.com electronic components distributor...
  • Page 63: Contacting Matrix Orbital

    FB FFSTN Inverse Blue FG FFSTN Inverse Green FW FFSTN Inverse White FY FFSTN Inverse Yellow MSB Most Significant Byte LSB Least Significant Byte 14.6 Contacting Matrix Orbital Telephone Sales: 1(403)229-2737 Support: 1(403)207-3750 On The Web Sales: http://www.MatrixOrbital.com Support: http://www.MatrixOrbital.ca Forums: http://www.lcdforums.com...

This manual is also suitable for:

Lk202-25-wbLk202-25-r-vLk202-25-usb

Table of Contents