Application Note
Page 4
Initialization bytes:
COMMAND
CODE PARAMETERS*
FUNCTION
TEXT HOME ADDRESS
40h
80h, 07h
START OF THE TEXT STORAGE AREA IN DISPLAY RAM
0780h
1eh, 00h
1eh, 00h
14h, 00h
14h, 00h
10h, 00h
10h, 00h
LINE LENGTH IN CHARACTERS
= 30 = 1eh FOR AN
8 BIT CHARACTER CELL (FS=0).
(28h FOR FS=1)
LINE LENGTH IN PIXELS
= 30 = 1eh
LINE LENGTH IN PIXELS
= 20 = 14h
LINE LENGTH IN PIXELS
= 16 = 10h
Displayed image:
Initialization:
Before the LCD controller can accept or display data or text it must be initialized. This is usually
done immediately after the system is powered up. The following chart lists the initialization
commands and the parameters that accompany them along with a brief explanation of the function
of each. Where a parameter is different for a display that differs in resolution from the 240x64
example, the alternate values are also listed.
TEXT AREA
GRAPHIC AREA
41h
43h
* ADDRESSES AREFORMATTEDAS [LSB,MSB]
240
240
160
128
8
8
8
8
(240x128, 240x64)
(240x128, 240x64)
LINE LENGTH IN CHARACTERS
= 20 = 14h FOR AN
8 BIT CHARACTER CELL (FS=0).
(1ah FOR FS=1)
LINE LENGTH IN CHARACTERS
= 16 = 10h FOR AN
8 BIT CHARACTER CELL (FS=0).
(15h FOR FS=1)
(160x128)
(160x128)
(128x128)
(128x128)
160
128
8
8
GRAPHIC HOME ADDRESS
42h
00h, 00h
00h, 00h
START OF THE GRAPHICS STORAGE AREA IN DISPLAY
RAM 0000h
MODE SET
81h
"EXOR" TEXT MODE
ADDRESS POINTER SET
24h
LOCATION OF NEXT DATA WRITE (OR READ)
IN THIS CASE THE BEGINNING OF THE GRAPHICS AREA
DISPLAY MODE SET
98h
TEXT OFF, GRAPHICS ON