Toshiba T6963C manual Initialization bytes, Displayed image, Command Code Parameters Function

Page 4

Application Note

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.

Initialization bytes:

COMMAND

CODE

PARAMETERS*

FUNCTION

 

 

 

TEXT HOME ADDRESS

40h

 

80h, 07h

START OF THE TEXT STORAGE AREA IN DISPLAY RAM

 

 

0780h

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1eh, 00h

LINE LENGTH IN CHARACTERS

240

= 30 = 1eh FOR AN

 

 

 

(240x128, 240x64)

8 BIT CHARACTER CELL (FS=0).

8

(28h FOR FS=1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TEXT AREA

41h

 

14h, 00h

LINE LENGTH IN CHARACTERS

160

= 20 = 14h FOR AN

 

 

 

 

(160x128)

8 BIT CHARACTER CELL (FS=0).

8

(1ah FOR FS=1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10h, 00h

LINE LENGTH IN CHARACTERS

128

= 16 = 10h FOR AN

 

 

 

 

(128x128)

8 BIT CHARACTER CELL (FS=0).

8

(15h FOR FS=1)

 

 

 

 

 

 

 

 

 

 

 

 

 

GRAPHIC HOME ADDRESS

42h

 

00h, 00h

START OF THE GRAPHICS STORAGE AREA IN DISPLAY

 

 

RAM 0000h

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1eh, 00h

LINE LENGTH IN PIXELS

240 = 30 = 1eh

 

 

 

(240x128, 240x64)

 

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

GRAPHIC AREA

43h

 

14h, 00h

LINE LENGTH IN PIXELS

1608 = 20 = 14h

 

 

 

 

(160x128)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10h, 00h

LINE LENGTH IN PIXELS

128 = 16 = 10h

 

 

 

 

(128x128)

 

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MODE SET

81h

 

 

 

"EXOR" TEXT MODE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADDRESS POINTER SET

24h

 

00h, 00h

LOCATION OF NEXT DATA WRITE (OR READ)

 

 

IN THIS CASE THE BEGINNING OF THE GRAPHICS AREA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DISPLAY MODE SET

98h

 

 

 

TEXT OFF, GRAPHICS ON

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

* ADDRESSES AREFORMATTEDAS [LSB,MSB]

Displayed image:

Page 4

Image 4
Contents Introduction SchematicFunctional Description Schematic diagram SoftwareSoftware Flowchart Command Code Parameters Function InitializationInitialization bytes Displayed imageSubroutines Tables and Data