⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lcm6963 2.lst

📁 lcm6963液晶显示程序
💻 LST
📖 第 1 页 / 共 4 页
字号:
 402          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 403          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 404          0x3F,0xC0,0x80,0x42,0x04,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x8A,0x1F,0xFC,
 405          0x42,0x04,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x80,0x01,0xFF,0xDE,0x88,
 406          0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x2A,0x87,0xF0,0xA2,0x0A,0xF8,0x00,0x00,0x00,
 407          0x00,0x00,0x00,0x00,0xBF,0x84,0x10,0xA2,0x0A,0x88,0x00,0x00,0x00,0x00,0x00,0x00,
 408          0x00,0x80,0x1F,0xFC,0xA2,0x0A,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x9F,0x90,
 409          0x05,0x2F,0xCA,0xA4,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x03,0xE1,0xA8,0x4A,
 410          0xA8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xBF,0xC2,0x24,0x48,0x44,0x90,0x00,0x00,
 411          0x00,0x00,0x00,0x00,0x00,0x92,0x84,0x24,0xA8,0x4A,0xA8,0x00,0x00,0x00,0x00,0x00,
 412          0x00,0x00,0xA6,0x58,0x3D,0x0F,0xD0,0xC4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 413          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
 414          0x00,0x00,0x00,0x00,0x23,0x08,0x37,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 415          0x00,0x40,0x10,0x08,0x40,0x00,0xFF,0x90,0x10,0x08,0x00,0x00,0x00,0x00,0x81,0x86,
 416          0x10,0x40,0x00,0x08,0x08,0x10,0xFF,0x86,0x00,0x00,0x01,0x02,0x49,0x40,0x40,0x00,
 417          0x7F,0x0B,0xFC,0x08,0x0F,0x00,0x00,0x01,0x08,0x00,0x40,0x20,0x00,0x10,0x00,0x10,
 418          0x49,0x0F,0x00,0x00,0x02,0x08,0x00,0x20,0x20,0x01,0xFF,0xDD,0x10,0x2A,0x0F,0x00,
 419          0x00,0x04,0x31,0x83,0x20,0x20,0x00,0x20,0x04,0x91,0xFF,0xC6,0x00,0x00,0x04,0x52,
 420          0x44,0x90,0x20,0x00,0x7F,0x04,0x90,0x1C,0x06,0x00,0x00,0x09,0xA4,0x28,0x4C,0x10,
 421          0x00,0xA1,0x04,0x10,0x2A,0x00,0x00,0x00,0x0E,0x44,0xE9,0xC3,0x90,0x01,0x3F,0x04,
 422          0x70,0x49,0x06,0x00,0x00,0x00,0x82,0xC5,0x81,0x70,0x00,0x21,0x0A,0x01,0x88,0xC6,
 423          0x00,0x00,0x01,0x01,0x83,0x00,0x80,0x00,0x3F,0x11,0xFC,0x08,0x00,0x00,0x00,0x01,
 424          0x0C,0x70,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x13,0x87,0x10,
 425          0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x20,0x78,0xA0,0x40,0x00,0x00,
 426          0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x20,0x00,0x60,0x40,0x00,0x00,0x00,0x00,0x00,
 427          0x00,0x00,0x00,0x02,0x21,0x80,0x60,0x40,0x00,0x00,0x71,0xEE,0x3C,0x00,0x00,0x00,
