HD66710
321
Table 7
Instructions (cont)
Code
Execution Time
(max) (when f
cp
or
f
OSC
is 270 kHz)
0 μs
Instruction RS
R/
:
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Description
Read busy
flag &
address
0
1
BF
AC
AC
AC
AC
AC
AC
AC
Reads busy flag (BF)
indicating internal operation
is being performed and reads
address counter contents.
Write data
to RAM
(RE = 0/1)
1
0
Write data
Writes data into DDRAM,
CGRAM, or SEGRAM. To
write data to DDRAM
CGRAM, clear RE to 0; or to
write data to SEGRAM, set
RE to 1.
37 μs
t
ADD
= 5.5 μs*
Read data
from RAM
(RE = 0/1)
1
1
Read data
Reads data from DDRAM,
CGRAM, or SEGRAM. To
read data from DDRAM or
CGRAM, clear RE to 0; to
read data from SEGRAM,
set RE to 1.
37 μs
t
ADD
= 5.5 μs*
I/D
I/D
S
D
C
B
FW = 1:
B/W = 1:
NW = 1:
NW = 0:
S/C = 1: Display shift
S/C = 0:
Cursor move
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
RE
= 1:
Extension register access enable
BE
= 1:
CGRAM/SEGRAM blinking enable
LP
= 1:
Low power mode
BF
= 1:
Internally operating
BF
= 0: Instructions acceptable
= 1:
= 0:
= 1:
= 1:
= 1:
= 1:
Increment
Decrement
Accompanies display shift
Display on
Cursor on
Blink on
6-dot font width
Black-white inverting cursor on
Four lines
One or two lines
DDRAM:
Display data
RAM
Character
generator RAM
CGRAM:
SEGRAM: Segment RAM
ACG: CGRAM address
ADD: DDRAM address
(corresponds to
cursor address)
ASEG:Segment RAM
address
HDS: Horizontal dot scroll
quantity
AC:
Address counter
used for both DD,
CG, and SEGRAM
addresses.
Notes: 1. — indicates no effect.
*
After execution of the CGRAM/DDRAM/SEGRAM data write or read instruction, the RAM
address counter is incremented or decremented by 1. The RAM address counter is updated
after the busy flag turns off.
In Figure 12, t
ADD
is the time elapsed after the busy flag turns off until the address counter is
updated.
2. Extension time changes as frequency changes. For example, when f is 300 kHz, the execution
time is: 37 μs
×
270/300 = 33 μs.
3. Execution time in a low power mode (LP = 1 & EXT = low) becomes four times as long as for a
1-line mode, and twice as long as for a 2- or 4-line mode.