Preliminary
NJU6637
(3-1)Description of instruction
a) Maker Test
RS DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Code 0
0
0
0
0
0
0
0
0
All “0” code is using device testing mode ( only for maker ).
b) Clear Display
RS DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Code 0
0
0
0
0
0
0
0
1
Clear display instruction is executed when the code “1” is written into DB0.
when this instruction is executed, the space code (20)H is written into every DD RAM address, the
DD RAM address 0 is set into the address counter and entry mode is set an increment. If the
cursor or blink are displayed, they are returned to the left end of the 1st line on the LCD.
The S of entry mode and CG RAM data does not change.
Note: The character pattern for character code (20)H must be blank code in the user-defined
character pattern( Custom font ).
c) Return Home
RS DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Code 0
0
0
0
0
0
0
1
∗
∗=Don’t Care
Return home instruction is executed when the code “1” is written Into DB1. When this Instruction
is executed, the DD RAM address 0 is set to address counter. Display is returned to the original
position if shifted, the cursor or blink is returned to the left end of the LCD. If the cursor or blink are
on the display, the DD RAM contents are not changed.
d) Entry Mode Set
RS DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Code 0
0
0
0
0
0
1 I/D S
Entry mode set instruction which sets cursor moving direction and display shift On/Off, is executed
when the code “1” is written into DB2 and the codes of (I/D) and (S) are written into DB1 (I/D) and
DB0 (S) as shown below.
(I/D) sets the address increment or decrement, and the (S) sets the entire display shift in the DD
RAM writing.
I/D
FUNCTION
1
Address increment : The address of the DD RAM increment ( +1) when
the write, and the cursor or blink moves to the right.
0
Address decrement : The address of the DD or CG RAM decrement
( -1) when the write, and the cursor or blink move to the left.
S
FUNCTION
1
Entire display shift.
The shift direction is determined by I/D: shift to the left at I/D=1 and shift
to the right at the I/D=0. The shift is operated with only the character, so
that it looks as if the cursor stands still and the display moves. The
display does not shift when reading from the DD RAM and writing into
CG RAM.
0
The display does not shifting