C51 COMPILER V6.12  LCM6963_2                                                              09/19/2005 11:41:23 PAGE 8   

 428          0x01,0x11,0x98,0x90,0x80,0x00,0x00,0x8E,0x31,0xC6,0x00,0x00,0x00,0x01,0x08,0x18,
 429          0x80,0x80,0x00,0x01,0x24,0x24,0x83,0x00,0x00,0x00,0x00,0x96,0x01,0x01,0x00,0x00,
 430          0x01,0x40,0x28,0x03,0x00,0x00,0x00,0x00,0x49,0x86,0x03,0x00,0x00,0x01,0x40,0x28,
 431          0x03,0x00,0x00,0x00,0x00,0x34,0x78,0x8C,0x00,0x00,0x01,0x00,0x20,0x03,0x00,0x00,
 432          0x00,0x00,0x0E,0x01,0x30,0x00,0x00,0x00,0x80,0x30,0x06,0x00,0x00,0x00,0x00,0x71,
 433          0x87,0xCE,0x00,0x00,0x00,0x40,0x68,0x0C,0x00,0x00,0x00,0x00,0xE0,0x78,0x07,0x00,
 434          0x00,0x00,0x20,0xC4,0x18,0x00,0x00,0x00,0x01,0xAF,0xFF,0xC5,0x80,0x00,0x00,0x11,
 435          0x82,0x30,0x00,0x00,0x00,0x03,0xA9,0xB6,0x45,0xC0,0x00,0x00,0x0B,0x01,0x60,0x00,
 436          0x00,0x00,0x07,0x2F,0x03,0xC4,0xE0,0x00,0x00,0x06,0x00,0xC0,0x00,0x00,0x00,0x0E,
 437          0x16,0x01,0x88,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x08,0x00,0x10,
 438          0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x84,0x00,0x21,0xF0,0x00,0x00,
 439          0x00,0x00,0x00,0x00,0x00,0x00};
 440          
 441          
 442          unsigned char code tabAVR3[]={
 443          
 444                0x00,0x80,0x00,0x80,0xFC,0x80,0x04,0xFC,
 445                0x45,0x04,0x46,0x48,0x28,0x40,0x28,0x40,
 446                0x10,0x40,0x28,0x40,0x24,0xA0,0x44,0xA0,
 447                0x81,0x10,0x01,0x08,0x02,0x0E,0x0C,0x04,
 448          
 449                0x00,0x00,0x41,0x84,0x26,0x7E,0x14,0x44,
 450                0x04,0x44,0x04,0x44,0xF4,0x44,0x14,0xC4,
 451                0x15,0x44,0x16,0x54,0x14,0x48,0x10,0x40,
 452                0x10,0x40,0x28,0x46,0x47,0xFC,0x00,0x00,
 453          
 454                0x01,0x00,0x21,0x08,0x11,0x0C,0x09,0x10,
 455                0x09,0x20,0x01,0x04,0xFF,0xFE,0x04,0x40,
 456                0x04,0x40,0x04,0x40,0x04,0x40,0x08,0x40,
 457                0x08,0x42,0x10,0x42,0x20,0x3E,0x40,0x00,
 458          
 459                0x10,0x80,0x10,0x80,0x51,0x04,0x51,0xFE,
 460                0x52,0x00,0x54,0x80,0x58,0x60,0x50,0x24,
 461                0x57,0xFE,0x54,0x44,0x54,0x44,0x54,0x44,
 462                0x54,0x44,0x14,0x44,0x17,0xFC,0x14,0x04,
 463          
 464                0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 465                0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 466                0x0C,0x00,0x1E,0x00,0x1E,0x00,0x0C,0x00,
 467                0x04,0x00,0x08,0x00,0x10,0x00,0x00,0x00,
 468          
 469                0x10,0x00,0x10,0x7C,0x10,0x44,0x3F,0x44,
 470                0x42,0x48,0x84,0x48,0x7F,0x50,0x01,0x48,
 471                0x01,0x44,0x3F,0x42,0x01,0x42,0x01,0x62,
 472                0x7F,0x54,0x01,0x48,0x00,0x40,0x00,0x40,
 473          
 474                0x01,0x00,0x01,0x00,0x01,0x04,0xFF,0xFE,
 475                0x01,0x00,0x01,0x00,0x01,0x10,0x3F,0xF8,
 476                0x00,0x00,0x02,0x00,0x11,0x80,0x50,0x84,
 477                0x50,0x12,0x90,0x12,0x0F,0xF0,0x00,0x00,
 478          
 479                0x10,0x00,0x13,0xF8,0x10,0x10,0x10,0x20,
 480                0xFC,0x40,0x10,0x84,0x17,0xFE,0x18,0xA4,
 481                0x30,0xA4,0xD0,0xA4,0x11,0x24,0x11,0x44,
 482                0x12,0x44,0x14,0x84,0x51,0x28,0x20,0x10
 483          };
 484          unsigned char code tabAVR4[]={
 485            0x20,0x00,0x3D,0xF0,0x49,0x10,0x91,0x20,
 486                0xFD,0x40,0x05,0x20,0x7D,0x10,0x05,0x10,
 487                0x05,0x90,0xFD,0x60,0x05,0x00,0x01,0x00,
 488          
 489            0x04,0x00,0x04,0x20,0xFF,0xF0,0x04,0x00,
C51 COMPILER V6.12  LCM6963_2                                                              09/19/2005 11:41:23 PAGE 9   

 490                0x04,0x00,0x7F,0xE0,0x00,0x00,0x14,0x40,
 491                0x52,0x20,0x52,0x90,0x90,0x90,0x0F,0x80,
 492          
 493            0x20,0x00,0x27,0xC0,0xF8,0x80,0x21,0x00,
 494                0x22,0x20,0x37,0xF0,0x62,0xA0,0xA2,0xA0,
 495                0x24,0xA0,0x29,0x20,0xA2,0xA0,0x64,0x40
 496          };
 497          unsigned char code car[]={//宽度x高度=104x46 
 498          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x00,0x07,0x00,0x06,0x30,
 499          0x01,0xE0,0x00,0x00,0x2A,0x00,0x00,0xD8,0x00,0x07,0x00,0x0F,0x7B,0x63,0xE0,0x00,
 500          0x00,0x22,0x00,0x01,0x24,0x00,0x07,0x00,0x0F,0xFB,0x63,0x07,0x34,0x00,0x14,0x00,
 501          0x01,0x04,0x00,0x07,0x00,0x0D,0xDB,0x63,0x01,0xBC,0x00,0x08,0x00,0x00,0x88,0x00,
 502          0x07,0x00,0x0C,0x1B,0x63,0x07,0xB0,0x00,0x00,0x00,0x00,0x50,0x00,0x07,0x00,0x0C,
 503          0x1B,0x63,0xED,0xB0,0xDB,0x00,0x01,0x00,0x20,0x00,0x07,0x00,0x0C,0x19,0xE1,0xE7,
 504          0xB0,0xDB,0x00,0x02,0x00,0x00,0x00,0x07,0x00,0x0C,0x19,0xE1,0xE7,0xB0,0xDB,0x00,
 505          0x02,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x04,0x00,0x00,
 506          0x00,0x07,0x00,0x00,0x03,0xC0,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x07,0x00,
 507          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x05,0x00,0x00,0x07,0x00,0x00,0x00,0x00,
 508          0x00,0x00,0x00,0x00,0x10,0x0A,0x80,0x00,0x07,0x00,0x00,0x00,0x0A,0x00,0x00,0xFF,
 509          0xF8,0xE0,0x05,0x00,0x00,0x07,0x00,0x06,0xC0,0x15,0x00,0x1F,0xFF,0xFF,0xC0,0x02,
 510          0x00,0x00,0x07,0x00,0x09,0x20,0x11,0x00,0xFB,0xFF,0xE1,0xF8,0x00,0x00,0x00,0x07,
 511          0x00,0x08,0x20,0x0A,0x03,0x9F,0x00,0x9E,0x3E,0x00,0x00,0x00,0x07,0x00,0x04,0x40,
 512          0x04,0x0E,0x70,0x00,0x81,0xC7,0x80,0x01,0x40,0x07,0x00,0x02,0x80,0x00,0x1D,0x80,
 513          0x00,0xE0,0x61,0xE0,0x02,0xA0,0x07,0x00,0x01,0x00,0x00,0x77,0x9F,0xFC,0xF0,0x18,
 514          0xF8,0x02,0x20,0x07,0x00,0x00,0x00,0x01,0xDF,0x00,0x00,0xF3,0x0C,0x3C,0x01,0x40,
 515          0x07,0x00,0x00,0x00,0x03,0x9E,0x00,0x00,0xF8,0x06,0x1E,0x00,0x80,0x07,0x00,0x00,
 516          0x00,0x07,0x0E,0x30,0x01,0xFC,0x7F,0x07,0x00,0x00,0x07,0x00,0x00,0x00,0x07,0x0E,
 517          0x30,0x01,0xFC,0x7F,0x07,0x00,0x00,0x07,0x00,0x00,0x00,0x7E,0xFF,0xFF,0xFF,0xFF,
 518          0xFF,0x83,0xC0,0x00,0x07,0x00,0x00,0x0F,0xFD,0xFF,0xFF,0xFF,0xFF,0xFC,0x01,0xF0,
 519          0x00,0x07,0x00,0x00,0x3F,0x81,0xFF,0x00,0x00,0x00,0x00,0x1F,0xF0,0x00,0x07,0x00,
 520          0x00,0xFE,0xF0,0x00,0x00,0x01,0x00,0x00,0xC0,0x1C,0x00,0x07,0x00,0x03,0xC0,0x07,
 521          0x80,0x00,0x03,0xE0,0x07,0x00,0x1C,0x00,0x07,0x00,0x03,0x80,0x03,0x40,0x00,0x03,
 522          0xE0,0x0C,0x00,0x0E,0x00,0x07,0x00,0x07,0x00,0x00,0xC0,0x00,0x00,0x20,0x18,0x00,
 523          0x07,0x00,0x07,0x00,0x09,0x01,0x80,0x60,0x00,0x00,0x20,0x73,0x9F,0x03,0x80,0x07,
 524          0x00,0x1E,0x0F,0xF2,0x20,0x00,0x00,0x20,0x67,0xFF,0xC1,0xC0,0x07,0x00,0x1E,0x1F,
 525          0xF9,0x30,0x00,0x00,0x20,0xEF,0xFF,0xE0,0xE0,0x07,0x00,0x38,0x3F,0xFC,0x90,0x00,
 526          0x00,0x20,0xCB,0xFF,0xF9,0xF0,0x07,0x00,0x7F,0x7F,0xFE,0x10,0x00,0x00,0x20,0xDB,
 527          0xFF,0xFF,0xF0,0x07,0x00,0x6E,0xF9,0xBF,0x10,0x00,0x00,0x20,0xF7,0xED,0xFF,0xF0,
 528          0x07,0x00,0x7C,0xFC,0x3F,0x10,0x00,0x00,0x20,0x67,0xE1,0xFD,0xE0,0x07,0x00,0x7C,
 529          0xFC,0x3F,0x10,0x00,0x00,0x20,0x67,0xE1,0xFD,0xE0,0x07,0x00,0x38,0xFC,0x3F,0x18,
 530          0x00,0x00,0x20,0x87,0xE0,0xFD,0xC0,0x07,0x00,0x38,0xF1,0x8F,0x18,0x00,0x1F,0xE7,
 531          0x87,0x9C,0x7D,0xC0,0x07,0x00,0x1C,0xFE,0x1F,0x81,0xFF,0xFF,0xC0,0x0F,0xE0,0xFF,
 532          0x80,0x07,0x00,0x0C,0xFC,0x3F,0x80,0x00,0x00,0x00,0x0F,0xE1,0xF8,0x00,0x07,0x00,
 533          0x00,0xF9,0xBF,0xFF,0xFF,0xFF,0xFF,0xFF,0xEC,0xFE,0x00,0x07,0x00,0x03,0xF9,0xBF,
 534          0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xC0,0x07,0x00,0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,
 535          0xFF,0xFF,0xFF,0xFF,0xC0,0x07
 536          };
 537          //#pragma data:data
 538          void wr_comm (uchar comm);
 539          void wr_data (uchar dat);
 540          void chk_busy (uchar autowr);
 541          void p1(void);
 542          void p2(void);
 543          void p3(void);
 544          
 545          /*---------------延时子程序----------------*/
 546          /*void delay (uint us)
 547          {
 548            while(us--);
 549          }
 550          */
 551          void delay1 (uint ms)
