English
Language : 

RA8806 Datasheet, PDF (83/174 Pages) RAIO Technology Inc. – Two Layers Character/Graphic LCD Controller Specification
Preliminary Version 1.0
RA8806
Two Layers Character/Graphic LCD Controller
Program Example(2):
// Create a half-size font in CGRAM and show on the screen.
// font_data[] = {00, 82, 44, 28, FE, 10, 10, 10, FE, 10, 10, 38, 54, 92, 10, 00}
Access_CGRAM();
Only_Show_DDRAM1();
LCD_CMDWrite( CURY );
LCD_DataWrite( 0x02 );
LCD_CMDWrite( CURX );
LCD_DataWrite( 0x10 );
LCD_CMDWrite( MWrite );
for( i = 0; i < 16; i++ )
{
LCD_DataWrite( font_data[i] );
Delay2us(50);
}
LCD_GotoXY( 5 , 5 );
LCD_CMDWrite( MWrite );
LCD_DataWrite( 0x8F );
LCD_DataWrite( 0x05 );
// MAMR[1:0] = 00b
// MAMR[6:4] = 001b
// Create 6th half-size char
// Write font-data from 1st byte
// B0h, Memory write command
// 16 continuous write for font bit-map
// Set Cursor position ( 5 , 5 )
// Corresponding font code( 8F05h )
// Show as (2) of Figure 6-52
6-11-2 Create Font in DDRAM
The DDRAM are 9.6KByte RAM, so it could create 600 Half-Size or 300 Full-Size characters. Table
6-36 is the font code mapping table in DDRAM for Half-Size characters. Table 6-37 is the font code
mapping table in DDRAM for Full –Size characters. These font codes were also fix in RA8806. The
register CURX and CURY are used to point the address that bit-map data to create font.
According to the register setting of user-created font in DDRAM, please refer to the below table.
Table 6-35 : Register Definition for Created-font in DDRAM
Reg. Bit_Num
Description
Reference
Bit 7
Cursor Increase enable
MAMR Bit [6:4] Display mode
REG[12h]
Bit [1:0] Select memory for write cycle
CURX
CURY
Bit [5:0]
Bit [7:0]
Both registers are Indicate which font
code data will be created.
REG[60h]
REG[70h]
RAiO TECHNOLOGY INC.
83/174
www.raio.com.tw