Command List

 

 

 

 

RS

R/W

DB7

DB6

DB5

DB4

DB3

DB2

DB1

DB0

Display Clear

0

0

0

0

0

0

0

0

0

1

Brightness Control

1

0

0/1*

0/1*

0/1*

0/1*

0/1*

0/1*

BR1

BR0

Cursor Home

0

0

0

0

0

0

0

0

1

0/1

Display ON/OFF

0

0

0

0

0

0

1

D

C

B

Cursor/Display Shift

0

0

0

0

0

1

S/C

R/L

0/1*

0/1*

Entry Mode Set

0

0

0

0

0

0

0

1

I/D

S

Function Set

0

0

0

0

1

IF

0/1*

0/1*

0/1*

0/1*

CG RAM Address

0

0

0

1

|–————————  ACG  —————————

———|

DD RAM Address

0

0

1

|—————————————  ADD —————————

———|

 

 

 

 

 

 

Busy Flag &

0

1

BF

|—————————————  ACC —————————

———|

Address Reading

 

 

 

 

 

 

 

 

 

 

 

Write Data To

1

0

|—————————————––  Write Data —————————

———|

CG or DD RAM

 

 

 

 

 

 

 

 

 

 

 

Read Data From

1

1

|———————————––––   Read Data    —————————

———|

CG or DD RAM

 

 

 

 

 

 

* Either 0 or 1

Command Description

Display Clear

 

RS

R/W

DB7

DB6

DB5

DB4

DB3

DB2

DB1

DB0

Cycle Time

0

0

0

0

0

0

0

0

0

1

100 µs Max

Hex Command:

01H

 

 

 

Description:

Clears the display and sets DD RAM address to 0

 

Brightness Control

 

RS

R/W

DB7

DB6

DB5

DB4

DB3

DB2

DB1

DB0

Cycle Time

1

0

0/1*

0/1*

0/1*

0/1*

0/1*

0/1*

BR1

BR0

1 µs

Hex Command

00H

200%

 

 

01H

150%

 

 

02H

100%

 

 

03H

50%

 

 

Description:

Sets the brightness of the screen

 

Settings:

BR1

BR0

Brightness

 

0

0

200% Brightness Boost

 

0

1

150%

 

1

0

100%

 

1

1

50%

 

 

Cursor Home

 

RS

R/W

DB7

DB6

DB5

DB4

DB3

DB2

DB1

DB0

Cycle Time

0

0

0

0

0

0

0

0

1

0/1

1 µs

Hex Command:

02H, 03H

 

 

Description:

Clears the contents of the address counter to 0H

Sets the address counter to point to the DDRAM

Sets the display for zero character shift

 

Display ON/OFF

 

RS

R/W

DB7

DB6

DB5

DB4

DB3

DB2

DB1

DB0

Cycle Time

0

0

0

0

0

0

1

D

C

B

1 µs

Hex Command

08H to 0FH

 

 

Description:

Sets display, cursor and blinking ON/OFF

Blinking is achieved by alternating between a normal and all on display of a character

Cursor blinks with a frequency of 1Hz and DUTY 50%

 

Settings:

D

C

B

ON/OFF

0

0

0

Display OFF, Cursor OFF, Blinking OFF

0

0

1

Display OFF, Cursor OFF, Blinking ON

0

1

0

Display OFF, Cursor ON, Blinking OFF

1

0

0

Display ON, Cursor OFF, Blinking OFF

0

1

1

Display OFF, Cursor ON, Blinking ON

1

0

1

Display ON, Cursor OFF, Blinking ON

1

1

0

Display ON, Cursor ON, Blinking OFF

1

1

1

Display ON, Cursor ON, Blinking ON

 

Cursor / Display Shift

 

RS

R/W

DB7

DB6

DB5

DB4

DB3

DB2

DB1

DB0

Cycle Time

0

0

0

0

0

1

S/C

R/L

1/0

1/0

1 µs

Hex Command

10H to 1FH

 

 

Description:

Shifts display and/or moves cursor position to either left or right w/o reading nor writing to DD RAM

 

Settings:

S/C

R/L

Cursor Shift

Display Shift

0

0

Move one character to the left

None

0

1

Move one character to the right

None

1

0

Shift one character to the left

Shift one character to the left

1

1

Shift one character to the right

Shift one character to the right

 

Entry Mode Set

 

RS

R/W

DB7

DB6

DB5

DB4

DB3

DB2

DB1

DB0

Cycle Time

0

0

0

0

0

0

0

1

I/D

S

1 µs

Hex Command

04H to 07H

 

 

Description:

Sets cursor move direction (I/D), specifies to shift the display (S).

These operations are performed during data read/write.

 

Settings:

I/D

S

Write DD RAM Data

Read DD RAM Data

0

0

The cursor moves one character to the left

The cursor moves one character to the left

1

0

The cursor moves one character to the right

The cursor moves one character to the right

0

1

Display shifts one character to the right, cursor remain in same position

The cursor moves one character to the left

1

1

Display shifts one character to the left, cursor remain in same position

The cursor moves one character to the right

 

Function Set

 

RS

R/W

DB7

DB6

DB5

DB4

DB3

DB2

DB1

DB0

Cycle Time

0

0

0

0

1

IF

0/1*

0/1*

0/1*

0/1*

1 µs

Hex Command

20H to 3FH

 

 

Description:

Sets interface data length (IF)

Sets the interface to 8bit or 4 bit mode

Required as part of initialization sequence

 

Settings:

IF

Mode

 

 

0

4 bit CPU interface using DB7 to DB0

 

 

1

8 bit CPU interface using DB7 to DB4

 

 

Set Character Generator (CG) RAM Address

 

RS

R/W

DB7

DB6

DB5

DB4

DB3

DB2

DB1

DB0

Cycle Time

0

0

0

1

|–————————  ACG  —————————

———|

2 µs

Hex Command:

40H to 7FH

 

 

Description:

Loads a new 6 bit address into the address counter

Sets the address counter to address CG RAM

 

 

Set Display Data (DD) RAM Address

 

RS

R/W

DB7

DB6

DB5

DB4

DB3

DB2

DB1

DB0

Cycle Time

0

0

1

|—————————————  ADD —————————

———|

2 µs

Hex Command:

Line 1

80H to A7H

 

Hex Command:

Line 2

C0H to E7H

 

 

Description:

Loads a new 7 bit address into the address counter

Sets the address counter to address DD RAM