Hide thumbs Also See for LCD2041:
Table of Contents

Advertisement

Quick Links

LCD2041
Technical Manual
Revision: 2.1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the LCD2041 and is the answer not in the manual?

Questions and answers

Summary of Contents for Matrix Orbital LCD2041

  • Page 1 LCD2041 Technical Manual Revision: 2.1...
  • Page 2: Table Of Contents

    5.8 Set Cursor Position ........23 Matrix Orbital...
  • Page 3 9.6 Read Customer Data ........39 Matrix Orbital...
  • Page 4 12.6 Contacting Matrix Orbital ........
  • Page 5: Getting Started

    With the ability to communicate via serial RS-232/TTL and I C protocols, the versatile LCD2041 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

    Figure 2: LCD2041 Options 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 12.6 on page 51 for contact information.
  • Page 7: Features

    • Selectable communication protocol, serial at RS-232 or TTL levels or I • Three, 5V -20mA, general purpose outputs for a variety of applications • Lightning fast communication speeds, up to 57.6 kbps for RS-232 and 100 kbps for I • Default 19.2 kbps serial communication speed Matrix Orbital LCD2041...
  • Page 8 Figure 8: Aluminum Mountings Figure 9: Mounting Kits Matrix Orbital LCD2041...
  • Page 9: Connecting To A Pc

    1.4 Connecting to a PC The LCD2041 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

    2.1 DB-9 Connector The LCD2041 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 12: 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 LCD2041 allows all voltage models to use the figure 14 power through DB-9 option, see table 1 on page 10 for display module voltage requirements.
  • Page 13 Matrix Orbital LCD2041...
  • Page 14: Power/Data Connector

    AND through the Power/Data Connector at the same time. 2.2 Power/Data Connector The Power/Data Connector provides a standard connector for powering the display module. The LCD2041 requires five volts for the standard display module, between nine to fifteen for the wide voltage (V) and be- tween nine to thirty-five volts for the wide voltage with efficient power supply module (VPT).
  • Page 15: Legacy Data Connector 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 LCD2041...
  • Page 16 Matrix Orbital LCD2041...
  • Page 17: General Purpose Outputs

    2.4 General Purpose Outputs A unique feature of the LCD2041 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 18 Matrix Orbital LCD2041...
  • Page 19: Troubleshooting

    • The last step will be to check the Power / Data Connector on the LCD2041. If the Power / Data Connector has become loose, or you are unable to resolve the issue, please contact Matrix Orbital, see 12.6 on page 51 for contact information.
  • Page 20: 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 LCD2041 should only be sent addresses that are even (LSB is 0). When the...
  • Page 21: 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 LCD2041 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 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 LCD2041...
  • 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 LCD2041...
  • Page 24: Text

    5 Text 5.1 Introduction The LCD2041 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.
  • Page 25: Character Set

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

    254 “@” Description In order to change the text that is displayed by the LCD2041 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

    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 LCD2041...
  • Page 28: Go Home

    Remembered 5.11 Move Cursor Forward Hexadecimal 0xFE 0x4D Syntax Decimal 254 77 ASCII 254 “M” Matrix Orbital LCD2041...
  • Page 29: 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 LCD2041 to display a block cursor at the current text insertion point. Remembered 5.15 Blinking Block Cursor Off Matrix Orbital LCD2041...
  • Page 30: Special Characters

    6 Special Characters 6.1 Introduction The LCD2041 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 31: Saving Custom Characters

    Description The LCD2041 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 LCD2041 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

    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 LCD2041...
  • Page 34: 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 LCD2041...
  • Page 35: 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 LCD2041...
  • Page 36: Place Vertical Bar

    General purpose outputs allow you to connect devices, such as LEDs, to the LCD2041 and supply them with up to 20mA of current at 5V. The LCD2041 has 3 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 Off

    Description Parameters GPO number. Description This command turns ON general purpose output [num]. The standard GPO’s on the LCD2041 output 20mA of current at 5V. NOTE ON means the output is pulled LOW. Remembered 7.4 Set Startup GPO state Hexadecimal...
  • Page 38: Display Functions

    8 Display Functions 8.1 Introduction The LCD2041 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 39: Set Brightness

    This command sets and saves the display [brightness] as default. Remembered Always 8.6 Set Contrast Hexadecimal 0xFE 0x50 [contrast] Syntax Decimal 254 80 [contrast] ASCII 254 “P” [contrast] Parameter Length Description Parameters contrast Contrast value (0 to 255). Matrix Orbital LCD2041...
  • Page 40: Set And Save Contrast

    NOTE This command saves the [contrast] value so that it is not lost after power down. Remembered Default Matrix Orbital LCD2041...
  • Page 41: Data Security

    Ensuring that your LCD2041 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 LCD2041 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 42: Data Lock

    (text lock) NOTES • 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 LCD2041...
  • Page 43: Set And Save Data Lock

    Reads whatever was written by Write Customer Data. Remembered 10 Miscellaneous 10.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 LCD2041...
  • Page 44: Read Version Number

    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 10.3 Read Module Type Hexadecimal 0xFE 0x37 Syntax Decimal 254 55 ASCII 254 “7” Matrix Orbital LCD2041...
  • Page 45 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 46: 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 LCD2041...
  • Page 47: 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 LCD2041...
  • Page 48: General Purpose Output

    ASCII 254 “B” [min] Hexadecimal 0xFE 0x46 Display Off Decimal 254 70 ASCII 254 “F” Hexadecimal 0xFE 0x99 [brightness] Set Brightness Decimal 254 153 [brightness] Hexadecimal 0xFE 0x98 [brightness] Set and Save Brightness Decimal 254 152 [brightness] Matrix Orbital LCD2041...
  • Page 49: Data Security

    254 “7” 11.8 Command By Number Command Description Page ASCII 0x23 “#” Place Large Number 0x33 “3” Changing the I C Slave Address 0x34 “4” Write Customer Data 0x35 “5” Read Customer Data 0x36 “6” Read Version Number Matrix Orbital LCD2041...
  • Page 50 Set and Save Contrast 0x93 Set Remember 0x98 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 Matrix Orbital LCD2041...
  • Page 51: Appendix

    2.95 mm x 4.75 mm Display Size 76.30 mm x 25.00 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 LCD2041...
  • Page 52 NOTE To prolong life, it is recommended that the backlight be turned off when the display is not in use. Matrix Orbital LCD2041...
  • Page 53: Physical Layout

    12.3 Physical Layout Figure 21: Physical Diagram Matrix Orbital LCD2041...
  • Page 54: Ordering Information

    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 R Inverse Red IY Inverse Yellow MSB Most Significant Byte LSB Least Significant Byte Matrix Orbital LCD2041...
  • Page 55: Contacting Matrix Orbital

    12.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 12.7 Revision History Table 63: Revision History Revision Description Author Initial Manual Matrix Orbital Updated Backlight Life Clark Matrix Orbital LCD2041...
  • Page 56 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Matrix Orbital LCD2041-GW-E LCD2041-GW-V LCD2041-GW-VPT LCD2041-IY-E LCD2041-IY-V LCD2041-IY-VPT LCD2041- R-E LCD2041-R-V LCD2041-R-VPT LCD2041-WB-E LCD2041-WB-V LCD2041-WB-VPT LCD2041-V-E LCD2041- WB-V-E LCD2041-WB-VPT-E LCD2041-GW-V-E LCD2041-GW-VPT-E LCD2041-R-V-E LCD2041-R-VPT-E LCD2041-IY-VPT-E LCD2041-VPT-E LCD2041-V...

This manual is also suitable for:

Lk204-25

Table of Contents