导航: 老古网老古论坛XMOS公共讨论区XMOS开源项目区单片机程序设计嵌入式系统广告区域
→一个子程序,你看看,240×64

* 35900: [求助]使用youth的6963c经典程序,如何显示一副图片?

   microhelp 
microhelp发表的帖子 

 一个子程序,你看看,240×64
/----------------------------------------------------------------------
//This fuction display a picture on the lcd screen
//   Parameters:
//     x       -x address  0  <=x  <=29
//     y       -y address  0  <=y  <=63
//   width     -width in Bytes   1  <=width  <=30
//   height    -height in pixel  1  <=height  <=64
//   pbmp      -pointer of the picture starting address
//-----------------------------------------------------------------------
void PutBmp(int x,int y,int width,int height,char* pbmp)
{
 int Lcd_RAM_Pointer;                                      //lcd RAM address to be Written
 int count_height,count_width;
 Lcd_RAM_Pointer=y*30+x;

 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,0Xfe,0X00,0X00,0X00,
0X1f,0Xff,0Xfe,0X00,0X00,0X1f,0Xff,0Xfc,
0X00,0X00,0X0f,0Xfe,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X3f,0Xff,0Xff,
0Xfc,0X0f,0Xfe,0X00,0X00,0X00,0X7f,0Xff,
0Xff,0X00,0X00,0X7f,0Xff,0Xff,0X00,0X00,
0X3f,0Xfc,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X7f,0Xff,0Xff,0Xf8,0X0f,
0Xfc,0X00,0X00,0X01,0Xff,0Xff,0Xff,0X00,
0X01,0Xff,0Xff,0Xff,0X00,0X00,0X7f,0Xf8,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X7f,0Xff,0Xff,0Xf8,0X1f,0Xfc,0X00,
0X00,0X07,0Xff,0Xff,0Xff,0X80,0X07,0Xff,
0Xff,0Xff,0X80,0X00,0Xff,0Xe0,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0Xff,
0Xff,0Xff,0Xf0,0X1f,0Xf8,0X00,0X00,0X0f,
0Xff,0Xff,0Xff,0X80,0X0f,0Xff,0Xff,0Xff,
0X80,0X01,0Xff,0Xc0,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0Xff,0Xff,0Xff,
0Xf0,0X3f,0Xf8,0X00,0X00,0X1f,0Xff,0Xff,
0Xff,0X80,0X1f,0Xff,0Xff,0Xff,0X80,0X07,
0Xff,0X80,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X7f,
0Xf0,0X00,0X00,0X3f,0Xff,0X0f,0Xff,0X80,
0X3f,0Xff,0X0f,0Xff,0X80,0X0f,0Xfe,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X7f,0Xe0,0X00,
0X00,0Xff,0Xf8,0X07,0Xff,0X80,0Xff,0Xf8,
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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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“字样的开机画面
}

发表时间:2003年7月1日11:05:51

  
回复该帖

本主题共有 8 帖,分页:>>>>>该主题的所有内容[8]条

 *树形目录 只列出部分跟帖的标题以及简单的摘要信息 该主题的部分跟帖如下:

  35906.[详细]问题 for microhelp
摘要:PutBmp(int x,int y,int width,int height,char* pbmp) 该函数是表示在x行y列显示一副宽为width高为height的图片,对吗&n......(120字)
- [aoker][1015次] 2003年7月1日

  35941.[详细]microhelp,在吗,请帮我看看为什么还是无法显示?
摘要:void dispBMP(uchar urow,uchar ucol,uchar width,uchar height,char *ptr){  uint&nb......(596字)
- [aoker][1064次] 2003年7月1日

  35946.[详细]首先看看INIT对不对?
摘要:1, 初始化很重要,图形模式,OR模式;先照我给你的; 2, 一步一步来,直接送字节数据,看具体位置是否正确; 3,  LCD  4脚的反馈电压-8V左右,由2......(461字)
- [microhelp][1142次] 2003年7月1日

[上一篇帖子]:请问如何用51的计数器测量外信号的脉冲宽度啊?想要用51的计数器测量一频率为20~200HZ的方波信
[下一篇帖子]:自己试试就知道了