HOME
Company Technical Support Products Products Sales Contact Us
General Product Description General Product Description Instruction Codes Instruction Codes Hexadecimal codes Hexadecimal codes Display Data Address Charts Display Data Address Charts
Initialization or Reset Initialization or Reset DC to DC Converter , Timing DC to DC Converter , Timing Initialization or Reset Display interface - power supply Controller IC spec download Controller IC spec download

LCD Engineering Application Notes - Instruction Codes

Instruction

Set

Instruction Code

Description

Execution Time
(when fcp or fosc is 250 KHz)

RS

R/W

DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0

Clear Display

0

0

0

0

0

0

0

0

0

1

Clears all display and returns the cursor to the home position (Address 0)

82 µs~1.64ms

Return Home

0

0

0

0

0

0

0

0

1

*

Returns the cursor to the home position (Address 0). Also returns the display being shifted to the original position. DD RAM contents remain unchanged.

40µss~1.6ms

Entry Mode Set

0

0

0

0

0

0

0

1

I/D

S

Sets the cursor move direction and specifies or not to shift the display. These operations are performed during data write end read.

40µs

Display ON/OFF Control

0

0

0

0

0

0

1

D

C

B

Sets ON/OFF of a display (D), cursor ON/OFF (C), and blink of curser position character (B)

40µs

Cursor or Display Shift

0

0

0

0

0

1

S/C

R/L

*

*

Moves the cursor end shifts the display without changing DD RAM contents.

40µs

Function Set

0

0

0

0

1

DL

N

F

*

*

Sets interface data length (DL), number at display lines (N), one character font (F).

40µs

Set CG RAM Address

0

0

0

1

ACG

Sets the CG RAM address. CG RAM data is sent and received after this setting.

40µs

Set DD RAM Address

0

0

1

ADD

Sets the DD RAM address. DD RAM data is sent and received after this setting.

40µs

Read Busy Flag & Address

0 1 BF

AC

Reads Busy Flag (BF) indicating internal operation is being performed and reads address counter contents.

1ms

Write Data to CG or DD RAM

1

0

Write Data

Writes data into DD RAM or CG RAM.

40µs

Read Data from CG or DD RAM

1

1

Read Data

Reads data from DD RAM or CG RAM.

40µs

  I/D = 1:   Increment I/D = 0:   Decrement
S = 1: Accompanies display shift  
S/C = 1: Display shift S/C = 0: Cursor nove
R/L = 1: Shift to the right  
R/L = 0: Shift to the left
DL = 1: 8 bits DL = 0: 4 bits
N = 1: 2 lines N = 0: 1 line
F = 1: 5x10 dots F = 0: 5x7 dots
BF = 1: Internally operating
BF = 0: Can accept insgruction
D = 0: Display OFF D = 1: Display ON
C = 0: Cursor OFF C = 1: Cursor ON
B = 0: Blink OFF D = 1: Blink ON
DD RAM:
 
Display data RAM

CG RAM: Character generator RAM
ACG  
CG RAM address
Corresponds to cursor address
ADD

DD RAM address

AC:

Address counter used for both DD & CG RAM
address

Execution time changes when frequency changes.

(Example)
When fcp or fosc is 270 KHz :
 
40 µs X 250 / 270 = 37 µs