Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Data_Writ=(unsigned char)(Lcd_RAM_Pointer&0x00ff); //sent the pointer addree lower Byte
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Data_Writ=(unsigned char)((Lcd_RAM_Pointer&0xff00)> > 8); //sent the pointer addree Higher Byte
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Command_Writ=0x24; //Sent the pointer set command. Set the RAM pointer to Lcd_RAM_Pointer
for (count_height=0;count_height <height;count_height++)
{
for (count_width=0;count_width <width;count_width++)
{
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Data_Writ=*pbmp;
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Command_Writ=0x0c0; //Data write RAM address+1 command
pbmp++;
}
Lcd_RAM_Pointer+=30;
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Data_Writ=(unsigned char)(Lcd_RAM_Pointer&0x00ff); //sent the pointer addree lower Byte
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Data_Writ=(unsigned char)((Lcd_RAM_Pointer&0xff00)> > 8); //sent the pointer addree Higher Byte
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Command_Writ=0x24; //Sent the pointer set command. Set the RAM pointer to Lcd_RAM_Pointer
}
}
//--------------------------------------------------------------------------
//This function clear the whole lcd screen
//--------------------------------------------------------------------------
void ClearScreen(void)
{
unsigned int Lcd_Byte_Num=30*64; //Pixels=240*64=15360 Byte Num=15360/8=1920
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Data_Writ=0x00; //sent the pointer addree lower Byte
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Data_Writ=0x00; //sent the pointer addree Higher Byte
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Command_Writ=0x24; //Sent the pointer set command. Set the RAM pointer to 0x0000
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Command_Writ=0x0b0; //turn on the auto-write mode
for (Lcd_Byte_Num=1920;Lcd_Byte_Num> 0;Lcd_Byte_Num--)
{
Lcd_Ready_Check_Auto();
*(volatile unsigned char *)LCD_Data_Writ=0x00; //write '0' to RAM
}
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Command_Writ=0x0b2; //turn off the auto-write mode
}
//--------------------------------------------------------------------
//This function initialize the lcd to the following status:
// Text mode: off
// Graphic mide: on
// Graphic Area Home Address:0x0000
//---------------------------------------------------------------------
void InitLcd(void)
{
/* char pic[]={
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X01,0Xe0,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X3f,0X80,0X00,
0X00,0X00,0X3f,0X80,0X00,0X00,0X03,0Xff,
0Xc0,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X1f,0Xff,0Xff,0Xfe,0X07,0Xff,0X00,
0X00,0X00,0X07,0Xff,0Xf8,0X00,0X00,0X07,
0Xff,0Xf8,0X00,0X00,0X07,0Xff,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X3f,
0Xff,0Xff,0Xfe,0X07,0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Xf8,
0X07,0Xff,0X80,0X1f,0Xfc,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0Xff,0Xe0,0X00,0X00,0Xff,
0Xe0,0X03,0Xff,0X80,0Xff,0Xe0,0X03,0Xff,
0X80,0X7f,0Xf8,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0Xff,0Xc0,0X00,0X01,0Xff,0Xc0,0X03,
0Xff,0X81,0Xff,0Xc0,0X03,0Xff,0X80,0Xff,
0Xe0,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X01,0Xff,
0Xc0,0X00,0X03,0Xff,0X80,0X03,0Xff,0X83,
0Xff,0X80,0X03,0Xff,0X81,0Xff,0Xc0,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X01,0Xff,0X80,0X00,
0X07,0Xff,0X00,0X03,0Xff,0X07,0Xff,0X00,
0X07,0Xff,0X03,0Xff,0X80,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X0f,0Xff,
0Xff,0Xfe,0X03,0Xff,0X80,0X00,0X07,0Xfe,
0X00,0X07,0Xff,0X07,0Xfe,0X00,0X07,0Xff,
0X0f,0Xff,0X00,0X00,0X00,0X00,0X00,0X00,
0X06,0X00,0X00,0X00,0X1f,0Xff,0Xff,0Xfc,
0X03,0Xff,0X00,0X00,0X0f,0Xfe,0X00,0X07,
0Xfe,0X0f,0Xfc,0X00,0X07,0Xfe,0X0f,0Xfc,
0X00,0X00,0X07,0Xff,0Xc0,0X70,0X04,0X00,
0X00,0X00,0X1f,0Xff,0Xff,0Xfc,0X07,0Xff,
0X00,0X00,0X0f,0Xfc,0X00,0X0f,0Xfe,0X0f,
0Xfc,0X00,0X0f,0Xfe,0X1f,0Xf8,0X00,0X00,
0X0c,0X01,0X80,0Xfc,0X08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0Xa1,0X98,
0X80,0X00,0X00,0X1f,0Xff,0Xff,0Xff,0X07,
0Xff,0Xff,0Xff,0X80,0X7f,0Xff,0Xff,0Xc0,
0X00,0X7f,0Xff,0Xff,0Xc0,0X00,0X1f,0Xff,
0X80,0X03,0X81,0X83,0X01,0X19,0X80,0X00,
0X00,0X3f,0Xff,0Xff,0Xfe,0X07,0Xff,0Xff,
0Xff,0X00,0X3f,0Xff,0Xff,0X00,0X00,0X3f,
0Xff,0Xff,0X00,0X00,0X0f,0Xff,0Xc0,0X3c,
0X1f,0X02,0X03,0Xff,0X00,0X00,0X00,0X3f,
0Xff,0Xff,0Xfe,0X0f,0Xff,0Xff,0Xff,0X00,
0X1f,0Xff,0Xfc,0X00,0X00,0X1f,0Xff,0Xfc,
0X00,0X00,0X0f,0Xff,0Xc0,0Xf0,0X38,0X06,
0X00,0X02,0X00,0X00,0X00,0X7f,0Xff,0Xff,
0Xfc,0X0f,0Xff,0Xff,0Xfe,0X00,0X07,0Xff,
0Xc0,0X00,0X00,0X07,0Xff,0Xc0,0X00,0X00,
0X0f,0Xff,0Xc0,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X07,0Xfc,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X07,0Xff,0Xff,0Xff,
0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,
0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,
0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,
0Xc0,0X00,0X07,0Xff,0Xff,0Xff,0Xff,0Xff,
0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,
0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,
0Xff,0Xff,0Xff,0Xff,0Xff,0Xff,0Xc0,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
*/
/*0x0f,0xfe,0x00,0x00,0x00,0x00,0x00,0x00, //logo图像
0x00,0x00,0x01,0xff,0xff,0xe0,0x00,0x00,
0x0f,0xfe,0x00,0x00,0x00,0x00,0x3f,0xff,
0xff,0xc0,0x3f,0xff,0xff,0xff,0xe0,0x00,
0x0f,0xfe,0x00,0x00,0x00,0x01,0xff,0xff,
0xff,0xe3,0xff,0xff,0xff,0xff,0xfc,0x00,
0x0f,0xfe,0x00,0x00,0x00,0x1f,0xff,0xff,
0xff,0xef,0xff,0xff,0xff,0xff,0xff,0x00,
0x0f,0xfe,0x00,0x00,0x01,0xff,0xff,0xc0,
0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xc0,
0x0f,0xfe,0x00,0x00,0x0f,0xff,0xf0,0x00,
0x00,0x7f,0xff,0xff,0x83,0xff,0xff,0xe0,
0x0f,0xfe,0x00,0x00,0x7f,0xff,0x00,0x00,
0x03,0xff,0xfe,0x00,0x00,0x07,0xff,0xf8,
0x0f,0xfe,0x00,0x01,0xff,0xf0,0x00,0x00,
0x0f,0xff,0xe0,0x00,0x00,0x03,0xff,0xf8,
0x0f,0xfe,0x00,0x07,0xff,0x80,0x00,0x00,
0x3f,0xff,0xc0,0x00,0x00,0x01,0xff,0xfe,
0x0f,0xfe,0x00,0x0f,0xfe,0x00,0x00,0x00,
0x7f,0xfc,0x00,0x00,0x00,0x00,0x7f,0xff,
0x0f,0xfe,0x00,0x3f,0xfc,0x00,0x00,0x00,
0xff,0xf0,0x00,0x00,0x00,0x00,0x7f,0xff,
0x0f,0xfe,0x00,0x7f,0xf0,0x00,0x00,0x01,
0xff,0xf0,0x00,0x00,0x00,0x00,0x7f,0xff,
0x0f,0xfe,0x01,0xff,0xe0,0x00,0x00,0x03,
0xff,0xc0,0x00,0x00,0x00,0xff,0xff,0xff,
0x0f,0xfe,0x03,0xff,0xe0,0x00,0x00,0x07,
0xff,0x80,0x00,0x00,0x07,0xff,0xff,0xf0,
0x0f,0xfe,0x07,0xff,0x80,0x00,0x00,0x0f,
0xff,0x00,0x00,0x07,0xff,0xff,0xfe,0x00,
0x0f,0xfe,0x0f,0xff,0x00,0x00,0x00,0x0f,
0xfc,0x00,0x03,0xff,0xff,0xfe,0x00,0x00,
0x0f,0xfe,0x0f,0xff,0x00,0x00,0x00,0x1f,
0xfc,0x00,0x7f,0xff,0xff,0xf0,0x00,0x00,
0x0f,0xfe,0x1f,0xfe,0x00,0x00,0x00,0x3f,
0xff,0xff,0xff,0xfe,0x00,0x00,0x00,0x00,
0x0f,0xfe,0x1f,0xfe,0x00,0x00,0x00,0x3f,
0xff,0xff,0xff,0xc0,0x00,0x00,0x1f,0xfe,
0x0f,0xfe,0x1f,0xfe,0x00,0x00,0x00,0x7f,
0xff,0xff,0xf0,0x00,0x00,0x00,0x3f,0xfc,
0x0f,0xfe,0x1f,0xfe,0x00,0x00,0x00,0x7f,
0xff,0x80,0x00,0x00,0x00,0x00,0x7f,0xf8,
0x0f,0xfe,0x1f,0xfe,0x00,0x00,0x00,0x7f,
0xfc,0x00,0x00,0x00,0x00,0x01,0xff,0xf0,
0x0f,0xfe,0x0f,0xfe,0x00,0x00,0x00,0x7f,
0xfc,0x00,0x00,0x00,0x00,0x01,0xff,0xe0,
0x0f,0xfe,0x0f,0xff,0x00,0x00,0x00,0x7f,
0xff,0x00,0x00,0x00,0x00,0x07,0xff,0xc0,
0x0f,0xfe,0x07,0xff,0x00,0x00,0x00,0x3f,
0xff,0x00,0x00,0x00,0x00,0x0f,0xff,0x80,
0x0f,0xfe,0x03,0xff,0x80,0x00,0x00,0x1f,
0xff,0x80,0x00,0x00,0x00,0x3f,0xfe,0x00,
0x0f,0xfe,0x01,0xff,0xf0,0x00,0x00,0x0f,
0xff,0xc0,0x00,0x00,0x03,0xff,0xf8,0x00,
0x0f,0xfe,0x00,0xff,0xf8,0x00,0x00,0x07,
0xff,0xf0,0x00,0x00,0x0f,0xff,0xc0,0x00,
0x0f,0xfe,0x00,0x7f,0xff,0x00,0x00,0xff,
0xff,0xfc,0x00,0x01,0xff,0xff,0x00,0x00,
0x0f,0xfe,0x00,0x1f,0xff,0xff,0xff,0xfd,
0xff,0xff,0xff,0xff,0xff,0xf8,0x00,0x00,
0x0f,0xfe,0x00,0x07,0xff,0xff,0xff,0xe0,
0x7f,0xff,0xff,0xff,0xff,0x80,0x00,0x00,
0x0f,0xfe,0x00,0x00,0x7f,0xff,0xfe,0x00,
0x0f,0xff,0xff,0xff,0x80,0x00,0x00,0x00,
0x0f,0xfe,0x00,0x00,0x00,0xff,0xc0,0x00,
0x00,0x7f,0xff,0xf0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xfc,0x00,0x00,0x7f,0x00,0x0c,0x00,0xf0,
0x00,0xf0,0x03,0xe0,0x0f,0xe0,0x01,0xff,
0xf0,0x00,0x00,0x1f,0x00,0x0c,0x00,0xf0,
0x00,0xf0,0x01,0xe0,0x0f,0xc0,0x00,0xff,
0xf0,0x03,0xc0,0x0f,0x00,0x0c,0x00,0xf0,
0x00,0xf0,0x00,0xe0,0x0f,0xc0,0x00,0x7f,
0xf0,0x03,0xc0,0x07,0x00,0x0c,0x00,0xf0,
0x00,0xf0,0x00,0x60,0x0f,0x80,0x20,0x3f,
0xf0,0x03,0xff,0xff,0x00,0x00,0x00,0xf0,
0x00,0xf0,0x00,0x20,0x0f,0x00,0x60,0x1f,
0xf0,0x03,0xff,0xff,0x00,0x00,0x00,0xf0,
0x00,0xf0,0x08,0x00,0x0f,0x00,0x60,0x0f,
0xf0,0x03,0xc0,0x07,0x00,0x0c,0x00,0xf0,
0x00,0xf0,0x0c,0x00,0x0e,0x00,0x00,0x07,
0xf0,0x03,0xc0,0x0f,0x00,0x0c,0x00,0xf0,
0x00,0xf0,0x0e,0x00,0x0e,0x00,0x00,0x03,
0xf0,0x00,0x00,0x0f,0x00,0x0c,0x00,0xf0,
0x00,0xf0,0x0f,0x00,0x0c,0x00,0x00,0x01,
0xfc,0x00,0x00,0x3f,0x00,0x0c,0x00,0xf0,
0x00,0xf0,0x0f,0x80,0x08,0x00,0x70,0x00,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
*/
//};
setBackLi(1); //点亮背光
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Command_Writ=0x98; //只打开图形显示
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Data_Writ=0x00;
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Data_Writ=0x00;
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Command_Writ=0x42; //置图形区首址为0x0000
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Data_Writ=30;
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Data_Writ=0x00;
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Command_Writ=0x43; //置图形区行宽为30字节
Lcd_Ready_Check();
*(volatile unsigned char *)LCD_Command_Writ=0x80; //显示方式设置
//ClearScreen(); //清屏
//PutBmp(0,2,30,48,pic); //现实”ICE china“字样的开机画面
}
for (count_height=0;count_height <height;count_height++){
for(count_width+0;count_width <width;count_width++){
fnPR13(*ptr);
fnPR12(LC_INC_WR); //地址自动增1
++ptr;
};
Lcd_Ram_Pointer+=30;
fnPR1(LC_ADD_POS,Lcd_Ram_Pointer&0x00ff,(Lcd_Ram_Pointer&0xff00)> > 8);
}
调用的时候用的:dispBMP(4,6,32,32,bmp);
4, 当然背光也调调试试;
5,dispBMP(4,6,32,32,bmp),中的图象宽度为 < 240/8-1 = 29;
高度 < 128-1 127;
6,我的MSN: MMXMMX_HAO@HOTMAIL.COM ,这样更方便找我