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.
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...
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...
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.
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...
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...
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...
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.
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...
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.
• 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.
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...
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).
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...
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...
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.
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...
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.
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...
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.
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’...
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;...
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...
• 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...
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.
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’...
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...
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.
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...
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...
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.
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...
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.
• 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...
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...
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...
“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...
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...
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...
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...
Need help?
Do you have a question about the LK202-25 and is the answer not in the manual?
Questions and answers