Matrix Orbital LK204-25 Technical Manual

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

Advertisement

Quick Links

www.DataSheet4U.com
LK204-25
Technical Manual
Revision: 2.0

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 Technical Manual Revision: 2.0...
  • Page 2: Table Of Contents

    5.8 Set Cursor Position ........23 Matrix Orbital...
  • Page 3 9.9 Assign Keypad Codes ........40 Matrix Orbital...
  • Page 4 14.5 Contacting Matrix Orbital ........
  • Page 5: Getting Started

    www.DataSheet4U.com...
  • 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.5 on page 56 for contact information.
  • Page 7 Figure 4: Breadboard Cable Figure 5: Serial Cable 4FT Matrix Orbital LK204-25...
  • Page 8 Figure 6: Communication and 5V Power Cable Figure 7: Aluminum Mountings Matrix Orbital LK204-25...
  • Page 9 Figure 8: Keypad Mountings Figure 9: Mounting Kits Matrix Orbital LK204-25...
  • Page 10: Features

    • Software controlled contrast and brightness with configurable time-out setting up to 90 minutes • Use of up to a 25 key keypad with a 10 key buffer • Horizontal or vertical bar graphs • Extended temperature option • Fits Matrix Orbital’s mountings without any modifications Matrix Orbital LK204-25...
  • Page 11: Connecting To A Pc

    1.4 Connecting to a PC The LK204-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 12: 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 13: Hardware Information

    2.1 DB-9 Connector The LK204-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 14: Power Through Db-9 Jumper

    In order to provide power through pin 9 of the DB-9 Connector you must place a solder jumper on the Power through DB-9 Jumper pictured in below. The LK204-25 allows all voltage models to use the figure 15 power through DB-9 option, see table 1 on the following page for display module voltage requirements.
  • Page 15: Protocol Select Jumpers

    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 LK204-25...
  • Page 16: General Purpose Outputs

    2.4 General Purpose Outputs A unique feature of the LK204-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: Dallas 1-Wire Bridge

    Figure 19: Dallas 1-Wire Bridge 2.6 Manual Override The Manual Override is provided to allow the LK204-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: Keypad Interface Connector

    2.7 Keypad Interface Connector The LK204-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 19: Troubleshooting

    • The last step will be to check the Power / Data Connector on the LK204-25. If the Power / Data Connector has become loose, or you are unable to resolve the issue, please contact Matrix Orbital, see 14.5 on page 56 for contact information.
  • Page 20: The Display Module Is Not Communicating

    NOTE Optimal contrast settings may vary according to factors such as temperature, view- ing angle and lighting conditions. If you are unable to resolve any issue please contact Matrix Orbital. See 14.5 on page 56 for contact information. 4 Communications 4.1 Introduction...
  • Page 21: Serial Communication

    $50 (0101 0000) , since the LSB has to be 0 for an I2C master write. When the I2C master wishes www.DataSheet4U.com to read the LK204-25, the effective address is $51 (0101 0001), since the LSB has to be 1 for an I2C master read.
  • Page 22: Changing The I C Slave Address

    NOTE The change in address is immediate. Remembered Always Default 0x50 4.3 Changing the Baud Rate Hexadecimal 0xFE 0x39 [speed] Syntax Decimal 254 57 [speed] ASCII 254 “9” [speed] Parameters Parameter Length Description speed Hex value corresponding to a baud rate. Matrix Orbital LK204-25...
  • Page 23: 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 LK204-25...
  • Page 24: Text

    5 Text 5.1 Introduction The LK204-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 characters and strings that are sent to it, which are defined in the current character set.
  • Page 25: Character Set

    5.1.1 Character Set www.DataSheet4U.com Figure 22: Character Set 5.1.2 Control Characters 0x08 Backspace 0x0C Clear screen / New page 0x0D Carriage return 0x0A Line feed / New line 5.2 Auto Scroll On Matrix Orbital LK204-25...
  • Page 26: Auto Scroll Off

    Description In order to change the text that is displayed by the LK204-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 27: Set Auto Line Wrap On

    NOTE All characters written to the display past the end of a line will be lost. Remembered 5.8 Set Cursor Position Hexadecimal 0xFE 0x47 [col] [row] Syntax Decimal 254 71 [col] [row] ASCII 254 “G” [col] [row] Parameter Length Description Parameters Column Matrix Orbital LK204-25...
  • Page 28: Go Home

    Remembered 5.11 Move Cursor Forward Hexadecimal 0xFE 0x4D Syntax Decimal 254 77 ASCII 254 “M” Matrix Orbital LK204-25...
  • Page 29: Underline Cursor On

    Hexadecimal 0xFE 0x4A Syntax Decimal 254 74 ASCII 254 “J” Description This command will cause the LK204-25 to display an underline cursor at the current text insertion point. Remembered 5.13 Underline Cursor Off Hexadecimal 0xFE 0x4B Syntax Decimal 254 75 ASCII 254 “K”...
  • Page 30: Special Characters

    6 Special Characters 6.1 Introduction www.DataSheet4U.com 6.2 Creating a Custom Character Hexadecimal 0xFE 0x4E [refID] [data] Syntax Decimal 254 78 [refID] [data] ASCII 254 “N” [refID] [data] Parameters Parameter Length Description refID Character reference ID (0-7). data Character data. Matrix Orbital LK204-25...
  • Page 31: Saving Custom Characters

    Description The LK204-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 32: Loading Custom Characters

    Description New to the LK204-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 33: Initialize Medium Number

    Parameter Length Description The row number. The column number. Digit Medium number to place (0-9). Description This command will place a medium number (two columns high) at the [row] and [col] specified. Remembered 6.8 Initialize Large Numbers Matrix Orbital LK204-25...
  • Page 34: Place Large Number

    This command will allow you to use the ’Place Horizontal Bar’ command. Remembered 6.11 Place Horizontal Bar Graph Hexadecimal 0xFE 0x7C [Col] [Row] [Dir] [Length] Syntax Decimal 254 124 [Col] [Row] [Dir] [Length] ASCII 254 “|” [Col] [Row] [Dir] [Length] Matrix Orbital LK204-25...
  • Page 35: Initialize Narrow Vertical Bar

    This command will allow you to use the ’Place Vertical Bar’ command. NOTE Narrow bars have a width of two pixels. Remembered 6.13 Initialize Wide Vertical Bar Hexadecimal 0xFE 0x76 Syntax Decimal 254 118 ASCII 254 “v” Matrix Orbital LK204-25...
  • Page 36: Place Vertical Bar

    General purpose outputs allow you to connect devices, such as LEDs, to the LK204-25 and supply them with up to 20mA of current at 5V. The LK204-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 37: General Purpose Output On

    Description Parameters GPO number. Description This command turns ON general purpose output [num]. The standard GPO’s on the LK204-25 output 20mA of current at 5V. NOTE The output is pulled high. Remembered 7.4 Set Startup GPO state Hexadecimal 0xFE 0xC3 [Num] [state]...
  • Page 38: Dallas 1-Wire

    8 Dallas 1-Wire 8.1 Introduction Another convenient feature of the LK204-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

    SndBits The number of bits you will be transmitting on the bus. RcvBits The number of bits you will be www.DataSheet4U.com reading on the bus. Data variable Data to be transmitted, LSB to MSB. Matrix Orbital LK204-25...
  • Page 40: Keypad

    9 Keypad 9.1 Introduction The LK204-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 LK204-25 also allows for auto- repeating key presses, and remapping of all keypad character codes.
  • Page 41: I2C Interface

    In this mode, all key presses are sent immediately to the host system without the use of the poll keypad command. This is the default mode on power up. NOTE This command is not available in I2C. Remembered Default 9.3 Auto Transmit Key Presses Off Matrix Orbital LK204-25...
  • Page 42: Poll Key Press

    No preceding commands are necessary. If there are no keys pressed the read will result in a 0x00. Remembered 9.5 Clear Key Buffer Syntax Hexadecimal 0xFE 0x45 Decimal 254 69 ASCII 254 “E” Matrix Orbital LK204-25...
  • Page 43: Set Debounce Time

    8 (about 52ms), which is adequate for most membrane keypads. Remembered Default 9.7 Set Auto Repeat Mode Hexadecimal 0xFE 0x7E [mode] Syntax Decimal 254 126 [mode] ASCII 254 “~” [mode] Parameters Parameter Length Description mode Auto Repeat Mode (0: Resend Key , 1: Key Up/Down) Matrix Orbital LK204-25...
  • Page 44: Auto Repeat Mode Off

    0xFE 0x60 Decimal 254 96 ASCII 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 LK204-25...
  • Page 45: Display Functions

    10 Display Functions 10.1 Introduction The LK204-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 LK204-25...
  • Page 47: Set And Save Contrast

    11.1 Introduction Ensuring that your LK204-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 LK204-25 With Matrix Orbital LK204-25...
  • Page 48: Set Remember

    • Non-volatile memory has a ‘write limit’ and may only be changed approximately 100,000 times. Remembered Default Do not remember 11.3 Data Lock Hexadecimal 0xFE 0xCA 0xF5 0xA0 [level] Syntax Decimal 254 202 245 160 [level] Parameters Parameter Length Description level Sets the data lock level Matrix Orbital LK204-25...
  • Page 49: Set And Save Data Lock

    • Data lock levels may be combined. Remembered Always Default Examples Binary Description 0x00 Unlock 0x50 01010000 Setting and Command Lock 11.4 Set and Save Data Lock Hexadecimal 0xFE 0xCB 0xF5 0xA0 [level] Syntax Decimal 254 203 245 160 [level] Matrix Orbital LK204-25...
  • Page 50: Miscellaneous

    This command will return a byte representing the version of the module, see the following table as an example: Hex Value Version Number 0x10 Version 1.0 0x20 Version 2.0 0x42 Version 4.2 Remembered 12.3 Read Module Type Hexadecimal 0xFE 0x37 Syntax Decimal 254 55 ASCII 254 “7” Matrix Orbital LK204-25...
  • Page 51: Command Summary

    Product ID Product ID LCD0821 LK202-24-USB LCD2021 VK202-24-USB LCD2041 LK204-24-USB LCD4021 VK204-24-USB LCD4041 PK162-12 LK202-25 VK162-12 LK204-25 MOS-AP-162A www.DataSheet4U.com LK404-55 PK202-25 VFD2021 MOS-AL-162A VFD2041 MOS-AV-202A VFD4021 MOS-AP-202A VK202-25 PK202-24-USB VK204-25 MOS-AL-082 GLC12232...
  • Page 52: Text

    254 “M” Hexadecimal 0xFE 0x4A Underline Cursor On Decimal 254 74 ASCII 254 “J” Hexadecimal 0xFE 0x4B Underline Cursor Off Decimal 254 75 ASCII 254 “K” Hexadecimal 0xFE 0x53 Blinking Block Cursor Decimal 254 83 ASCII 254 “S” Matrix Orbital LK204-25...
  • Page 53: Special Characters

    Initialize Narrow Vertical Decimal 254 115 ASCII 254 “s” Hexadecimal 0xFE 0x76 Initialize Wide Vertical Decimal 254 118 ASCII 254 “v” Hexadecimal 0xFE 0x3D [Column] [Length] Place Vertical Bar Decimal 254 61 [Column] [Length] ASCII 254 “=” [Column] [Length] Matrix Orbital LK204-25...
  • Page 54: General Purpose Output

    Decimal 254 69 ASCII 254 “E” Hexadecimal 0xFE 0x55 [time] Set Debounce Time Decimal 254 85 [time] ASCII 254 “U” [time] Hexadecimal 0xFE 0x7E [mode] Set Auto Repeat Mode Decimal 254 126 [mode] ASCII 254 “~” [mode] Matrix Orbital LK204-25...
  • Page 55: Display Functions

    254 202 245 160 [level] Hexadecimal 0xFE 0xCB 0xF5 0xA0 [level] Set and Save Data Lock Decimal 254 203 245 160 [level] 13.9 Miscellaneous Description Syntax Page Hexadecimal 0xFE 0x36 Read Version Number Decimal 254 54 ASCII 254 “6” Matrix Orbital LK204-25...
  • Page 56: Command By Number

    General Purpose Output Off 0x57 “W” General Purpose Output On 0x58 “X” Clear Screen 0x60 “‘” Auto Repeat Mode Off 0x68 “h” Initialize Horizontal Bar 0x6D “m” Initialize Medium Number 0x6E “n” Initialize Large Numbers 0x6F “o” Place Medium Numbers Matrix Orbital LK204-25...
  • Page 57: Appendix

    Storage Temperature C to +70 C to +80 Operating Relative Humidity 90% max non-condensing Vibration (Operating) 4.9 m/s XYZ directions Vibration (Non-Operating) 19.6 m/s XYZ directions Shock (Operating) 29.4 m/s XYZ directions Shock (Non-Operating) 490 m/s XYZ directions Matrix Orbital LK204-25...
  • Page 58: Electrical

    Character x Lines 20 columns x 2 rows Module Size 98.00 mm x 60.00 mm x 30.63 mm Character Size 3.20 mm x 5.55 mm Display Size 76.30 mm x 25.00 mm LED Backlight Life 100, 000 hours typical Matrix Orbital LK204-25...
  • Page 59: Physical Layout

    14.3 Physical Layout Figure 23: Physical Diagram www.DataSheet4U.com Matrix Orbital LK204-25...
  • Page 60: Definitions

    GW Grey Text / White Background WB White Text / Blue Background www.DataSheet4U.com R Inverse Red IY Inverse Yellow MSB Most Significant Byte LSB Least Significant Byte 14.5 Contacting Matrix Orbital Telephone Sales and Support: 1(403)229-2737 On The Web Sales: http://www.MatrixOrbital.com Support: http://www.MatrixOrbital.ca Forums: http://www.lcdforums.com...

Table of Contents