LCD2041 Matrix Orbital, LCD2041 Datasheet - Page 22

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
6. Appendix: Command Summary
6.1 General
The operation of the LCD2041 is controlled by a simple and consistent command set. Commands control
This chapter includes summary tables of all commands. Individual commands are discussed in detail in
Chapters 3 and 4 in the same sequence as in the following tables.
6.2 Issuing Commands
Commands are issued to the LCD2041 by the controller. In a test setup, commands can be issued to the
LCD2041 by means of a BASIC program, using the chr$( ) function. In the tables below, we've shown
commands in hex, ASCII and decimal form. All commands begin with the prefix character 0xFE (254
decimal). These commands are issued on the serial communications link (I
defined baud rate.
For example (using BASIC in a test setup), you could issue the command to clear the screen on the
LCD2041 by including the line:
in your BASIC program. Or with C you could (using Zcomm serial library)
6.3 On Numbers
Like all computerized devices, the LCD2041 operates with commands and values in the form of binary
numbers. These binary numbers are arranged in 8 digit (i.e. 8 bit) groups called bytes. The decimal value of
a byte may have any value from 0 to 255.
Bytes are usually specified in either decimal or hexadecimal (base 16) form for convenience, since binary
numbers are confusing to deal with directly. Hexadecimal (hex) numbers are particularly convenient
because exactly two hexadecimal digits make up one byte, each hex digit representing 4 binary digits (4
bits) as shown here:
LCD2041 rev 2
text display
graphics display
miscellaneous operating parameters
PRINT#1,chr$(254);chr$(88)
ZComm1->WriteCommByte(0xfe);
ZComm1->WriteCommByte('X');
Binary
0000
0001
0010
0011
0100
0101
0110
0111
Hex
0
1
2
3
4
5
6
7
Decimal
0
1
2
3
4
5
6
7
22
Binary
1000
1001
1010
1011
1100
1101
1110
1111
Hex
A
B
C
D
E
8
9
F
2
C or RS-232) at the currently
Decimal
10
11
12
13
14
15
8
9

Related parts for LCD2041