LCD2041 Matrix Orbital, LCD2041 Datasheet - Page 23

LCD Character Display Modules Yel/Grn Background Black Text

LCD2041

Manufacturer Part Number
LCD2041
Description
LCD Character Display Modules Yel/Grn Background Black Text
Manufacturer
Matrix Orbital
Datasheet

Specifications of LCD2041

Character Count X Line
20 x 4
Module Size (w X H X T)
98 mm x 60 mm x 27.5 mm
Features
I2C LCD with software controlled contrast
Voltage Rating
4.75 VDC to 5.25 VDC
Operating Temperature Range
- 20 C to + 70 C
Backlight Type
LED Yellow-Green
Interface
I2C
Based on the table, the byte 01001011 can be represented in hex as 4B, which is usually written as any of
4Bh, 4BH, 4B hex or 0x4B.
The numbers can also be expressed in decimal form if preferred.
6.3.1 ASCII Characters
Since computers deal internally with numbers only, but externally with both letters and numbers, several
schemes were developed to "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:
This gives rise to the possibility of confusion when parameters are being set on the LCD2041 For example,
the GPO ON and OFF commands use a number to indicate which GPO is being controlled. We're told that
acceptable values are 0 to 6. All such parameters must use numeric values (i.e. the actual byte values).
If we send the ASCII number 0 by mistake it will actually give the value 48 decimal (30 hex) to the
parameter, which is wrong. In the tables given in the following sections ASCII characters are shown as 'A',
with single quotes.
6.4 Text Commands
See Chapter 3 for command descriptions. Syntax in the tables below is given in hex, decimal and decimal
with ASCII, in that order, one per line.
Table 6-1 Text Commands
LCD2041 rev 2
Command
Auto line wrap on
Auto line wrap off
Auto scroll on
Auto scroll off
Set cursor position
Send cursor home
Underline cursor on
The letter
The letter
The number
The number
A
a
0
9
has a value of
has a value of
has a value of
has a value of
Syntax
FE 43
254 67
254 'C'
FE 44
254 68
254 'D'
FE 51
254 81
254 'Q'
FE 52
254 82
254 ‘R’
FE 47 [col] [row]
254 71 [col] [row]
254 'G' [col] [row]
FE 48
254 72
254 'H'
FE 4A
65 decimal or
97 decimal or
48 decimal or
57 decimal or
Default
off
off
off
off
n/a
off
23
41 hex
61 hex
30 hex
39 hex
Notes
Enables line wrapping (not word wrap).
Disables line wrapping.
Enables scroll at bottom of screen. Text will
push display up one line to make room for new
line.
Disables auto scroll. Text will wrap to top left
and overwrite existing text.
Moves cursor to the specified column and row.
The cursor marks the text insertion point in
this and all commands.
This command moves the cursor to the top left
of the display area.
Turns on the underline cursor.

Related parts for LCD2041