LCD2041Technical ManualRevision: 2.1
1.5 Installing the Software1.5.1 uProjectuProject was designed by Matrix Orbital to provide a simple and easy to use interface that will allow youto t
2 Hardware InformationRefer to the following diagram for this chapter:1 DB-9 Connector 5 Power / Data Connector2 Power Through DB9 Jumper 6 Legacy Con
Pin 2 Tx \ SDA (I2C data)Pin3 Rx \ SCL (I2C clock)Pin 5 GNDPin9 PWR (Must solder Power Through DB-9 Jumper. See table 1 on page 10 forpower requiremen
Matrix Orbital LCD2041 9
WARNING Do not apply voltage through pin 9 of the DB-9 connectorAND through the Power/Data Connector at the same time.2.2 Power/Data ConnectorThe Powe
2.2.1 Legacy Data Connector JumpersTo reverse pins two and three of the Power/Data Connector remove the zero ohm resistors from theLegacy Data Connect
Matrix Orbital LCD2041 12
2.4 General Purpose OutputsA unique feature of the LCD2041 is the ability to control relays and other external devices using aGeneral Purpose Output,
Matrix Orbital LCD2041 14
Table 2: Default ValuesContrast 128Backlight 255Baud Rate 19.2 kbpsI2C Slave Address 0x50Data Lock FalseRS232AutoTransmitData TrueNOTE The display mod
ContentsContents ii1 Getting Started 11.1 Display Options Available . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2 Accesso
3.3 The display module is communicating, however text cannotbe displayed.• A common cause may be that the contrast settings have been set to low. The
that the transmission is over.The LCD2041 has some speed limitations, especially when run in I2C mode. Here are some considera-tions when writing I2C
4.2 Changing the I2C Slave AddressSyntaxHexadecimal 0xFE 0x33 [adr]Decimal 254 51 [adr]ASCII 254 “3” [adr]ParametersParameter Length Descriptionadr 1
Description This command sets the RS-232 port to the specified [speed]. The changetakes place immediately. [speed] is a single byte specifying the desi
ExamplesCrystal Speed 16 MhzDesired BAUD 13,500speed =crystalspeed8∗ DesiredBaud− 1speed = 148.15− 1speed =16, 000, 0008∗ 13, 500− 1speed = 147.15• LS
5.1.1 Character SetFigure 20: Character Set5.1.2 Control CharactersIn addition to a full text set, the LCD2041 display supports the following ASCII Co
SyntaxHexadecimal 0xFE 0x51Decimal 254 81ASCII 254 “Q”Description When auto scrolling is on, it causes the display to shift the entiredisplay’s conten
5.6 Set Auto Line Wrap OnSyntaxHexadecimal 0xFE 0x43Decimal 254 67ASCII 254 “C”Description Enabling Auto Line Wrap will allow the cursor to automatica
Description This command will allow you to manually set the cursor position, whichcontrols the text insertion point, by specifying the [col] and [row]
Description This command will move the cursor forward one space. If thiscommand is sent when the cursor is at the bottom right position thecursor will
5.9 Go Home . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245.10 Move Cursor Back . . . . . . . . . . . . .
SyntaxHexadecimal 0xFE 0x54Decimal 254 84ASCII 254 “T”Description This command will turn the block cursor off.Remembered Yes6 Special Characters6.1 In
Description The LCD2041 allows for upta to eight custom defined characters to beadded onto the the character set. A custom character is a five by eightp
Description New to the LCD2041 has added five non-volatile memory banks forcustom character storage. This is intended to allow you to create yourown cu
Description Using this command you may create the custom characters. that will bestored in memory bank zero, which will be used in the startup screen.
6.8 Initialize Large NumbersSyntaxHexadecimal 0xFE 0x6EDecimal 254 110ASCII 254 “n”Description This command will load the default large number charact
6.11 Place Horizontal Bar GraphSyntaxHexadecimal 0xFE 0x7C [Col] [Row] [Dir] [Length]Decimal 254 124 [Col] [Row] [Dir] [Length]ASCII 254 “|” [Col] [Ro
SyntaxHexadecimal 0xFE 0x76Decimal 254 118ASCII 254 “v”Description This command will load the wide vertical bar characters into the volatilememory. If
7.2 General Purpose Output OffSyntaxHexadecimal 0xFE 0x56 [Num]Decimal 254 86 [Num]ASCII 254 “V” [Num]ParametersParameter Length DescriptionNum 1 GPO
Description This command will set the startup state for the GPO on the next powerup. A value of one will cause the GPO to be off on the next startupwh
Description This command turns the backlight off immediately. The backlight willremain off until a ’Display On’ command has been received.Remembered Y
10 Miscellaneous 3910.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3910.2 Read Version Number
Description This command sets the display’s contrast to [contrast], where [contrast]is a value between 0x00 and 0xFF (between 0 to 255). Lower valuesc
9 Data Security9.1 IntroductionEnsuring that your LCD2041 display’s exactly what you want it to can be the difference between aprojects success and fa
9.3 Data LockSyntaxHexadecimal 0xFE 0xCA 0xF5 0xA0 [level]Decimal 254 202 245 160 [level]ParametersParameter Length Descriptionlevel 1 Sets the data l
9.4 Set and Save Data LockSyntaxHexadecimal 0xFE 0xCB 0xF5 0xA0 [level]Decimal 254 203 245 160 [level]ParametersParameter Length Descriptionlevel 1 Se
10.2 Read Version NumberSyntaxHexadecimal 0xFE 0x36Decimal 254 54ASCII 254 “6”Description This command will return a byte representing the version of
Description This command will return a hex value corresponding to the the modelnumber of the module see the following table:Hex Product ID Hex Product
11 Command Summary11.1 CommunicationsDescriptionSyntaxPageChanging the I2C SlaveAddressHexadecimal 0xFE 0x33 [adr]Decimal 254 51 [adr]ASCII 254 “3” [a
DescriptionSyntaxPageMove Cursor BackHexadecimal 0xFE 0x4CDecimal 254 76ASCII 254 “L”24Move Cursor ForwardHexadecimal 0xFE 0x4DDecimal 254 77ASCII 254
DescriptionSyntaxPageInitialize Horizontal BarHexadecimal 0xFE 0x68Decimal 254 104ASCII 254 “h”30Place Horizontal BarGraphHexadecimal 0xFE 0x7C [Col]
DescriptionSyntaxPageSet ContrastHexadecimal 0xFE 0x50 [contrast]Decimal 254 80 [contrast]ASCII 254 “P” [contrast]35Set and Save ContrastHexadecimal 0
1 Getting StartedFigure 1: LCD2041-WBThe LCD2041 is an intelligent LCD display designed to decrease development time by providing aninstant solution t
Command DescriptionPageHex Dec ASCII0x37 55 “7” Read Module Type 400x39 57 “9” Changing the Baud Rate 180x3D 61 “=” Place Vertical Bar 320x40 64 “@” C
12 Appendix12.1 Specifications12.1.1 EnvironmentalTable 58: Environmental SpecificationsStandard Temperature Extended TemperatureOperating Temperature 0
NOTE To prolong life, it is recommended that the backlight be turned off when thedisplay is not in use.Matrix Orbital LCD2041 48
12.3 Physical LayoutFigure 21: Physical DiagramMatrix Orbital LCD2041 49
12.4 Ordering InformationLCD 20 4 1 -IY -VPT -E1 2 3 4 5 6 7Table 61: Part Numbering Scheme# DescriptionOptions1 Screen TypeLCD: Liquid Crystal Displa
12.6 Contacting Matrix OrbitalTelephoneSales: 1(403)229-2737Support: 1(403)204-3750On The WebSales: http://www.MatrixOrbital.comSupport: http://www.Ma
Figure 2: LCD2041 Options1.2 AccessoriesNOTE Matrix Orbital provides all the interface accessories needed to get your displayup and running. You will
Figure 5: Breadboard CableFigure 6: Serial Cable 4FTFigure 7: Communication and 5V Power Cable1.3 Features• 20 column by 4 line alphanumeric liquid cr
Figure 8: Aluminum MountingsFigure 9: Mounting KitsMatrix Orbital LCD2041 4
• Extended temperature available for extreme environments of -20C to 70C• Extended voltage and efficient power supply available• Built in font with pro
Commenti su questo manuale