C51 COMPILER V6.12  LCM6963_2                                                              09/19/2005 11:41:23 PAGE 10  

 552          {
 553   1        uint i,j;
 554   1        for(i=0;i<ms;i++)
 555   1        for(j=0;j<1000;j++)
 556   1        ;
 557   1      }
 558          /*------------写命令或数据到LCD--------------*/
 559          void wr_od (uchar dat,uchar comm)       //写一个数据和一个命令
 560          {
 561   1        wr_data(dat);
 562   1        wr_comm(comm);
 563   1      }
 564          void wr_td (uchar datl,uchar dath,uchar comm)  //写两个数据和一个命令
 565          {
 566   1        wr_data(datl);
 567   1        wr_data(dath);
 568   1        wr_comm(comm);
 569   1      }
 570          void wr_xd(uint dat,uchar comm)       //写一个16进制数据和一个命令
 571          {
 572   1        uchar datl,dath;
 573   1        datl=dat;
 574   1        dath=dat>>8;
 575   1        wr_data(datl);
 576   1        wr_data(dath);
 577   1        wr_comm(comm);
 578   1      }
 579          void wr_auto (uchar dat)               //自动写数据
 580          {
 581   1        p3();
 582   1       cd=0;
 583   1       wr=0;
 584   1       P0=dat;
 585   1       wr=1;
 586   1       cd=1;            
 587   1      }
 588          
 589          void wr_comm(uchar comm)       //写命令
 590          {
 591   1        p1();
 592   1        cd=1;
 593   1        wr=0;
 594   1        P0=comm;            
 595   1        wr=1; 
 596   1      }
 597          void wr_data(uchar dat)       //写数据
 598          {
 599   1        p1();
 600   1       cd=0;
 601   1       wr=0;
 602   1       P0=dat;
 603   1       wr=1;
 604   1       cd=1;
 605   1      }
 606          unsigned char busy(void)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -