ra8806 RAIO Technology Inc., ra8806 Datasheet - Page 86

no-image

ra8806

Manufacturer Part Number
ra8806
Description
Two Layers Character/graphic Lcd Controller
Manufacturer
RAIO Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ra8806L2N-S
Manufacturer:
ST
Quantity:
2 100
Part Number:
ra8806L2N-S
Manufacturer:
RAIO
Quantity:
20 000
Part Number:
ra8806P1N-S
Manufacturer:
RAIO
Quantity:
4 000
Preliminary Version 1.2
RAiO
TECHNOLOGY INC.
Note:
Program Example(1):
1. CGRAM contains 512 bytes and can contain 16 16x16 full-size or 32 8x16 half-size user-
2. For created full-size font, after CURY is assign(0~15) and CURX is set to 0, a created-font
3. For created half-size font, after CURY is assign(0~15) and CURX is set to 0(odd font) or
4. The CGRAM font code is 8F00~8F1F for Half-size font, and 9F00~9F0Fh for full-size font.
created font. Each full-size font contains 32bytes.
bit-map can be filled by the 32 continuous memory writes cycle. And then CURY will be
increased by 1. Please refer the following Program Example(1). The result is show (1) of
Figure 6-53 on screen.
10h(even font), a created-font bit-map can be filled by the 16 continuous memory writes cycle.
Please refer the following Program Example(2). The result is show (2) of Figure 6-53 on
screen.
Refer to Table 6-31.
// Create a full-size font in CGRAM and show on the screen.
// font_data[] = {00, 00, 07, 1F, 20, 67, 68, 09, 1A, 15, 16, 15, 12, 1F, 00, 00,
// 00, 00, E0, F8, 04, E6, 16, 90, 58, A8, 68, A8, 48, F8, 00, 00}
Access_DDRAM1();
LCD_Text();
Access_CGRAM();
Only_Show_DDRAM1();
LCD_CmdWrite( CURY );
LCD_DataWrite( 0x05 );
LCD_CmdWrite( CURX );
LCD_DataWrite( 0x00 );
LCD_CmdWrite( MWCR);
for( i = 0; i < 32; i++ )
LCD_GotoXY( 5 , 5 );
LCD_CmdWrite( MWCR);
LCD_DataWrite( 0x9F );
{ LCD_DataWrite( font_data[i] );
}
Figure 6-54 : The Flow-chart of User-created Font on CGRAM
Delay2us(50);
(It indicates which font will
DDRAM1 or DDRAM2
Set MAMR to access
Set display data is
be created) (*1)
Create Font
Set CURY
CGRAM
CGRAM
86/184
// MAMR[1:0] = 00b
// MAMR[6:4] = 001b
// Create 6
// Write font-data from 1
// B0h, Memory write command
// 32 continuous write for font bit-map
// Set Cursor position ( 5 , 5 )
// Corresponding font code( 9F05h )
Write memory write command
Write the corresponding code
(B0h) and write the font data
Two Layers Character/Graphic LCD Controller
to show the font on active
Set the CURX to 0(First
sequentially. (*2)
display layer (*3)
byte in font)
th
full-size character
st
byte
www.raio.com.tw
RA8806

Related parts for ra8806