1.1 What to Expect From the LCD2041 The LCD2041 is designed as the display unit for an associated controller. The controller may be anything from a single board, special purpose micro-controller to a PC, depending on the application. This controller is responsible for what is displayed on the screen of the display.
4. Connect the power connector, making sure that the +5V goes to V+ . Turn on the power; the display backlight should come on and a blinking cursor at the top left should appear. 1.4 Trying out the LCD2041 The unit should be connected to power and the PC and backlight should be on. To experiment with typing text, run a PC program such as Display Tuner or AlphaDemo.
Do not apply any power with reversed polarization. Do not apply any voltage other than the specified voltage. Do not use any cables other than the cables supplied by Matrix Orbital, unless aware of the modifications required. Do not apply voltage to the DB-9 con- nector AND power connector Do not apply more than +5Vdc to pin #9 on the DB-9 connector.
Wiring for the PC power connector and that required for the display are different. Figure 4: Wiring for 5V Modules Matrix Orbital is equipped to supply an adapter cable designed to use with the LCD2041 when it’s installed in a PC. The cable is wired as shown in the Figure below.
Wiring required for the 12 volt power connector is shown in the Figure below. Figure 6: Wiring for 12 Volt Modules Matrix Orbital is equipped to supply an adapter cable designed to use with the display module when it’s installed in a PC. The cable is wired as shown in the Figure below.
TTL levels as well. The display is set at 19.2Kbps default speed. Other settings are; 8 bits, no parity, 1 stop bit. 2.2.1 DB9 Connections A standard DB-9F is provided for RS-232 communications. Power may also be supplied via this con- nector if desired. Matrix Orbital LCD2041...
An optional alternate connection header is provided to allow one cable for data and power. Two jumpers will have to be set into the RS-232 position above the DB-9 connector. Figure 10: RS232 Configuration Connector pinout is as follows; Matrix Orbital LCD2041...
figure below. This will allow TTL communications through the 4-pin SIP header or the DB9 connector. Figure 12: TTL Communications 2.2.4 Configuring RS-232 and I RS-232 baud rate and I C address are configured by means of jumpers. Matrix Orbital LCD2041...
Page 12
RS-232 port: J0, J1, J2 - control baud rate. RS-232 format is 8N1, 8 bits, no parity, one stop bit C port: J0, J1, J2, J3 - sets slave peripheral address Table 4: Serial Baud Rates Baud Rate Slave Address 1200 2400 9600 19200 1200 2400 9600 19200 Matrix Orbital LCD2041...
Matrix Orbital module processes data. Basically the reason why a Matrix Orbital module might fail to receive a byte correctly is that it was unable to process the byte previous before the failed byte was transmitted. Because the module cannot possibly know that it would be unable to store the byte before the next byte was received it cannot know to not ACK.
Maximum allowable current is 20mA, which is enforced by the current limiting resistor. If the device being switched has a resistance of 240ohms or more the corresponding resistor may be shorted. Solder a small jumper wire or wirewrap wire between the two feed through holes. Matrix Orbital LCD2041...
“EMF”. Figure 18: Clamping a Relay 3 Displaying Text This chapter describes the various text-display commands in detail. Before issuing commands to the LCD2041 please read sections 6.2 and 6.3. Matrix Orbital LCD2041...
Figure 19: Character Set In addition to the built in characters, users may define up to 8 special characters which, once defined, occupy positions 0x00 to 0x07 in the above chart. The display does not have provision to download other Matrix Orbital LCD2041...
When auto scrolling is disabled, text will wrap to the top left corner of the display area. Existing text in the display area is not erased before new text is placed. A series of ’spaces’ followed by a “Cursor home” command may be used to erase the top line of text. Matrix Orbital LCD2041...
Note that this command moves the text insertion point even if the cursor is turned off. NOTE A ’destructive backspace’ which erases the character to the left of the original position, may be done by issuing the following sequence: cursor left, space, cursor left. Matrix Orbital LCD2041...
0 to 20 (0x00 to 0x14) pixels. The necessary characters must first be initialized by either of the commands shown in section 5.1.1 or 5.1.2, which will determine the width of the graph drawn. Graph may be erased by drawing a bar graph of height = 0 in the same column. Matrix Orbital LCD2041...
The characters are defined by issuing the command 254 78 [c] followed by 8 bytes to define the character. [c] is the character number (0x00 to 0x07). The 8 bytes are mapped as shown below; Matrix Orbital LCD2041...
Page 21
NOTE Custom characters will be erased if any of the "Initialize bar graph" commands are issued. Example of a degree symbol; txUart.sendByte(0xFE); //command prefix txUart.sendByte(’N’); //custom character command txUart.sendByte(0x00); //custom character value 0-7 txUart.sendByte(12); //8 bytes to create txUart.sendByte(18); //the custom character txUart.sendByte(18); txUart.sendByte(12); txUart.sendByte(0); txUart.sendByte(0); txUart.sendByte(0); Matrix Orbital LCD2041...
This command turns the backlight of the display off. 5.1.5 General purpose output off (254 86) This command turns OFF any of the general purpose outputs. [gpo #] is 1 to 8. Please note that OFF means the GPO pin floats (high impedance). Matrix Orbital LCD2041...
This command returns a 1-byte hex value. Values for various modules at the time of this publication are as follows; Table 7: Module Values LCD0821 - 0x01 LCD2021 - 0x03 LCD2041 - 0x05 LCD4041 - 0x07 LK202-25 - 0x08 LK204-25 - 0x09 LK404-55 - 0x0A...
’map’ written characters to numeric values. One such scheme has become universal, the American Standard Code for Information Interchange, or ASCII. ASCII tables are readily available from a number of sources. A few examples will do here; Matrix Orbital LCD2041...
254 ’Q’ Text will push display up one line to make room for new line. Auto scroll off FE 52 Disables auto 254 82 scroll. Text will 254 ’R’ wrap to top left overwrite existing text. Matrix Orbital LCD2041...
Page 26
Cursor right FE 4D Moves the cur- 254 77 sor one position 254 ’M’ to the right. If the cursor is already at the end of a line it will move to the beginning of the other line. Matrix Orbital LCD2041...
[digit] is 0x00 to 0x09, [col] is 0x01 to 0x12 (i.e. 1 to 18 decimal). FE 4E [c][8 bytes] Defines one of 8 custom "user" char- 254 78 [c][8 bytes] acters. Character number is [c] be- 254 ’N’ [c][8 bytes] tween 0x00 and 0x07. Matrix Orbital LCD2041...
General purpose output on FE 57 [gpo #] Turns general 254 87 [gpo #] purpose output 254 ’W’ [gpo #] Read module type FE 37 see table This command re- 254 55 turns a 1-byte hex 254 ’7’ value. Matrix Orbital LCD2041...
2.95 x 4.75 mm (XxY), not including underline Character Pitch 3.55 mm Line pitch 5.35 mm Dot Size 0.55 x 0.55 mm (XxY) Dot Pitch 0.60 x 0.60 mm (XxY) LED Backlight Life 100,000 hours typical Color of Illumination Yellow Green Matrix Orbital LCD2041...
Page 30
Matrix Orbital LCD2041 Figure 20: Physical Layout...
7.2 Options Table 19: Options Available on LCD2041 Inverse Blue LCD WB Inverse Yellow LCD White backlight with Gray glass (Ice Blue) Extended Temperature Wide Voltage Wide Voltage with Efficient Switching Power Supply -VPT 8 Appendix: Glossary Table 20: Appendix: Glossary ASCII American Standard Code for Information Interchange.
Page 32
Liquid Crystal Display Module Type Value This refers to the model number of the module. Pixel The smallest individually controllable element of a display. Pre-Generated Fonts Pre-determined fonts which can be downloaded into graphic liquid crystal displays. Matrix Orbital LCD2041...
Page 33
1 bit is transmitted at a time. Version Number This refers to the firmware revision number of the module. Volatile Memory Temporary memory. Once the power supply is turned off volatile memory is then erased. Matrix Orbital LCD2041...
Need help?
Do you have a question about the LCD2041 and is the answer not in the manual?
Questions and answers