Table of Contents

Advertisement

Quick Links

LK204-25-USB
Technical Manual
Revision: 1.1

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Matrix Orbital LK204-25-USB

  • Page 1 LK204-25-USB Technical Manual Revision: 1.1...
  • Page 2: Table Of Contents

    5.5 Changing the Startup Screen ........21 Matrix Orbital...
  • Page 3 9.8 Auto Repeat Mode Off ........38 Matrix Orbital...
  • Page 4 14.6 Contacting Matrix Orbital ........
  • Page 5: Getting Started

    With the ability to communicate via USB protocol, the versatile LK204-25-USB can be used with virtually any controller. The ease of use is further enhanced by an intu- itive command structure to allow display settings such as backlight brightness, contrast and baud rate to be software controlled.
  • Page 6 Figure 1: 3ft mini-B USB Figure 2: Keypad Mountings Figure 3: Mounting Kits Matrix Orbital LK204-25-USB...
  • Page 7: 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 • Fits Matrix Orbital’s mountings without any modifications Matrix Orbital LK204-25-USB...
  • Page 8: Connecting To A Pc

    1.4 Connecting to a PC The LK204-25-USB 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 USB cable such as the one pictured in figure 1 on page 2...
  • Page 9: Uproject

    7. Test the display using a software tool such as uProject. 1.5.2 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.
  • Page 10: Hardware Information

    Figure 7: LK204-25-USB 2.1 Power Connector The LK204-25-USB provides a Power Connector to allow the device to be powered externally. In order to power the device externally, you must remove one of the USB protocol select jumpers. The jumper to remove is the leftmost USB jumper as seen if figure 15.
  • Page 11: Keypad Interface Connector

    Figure 8: Alternate Power Connector 2.2 Keypad Interface Connector The LK204-25-USB 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 12: Manual Override

    2.3 Manual Override The Manual Override is provided to allow the LK204-25-USB to be reset to factory defaults. This can be particularly helpful if the display module has been set to an unknown baud rate and you are no longer able to communicate with it.
  • Page 13: Usb Header

    NOTE The display module will revert back to the old settings once turned off, unless the settings are saved. 2.4 USB Header The USB Header provides USB connector for communication and power of the display. An alternate power option for the display can be seen in figure 8 Matrix Orbital LK204-25-USB...
  • Page 14: Serial Header

    The LK202-25-USB also offers an alternative, Serial Header option to permit serial communication with the device. Please note the the display normally does not come with the Serial Header, it will have to be ordered as a custom. Please talk to your sales representative if you would like this option. Matrix Orbital LK204-25-USB...
  • Page 15: General Purpose Outputs

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

    2.7 Dallas 1-Wire Bridge In addition to the six general purpose outputs the LK204-25-USB offers a standard Dallas One-Wire bridge, to allow for an aditional thirty two 1-wire devices to be connected to the display. Matrix Orbital...
  • Page 17: Protocol Select Jumpers

    USB jumpers. In order to place the display module in external power mode you must first remove the leftmost solder jump from the USB jumpers, as shown in figure . The display cannot be used in RS232, TTL, or I2C mode. Matrix Orbital LK204-25-USB...
  • Page 18: Troubleshooting

    Matrix Orbital using one of the mehods described in section 14.6. • The last step will be to check the USB Cable on the LK202-25-USB. If the USB Cable has become loose, or you are unable to resolve the issue, please contact Matrix Orbital, see section 14.6 for contact information.
  • Page 19: The Display Module Is Communicating, However Text Cannot Be Displayed

    0x51, whereas the write address is 0x50 by default. This address may be changed by using cmd 254 / 51 / <address>. The LK204-25-USB should only be sent addresses that are even (LSB is 0). When the I...
  • Page 20: 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 LK204-25-USB 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 21: Usb Communication

    Communication is via a virtual com port, which is created in the operating system by the drivers necessary to install the USB display. The LK204-25-USB communicating via USB is capable of baud rates of 19,200 bps to 115,200 bps. Other baud rates are subject to the limitation of the virtual com port driver. For further information regarding supported operating systems, and driver limitations please contact technical support.
  • Page 22: 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-USB...
  • Page 23: Text

    5 Text 5.1 Introduction The LK204-25-USB 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 24: Character Set

    5.1.1 Character Set Figure 16: Character Set 5.1.2 Control Characters In addition to a full text set, the LK204-25-USB 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 25: Auto Scroll Off

    254 “@” Description In order to change the text that is displayed by the LK204-25-USB 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 26: Set Auto Line Wrap On

    flow. Remembered 5.8 Set Cursor Position Hexadecimal 0xFE 0x47 [col] [row] Syntax Decimal 254 71 [col] [row] ASCII 254 “G” [col] [row] Parameters Parameter Length Description Column Matrix Orbital LK204-25-USB...
  • Page 27: Go Home

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

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

    6 Special Characters 6.1 Introduction The LK204-25-USB 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 30: Saving Custom Characters

    Description The LK204-25-USB 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 31: Loading Custom Characters

    Description New to the LK204-25-USB 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 32: Initialize Medium 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. NOTE Medium Numbers must be initialized before this command is executed. Remembered Matrix Orbital LK204-25-USB...
  • Page 33: Initialize Large Numbers

    If you have stored your own custom horizontal bar data, use the ’Load Custom Characters’ command instead to load your custom bar data into the volatile memory. This command will allow you to use the ’Place Horizontal Bar’ command. Remembered Matrix Orbital LK204-25-USB...
  • Page 34: Place Horizontal Bar Graph

    ’Load Custom Characters’ command instead to load your custom bar data into the volatile memory. 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 Matrix Orbital LK204-25-USB...
  • Page 35: Place Vertical Bar

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

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

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

    SndBits 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 LK204-25-USB...
  • Page 39: Keypad

    9 Keypad 9.1 Introduction The LK204-25-USB supports up to a 25 key, matrix style, keypad and may be configured to allow key presses to be automatically transmitted via USB. The LK204-25-USB also allows for auto-repeating key presses, and remapping of all keypad character codes.
  • Page 40: Auto Transmit Key Presses On

    In this mode, up to 10 key presses are buffered until the unit is polled by the host system, via the poll keypad command 254 38. Issuing this command places the unit in polled mode. Remembered 9.4 Poll Key Press Hexadecimal 0xFE 0x26 Syntax Decimal 254 38 ASCII 254 “&” Matrix Orbital LK204-25-USB...
  • Page 41: Clear Key Buffer

    ’bounce’ for a varying time, depending on their physical characteristics. The [time] value is in increments of 6.554ms. The default debounce time for the module is 8 (about 52ms), which is adequate for most membrane keypads. Remembered Default Matrix Orbital LK204-25-USB...
  • Page 42: Set Auto Repeat Mode

    9.8 Auto Repeat Mode Off Hexadecimal 0xFE 0x60 Syntax Decimal 254 96 ASCII 254 “‘” Matrix Orbital LK204-25-USB...
  • Page 43: Assign Keypad Codes

    10 Display Functions 10.1 Introduction The LK204-25-USB 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 44: Display Off

    10.5 Set and Save Brightness Hexadecimal 0xFE 0x98 [brightness] Syntax Decimal 254 152 [brightness] Parameter Length Description Parameters brightness Backlight setting (0 to 255). Description This command sets and saves the display [brightness] as default. Remembered Always Matrix Orbital LK204-25-USB...
  • Page 45: Set Contrast

    Efectively, values 0 through 7, 8 through 15, and so on will result in the same setting. Remembered Default 10.7 Set and Save Contrast Hexadecimal 0xFE 0x91 [contrast] Syntax Decimal 254 145 [contrast] Parameters Parameter Length Description contrast Contrast value (0 to 255). Matrix Orbital LK204-25-USB...
  • Page 46: Data Security

    11 Data Security 11.1 Introduction Ensuring that your LK204-25-USB 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-USB 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 47: Data Lock

    • 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-USB...
  • Page 48: 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-USB...
  • Page 49: Write Customer Data

    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. 12.2 Read Version Number Matrix Orbital LK204-25-USB...
  • Page 50: Read Module Type

    This command will return a byte representing the version of the module, see the following table as an example: 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 LK204-25-USB...
  • Page 51 MOS-AP-162A PK202-25 MOS-AL-162A MOS-AL-202A MOS-AV-202A MOS-AP-202A PK202-24-USB MOS-AL-082 MOS-AL-204 MOS-AV-204 MOS-AL-402 MOS-AV-402 LK082-12 VK402-12 VK404-55 LK402-25 VK402-25 PK204-25 Unused XBoard-S XBoard-I XBoard-U LK202-25-USB VK202-25-USB LK204-25-USB VK204-25-USB LK162-12-TC Unused Unused GLK240128-25 LK404-25 VK404-25 Unused GLT320240 GLT480282 GLT240128 Remembered Matrix Orbital LK204-25-USB...
  • Page 52: Command Summary

    Set Auto Line Wrap Off Decimal 254 68 ASCII 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 LK204-25-USB...
  • Page 53: Special Characters

    254 111 [Row] [Col] [Digit] ASCII 254 “o” [Row] [Col] [Digit] Hexadecimal 0xFE 0x6E Initialize Large Numbers Decimal 254 110 ASCII 254 “n” Hexadecimal 0xFE 0x23 [Col] [Digit] Place Large Number Decimal 254 35 [Col] [Digit] ASCII 254 “#” [Col] [Digit] Matrix Orbital LK204-25-USB...
  • Page 54: General Purpose Output

    Syntax Description Page Hexadecimal 0xFE 0xC8 0x2 Search for a 1-Wire Decimal 254 200 2 Device Hexadecimal 0xFE 0xC8 0x1 [flags] [SndBits] [RcvBits] [Data] Dallas 1-Wire Decimal 254 200 1 [flags] [SndBits] [RcvBits] [Data] Transaction 13.6 Keypad Matrix Orbital LK204-25-USB...
  • Page 55: Display Functions

    0xFE 0x98 [brightness] Set and Save Brightness Decimal 254 152 [brightness] Hexadecimal 0xFE 0x50 [contrast] Set Contrast Decimal 254 80 [contrast] ASCII 254 “P” [contrast] Hexadecimal 0xFE 0x91 [contrast] Set and Save Contrast Decimal 254 145 [contrast] Matrix Orbital LK204-25-USB...
  • Page 56: Data Security

    “6” Read Version Number 0x37 “7” Read Module Type 0x39 “9” Changing the Baud Rate 0x3D “=” Place Vertical Bar 0x40 “@” Changing the Startup Screen 0x41 “A” Auto Transmit Key Presses On 0x42 “B” Display On Matrix Orbital LK204-25-USB...
  • Page 57 Set and Save Brightness 0x99 Set Brightness 0xA4 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 LK204-25-USB...
  • Page 58: Appendix

    3.20 mm x 5.55 mm Display Size 83.00 mm x 18.60 mm LED Backlight Half-Life (YG & IY) 50,000 hours typical LED Backlight Half-Life (R) 20,000 hours typical LED Backlight Half-Life (GW & WB) 10,000 hours typical Matrix Orbital LK204-25-USB...
  • Page 59 NOTE To prolong life, it is recommended that the backlight be turned off when the display is not in use. Matrix Orbital LK204-25-USB...
  • Page 60: Physical Layout

    14.3 Physical Layout Figure 17: Physical Diagram Matrix Orbital LK204-25-USB...
  • Page 61: Ordering Information

    NOTE * Also available with a Vacuum Florescent Display in the VK204-25-USB model 14.5 Definitions E Extended Temperature (-20C to 70C) GW Grey Text / White Background WB White Text / Blue Background R Inverse Red IY Inverse Yellow MSB Most Significant Byte LSB Least Significant Byte Matrix Orbital LK204-25-USB...
  • Page 62: Contacting Matrix Orbital

    14.6 Contacting Matrix Orbital Telephone Sales: 1(403)229-2737 Support: 1(403)204-3750 On The Web Sales: http://www.MatrixOrbital.com Support: http://www.MatrixOrbital.ca Forums: http://www.lcdforums.com 14.7 Revision History Table 75: Revision History Revision Description Author Initial Manual Clark Updated Backlight Life Clark Matrix Orbital LK204-25-USB...

Table of Contents