|
Instruction |
Instruction Code |
Description |
Execution Time
( FOSC
= 270kHz ) |
|
RS |
R/W |
DB7 |
DB6 |
DB5 |
DB4 |
DB3 |
DB2 |
DB1 |
DB0 |
|
Clear Display |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
Write "20H" to DD Ram
and set DD Ram address to "00H" from AC |
1.53 ms |
|
Return Home |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
--- |
Set DD Ram address
to "00H" from AC and return cursor to its original position if shifted.
The contents of DD Ram
are not change. |
1.53 ms |
|
Entry Mode Set |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
I/D |
S |
Assign cursor moving
direction and enable the shift of entire display. |
39µs |
|
Display On/Off Control |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
D |
C |
B |
Set display (D), Cursor
(C), and blinking of cursor (B) on / off control bit. |
39µs |
|
Cursor or Display Shift |
0 |
0 |
0 |
0 |
0 |
1 |
S/C |
R/L |
--- |
--- |
Set cursor moving and
display shift control bit, and the direction, without changing of DD Ram
data. |
39µs |
|
Function Set |
0 |
0 |
0 |
0 |
1 |
DL |
N |
F |
--- |
--- |
Set interface data
length (8-bit / 4-bit), no. of display line (1 / 2 lines), and font format
(5x10 or 5x7 dots) |
39µs |
|
Set CG Ram Address |
0 |
0 |
0 |
1 |
ACG |
Set CG Ram address in
address counter. |
39µs |
|
Set DD Ram Address |
0 |
0 |
1 |
ADD |
Set DD Ram address in
address counter. |
39µs |
|
Read Busy Flag and Address |
0 |
1 |
BF |
AC |
Whether during internal
operation of not can be known by reading BF.
The contents of address
counter can also be read. |
0µs |
|
Write Data to
CG or DD Ram |
1 |
0 |
Write Data |
Write data into internal
Ram (DD Ram / CG Ram) |
43µs |
|
Read Data to
CG or DD Ram |
1 |
1 |
Read Data |
Read data into internal
Ram (DD Ram / CG Ram) |
43µs |
|
I/D=1 : Increment
I/D=1 : Decrement
S=1
: With Display Shift
S/C=1 : Display Shift
S/C=0 : Cursor Movement
R/L=1 : Shift to the Right
R/L=0 : Shift to the Left
DL=1 : 8-bit Interface |
DL=0 : 4-bit Interface
N=1 : 1/16 Duty
N=0 : 1/8 Duty or 1/11 Duty
F=1 : 5 x 10 dots format
F=0 : 5 x 7 dots format
BF=1 : Internal Operation is
being performed
BF=0 : Instruction Acceptable |
DD Ram : Display
Data Ram
CG Ram : Character
Generator Ram
ACG
: CG Ram Address
ADD
: DD Ram Address corresponds to
Cursor Address
AC
: Address Counter, used for both
DD Ram and CG Ram
|
Fcp
or Fosc =250kHz
However, when frequency changes,
execution time also changes.
Example:
When Fcp = 270kHz, 40µs
x 250/270=37µs
|