How to use CGRAM
The Character Generator RAM (CGRAM) is used to generate custom 5x8 character patterns. There are 8 available
addresses: CGRAM Address 0x00 through 0x08.
Character Code
DDRAM address on Font
Character Patterns
(CGRAM data)
Character Patterns
(CGRAM data)
Table used to write
CGRAM character to
display
CGRAM Address
5
0
4
0
3
0
2
1
0
7 6 5 4 3 2 1 0
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
.
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
.
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
.
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
1 1 1 1 0 Character pattern #0
1 0 0 0 1
1 0 0 0 1
1 1 1 1 0
1 0 1 0 0
1 0 0 1 0
1 0 0 0 1
0 0 0 0 0
1 0 0 0 1 Character pattern #1
0 1 0 1 0
1 1 1 1 1
0 0 1 0 0
1 1 1 1 1
0 0 1 0 0
0 0 1 0 0
0 0 0 0 0
0x00
Cursor position
0
0
1
0x01
0x02..0x06
0x07
Cursor position
.
.
.
.
1
.
.
.
.
1
.
.
.
.
1
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0 0 0 0 0 Character pattern #7
0 1 0 1 0
0 0 0 0 0
0 0 0 0 0
1 0 0 0 1
0 1 1 1 0
0 0 1 0 0
0 0 0 0 0
Cursor position
Notes:
“‐“ = Not used
The cursor line position can be used, it will be displayed as a logic‐OR if the cursor is turned ON.
CGRAM is stored in positions 0x00 through 0x07 of the font table. Therefore, to write the first CGRAM character to the
display, you would move the cursor to the desired DDRAM location on the display and write character data 0x00.
[18]