
Data Sheet S15726EJ2V0DS
23
μ
PD161401
5.2.3
A Y address of the display data RAM is specified by using the Y address register (R5) as shown in
Figure 5
5
. If the
Y address increment mode (INC = 1: control register 2 (R1)) is used, the specified Y address is incremented or
decremented by one each time display is written. Whether the address is incremented or decremented is specified by
the YDIR flag of control register 2 (R1) as shown in
Table 5
2
.
In the increment mode, the Y address is incremented up to 4FH. If more display data is written, the X address is
incremented (XDIR = 0) or decremented (XDIR = 1), and the Y address returns to 00H.
In the decrement mode, the Y address is decremented to 00H. If more display data is written, the X address is
incremented (XDIR = 0) or decremented (XDIR = 1), and the Y address returns to 4FH.
The relationship between the setting of INC, XDIR, and YDIR of control register 2 (R1) and the address is as follows:
Y address circuit
Table 5
2. Relationship between INC, XDIR, and YDIR, and Address
INC
Setting
0
The address is successively incremented or decremented in the X direction when data is accessed.
The address is successively incremented or decremented in the Y direction when data is accessed
Note
.
1
Note
This setting cannot be used when the 16-bit parallel interface is used.
XDIR
Setting
0
Increments the X address (+1) when data is accessed.
Decrements the X address (
1) when data is accessed.
1
YDIR
Setting
0
Increments the Y address (+1) when data is accessed.
Decrements the Y address (
1) when data is accessed.
1
Table 5
3. Combination of INC, XDIR, and YDIR, and Address Direction
INC
XDIR
YDIR
Image of Address Scanning
0
0
A-1
0
1
A-2
1
0
A-3
0
1
1
A-4
0
0
B-1
0
1
B-2
1
0
B-3
1
1
1
B-4
Caution If the access direction is changed by using INC, XDIR, or YDIR, be sure to set the X address register
(R4) and Y address register (R5) before accessing the display RAM.