RA8835A
Version 1.0
Dot Matrix LCD Controller
7-16-2 CG RAM Addressing Example
• Define a pattern for the “A” in Figure 7-9.
• The CG RAM table start address is 4800H.
• The character code for the defined pattern is 80H (the first character code in the CG RAM
area).
As the character code table in Figure 7-29 shows, codes 80H to 9FH and E0H to FFH are
allocated to the CG RAM and can be used as desired. 80H is thus the first code for CG RAM. As
characters cannot be used if only using graphics mode, there is no need to set the CG RAM data.
Table-23: Character Data Example
CGRAM AD
5CH
00H
40H
4CH
46H
00H
48H
42H
70H
88H
88H
88H
F8H
88H
88H
00H
00H
↓
Reverse the CG RAM address calculation to calculate SAG
P1
P2
CSRDIR
CSRW
P1
Set cursor shift direction to right
CG RAM start address is 4800H
P2
MWRITE
P
Write ROW 0 data
Write ROW 1 data
Write ROW 2 data
Write ROW 3 data
Write ROW 4 data
Write ROW 5 data
Write ROW 6 data
Write ROW 7 data
Write ROW 8 data
↓
P2
P3
P4
P5
P6
P7
P8
P8
↓
P16
00H
Write ROW 15 data
RAiO TECHNOLOGY INC.
www.raio.com.tw
55/88