19264显示驱动程序Word文档下载推荐.docx
- 文档编号:17823542
- 上传时间:2022-12-11
- 格式:DOCX
- 页数:11
- 大小:15.44KB
19264显示驱动程序Word文档下载推荐.docx
《19264显示驱动程序Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《19264显示驱动程序Word文档下载推荐.docx(11页珍藏版)》请在冰豆网上搜索。
#defineCS1P2_4
#defineCS2P2_3
#defineCS3P2_2
#defineDATAP0
#defineucharunsignedchar
#defineuintunsignedint
/*----------------------------------------------------------------------------
Delaysometime
------------------------------------------------------------------------------*/
voiddelay10ms(unsignedcharx)
{
unsignedchari,j,k;
for(i=0;
i<
x;
i++)
for(j=0;
j<
10;
j++)
for(k=0;
k<
120;
k++);
}
SendtheinstructiontotheFirstKS0108window
------------------------------------------------------------------------------
--*/
voidOutFI(uchari)
{
unsignedchardata_sta;
do{
E=0;
RW=1;
RS=0;
CS1=0;
_nop_();
E=1;
data_sta=DATA;
RW=0;
CS1=1;
}while(data_sta&
0x80);
DATA=i;
SendtheinstructiontotheSecondKS0108window.
voidOutSI(uchari)
CS2=0;
CS2=1;
SendtheinstructiontotheThirdKS0108window
voidOutTI(uchari)
CS3=0;
CS3=1;
SendthedatatotheFirstks0108Window
voidOutFD(uchari)
RS=1;
SendthedatatotheSecondks0108Window
voidOutSD(uchari)
SendthedatatotheThirdks0108Window
voidOutTD(uchari)
ReadthedatatotheFirstks0108Window
/*unsignedcharRD_data_F()
return(data_sta);
ReadthedatatotheSecondks0108Window
/*unsignedcharRD_data_S()
ReadthedatatotheThirdks0108Window
/*unsignedcharRD_data_T()
return(data_sta);
/*------------------------------------------------------------------------------
InitializetheLCD,Thesystemreset,invokeFirsttime
--------------------------------------------------------------------------------
-*/
voidInitLCD()
OutFI(0x40);
/*SettheYaddress0*/
OutSI(0x40);
OutTI(0x40);
OutFI(0xb8);
/*SetthePage0*/
OutSI(0xb8);
OutTI(0xb8);
OutFI(0xc0);
/*Setthedisplaystartline0*/
OutSI(0xc0);
OutTI(0xc0);
OutFI(0x3f);
/*DisplayON*/
OutSI(0x3f);
OutTI(0x3f);
Clearthethreeks0108'
sdisplayram.
Clrscrscreen
voidClrscreen()
unsignedchari,j;
8;
OutFI(0xb8|i);
64;
OutFI(j|0x40);
OutFD(0);
OutSI(0xb8|i);
OutSI(j|0x40);
OutSD(0);
OutTI(0xb8|i);
OutTI(j|0x40);
OutTD(0);
--
DisplayChineseideograph;
x_addisthexaddress;
Ithas4layers,0,1,2,3;
WidthistheChineseideographwidth;
bmpisthetable'
sname
voidDrawBmp(ucharx_add,ucharlayer,ucharwidth,uchar*bmp)
unsignedcharx;
unsignedinti=0;
for(x=x_add;
x<
x_add+width;
x++)
if(x>
127)/*TheThirdKS0108*/
OutTI((x-128)|0x40);
/*Setthexaddress*/
OutTI(layer|0xb8);
/*Settheyaddress*/
OutTD(bmp[i]);
/*SendthddatatoLCDram*/
/*Displaythedownscreen*/
OutTI((layer|0xb8)+1);
i++;
/*Displayzimotableaddressadd1*/
elseif(x>
63)/*TheSecondks0108*/
OutSI((x-64)|0x40);
OutSI(layer|0xb8);
OutSD(bmp[i]);
OutSI((layer|0xb8)+1);
else/*TheFirstks0108*/
OutFI(x|0x40);
OutFI(layer|0xb8);
OutFD(bmp[i]);
OutFI((layer|0xb8)+1);
sname.
voidDrawBmp_f(ucharx_add,ucharlayer,ucharwidth,uchar*bmp)
127)
OutTD(~bmp[i]);
63)
OutSD(~bmp[i]);
else
OutFD(~bmp[i]);
Displayindention;
x_addisthexaddress;
WidthistheChineseideographwidth
void_DrawBmp_(ucharx_add,ucharlayer,ucharwidth)
void_DrawBmp_black(ucharx_add,ucharlayer,ucharwidth)
OutTD(0xff);
OutSD(0xff);
OutFD(0xff);
Displaytheline
display_data_graphisthedisplaygraphdata
void_DrawBmp_line(ucharx_add,ucharlayer,ucharwidth,uchardisplay_data_graph)
OutTD(display_data_graph);
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 19264 显示 驱动程序