RAiO RA8806 - Display Future
RAiO RA8806 - Display Future
RAiO RA8806 - Display Future
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Version 1.3<br />
<strong>RA8806</strong><br />
Two Layers Character/Graphic LCD Controller<br />
SJIS-High Byte<br />
SJIS-Low Byte<br />
81h ~ 9Fh<br />
E0h ~ FFh<br />
40h ~ 7Eh<br />
80h ~ 9Eh<br />
9Fh ~ FCh<br />
-81h -C1h<br />
-01h<br />
00h ~ 2Eh<br />
40h ~ 9Dh<br />
左 移 1 bit<br />
+ N<br />
-1Fh<br />
-7Eh<br />
00h ~ 5Dh<br />
+21h<br />
21h ~ 7Eh<br />
(JIS-High Byte)<br />
N=0 N=1<br />
21h ~ 7Eh<br />
(JIS-Low Byte)<br />
+80h If >=0x60 If < 0x60<br />
+40h<br />
+20h<br />
A1h ~ FEh<br />
(<strong>RA8806</strong> ROM Code-High Byte)<br />
A0h ~ BEh / 41h ~ 7Fh<br />
(<strong>RA8806</strong> ROM Code-Low Byte)<br />
Figure 6-43 : The flow chart of the S-JIS code transfer to <strong>RA8806</strong>-J<br />
//===================================================<br />
// Main Program<br />
//===================================================<br />
void main(void)<br />
{<br />
LCD_Reset();<br />
LCD_Initial();<br />
LCD_ON();<br />
LCD_Clear();<br />
LCD_Text();<br />
// Turn on the screen<br />
// Clear display memory all<br />
// Switch display mode to “Text mode”<br />
LCD_GotoXY(0, 0);<br />
LCD_Print_J_Str(SJIS_string, 20);<br />
}<br />
// SJIS_string is a string include Shifit - JIS Code<br />
//===================================================<br />
// Subroutine : Transform SJIS to JIS<br />
//===================================================<br />
void LCD_Print_JIS_Str(uchar *ptr, int char_num) // string pointer , char numbers<br />
{<br />
int temp = 0;<br />
unsigned char SJIS_HB, SJIS_LB, JIS_HB, JIS_LB, LSB;<br />
<strong>RAiO</strong> TECHNOLOGY INC. 73/193 www.raio.com.tw