单片机论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 240|回复: 16
打印 上一主题 下一主题
收起左侧

LCD240128之2019年吉祥(单片机程序+Proteus仿真)

  [复制链接]
跳转到指定楼层
楼主
LCD240*128点阵液晶屏仿真原理图如下(proteus仿真工程文件可到本帖附件中下载)
   

单片机源程序:

//OCM240128参考程序
#include <reg52.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>

#define width      30       //显示区宽度
#define addr_w     0x0000   //文本显示区首地址
#define addr_t     0x01e0   //图形显示区首地址
#define data_ora   P2       //MCU P1<------> LCM
#define uchar      unsigned char
#define uint       unsigned int

sbit wr =P3^0;  //Data Write into T6963C,L有效
sbit rd =P3^1;  //Data Read from T6963C,L有效
sbit ce =P3^2;  //使能信号,L有效
sbit cd =P3^3;  //当wr=L,cd=H:写命令,cd=L:写数据;当rd=L,cd=H:读状态,cd=L:读数据
sbit rst=P3^4;  //Lcm reset,低有效
sbit fs =P3^5;  //字体选择,H:6*8点阵;L:8*8点阵

sbit bf0 =P1^0;
sbit bf1 =P1^1;
sbit bf3 =P1^3;


void wr_comm (uchar comm);
void wr_data (uchar dat);
void chk_busy (uchar autowr);

uchar code tab11[]={
0x00,0x00,0x00,0x00,0x00,0x27,0x4f,0x4c,0x44,0x45,0x4e,0x00,0x30,0x41,0x4c,
0x4d,0x00,0x33,0x43,0x49,0x45,0x4e,0x43,0x45,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x34,0x45,0x43,0x48,0x4e,0x4f,0x4c,0x4f,0x47,0x59,
0x00,0x23,0x4f,0x0e,0x0c,0x2c,0x54,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x2e,0x4f,0x0e,0x13,0x11,0x00,0x2a,0x49,0x41,0x4e,0x53,0x48,0x45,0x00,0x32,
0x4f,0x41,0x44,0x13,0x00,0x3a,0x48,0x41,0x4f,0x51,0x49,0x4e,0x47,0x00,0x00,
0x30,0x0e,0x32,0x0e,0x23,0x48,0x49,0x4e,0x41,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x30,0x4f,0x53,0x54,0x43,0x4f,0x44,0x45,0x1a,0x00,0x15,0x12,0x16,0x10,0x14,
0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x34,0x25,0x2c,0x1a,0x00,0x18,0x16,0x0d,0x17,0x15,0x18,0x0d,0x12,0x12,0x12,
0x13,0x11,0x19,0x16,0x00,0x00,0x12,0x12,0x12,0x10,0x13,0x17,0x12,0x00,0x00,
0x48,0x54,0x54,0x50,0x1a,0x0f,0x0f,0x57,0x57,0x57,0x0e,0x47,0x50,0x54,0x0e,
0x43,0x4f,0x4d,0x0e,0x43,0x4e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x25,0x4d,0x41,0x49,0x4c,0x1a,0x4a,0x4d,0x47,0x50,0x43,0x20,0x50,0x55,0x42,
0x0e,0x5a,0x48,0x41,0x4f,0x51,0x49,0x4e,0x47,0x0e,0x47,0x44,0x0e,0x43,0x4e,
0x26,0x21,0x38,0x1a,0x00,0x12,0x12,0x18,0x15,0x11,0x11,0x10,0x00,0x00,0x28,
0x4f,0x54,0x4c,0x49,0x4e,0x45,0x1a,0x00,0x12,0x12,0x19,0x12,0x10,0x11,0x14};
        

uchar code tab5[]={
/*--  调入了一幅图像:F:\梁\画图\cock128128.bmp  --*/
/*--  宽度x高度=128x128  --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x03,0xFC,0x00,0x80,0x31,0x20,0x20,0x00,0x08,0x00,0x00,
0x00,0x1C,0x1C,0x00,0x30,0x02,0x00,0x00,0x80,0x01,0x20,0x20,0x01,0xFF,0x80,0x00,
0x00,0x22,0x22,0x30,0x48,0x04,0x20,0x1F,0xFC,0x77,0xF0,0x20,0x00,0x22,0x00,0x00,
0x00,0x21,0x22,0x10,0x84,0x08,0x20,0x00,0x80,0x10,0x81,0x4D,0xE3,0xFF,0xC0,0x00,
0x00,0x21,0x22,0x10,0x84,0x03,0xFC,0x00,0x80,0x18,0x80,0x41,0x20,0x00,0x00,0x00,
0x00,0x02,0x22,0x10,0x84,0x02,0x20,0x1F,0xFC,0x33,0xE0,0x49,0x20,0xFF,0x00,0x00,
0x00,0x02,0x22,0x10,0x4C,0x02,0x20,0x00,0x00,0x58,0x80,0x49,0x20,0x81,0x00,0x00,
0x00,0x04,0x22,0x10,0x24,0x02,0x20,0x07,0xF0,0x90,0x80,0x49,0x20,0xFF,0x00,0x00,
0x00,0x08,0x22,0x10,0x04,0x07,0xFF,0x04,0x10,0x17,0xF8,0x29,0x20,0x81,0x00,0x00,
0x00,0x11,0x22,0x10,0x88,0x00,0x20,0x04,0x10,0x10,0x80,0x11,0x20,0xFF,0x00,0x00,
0x00,0x3F,0x1C,0x18,0x70,0x00,0x20,0x04,0x10,0x10,0x80,0x15,0x20,0x40,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x04,0x10,0x10,0x80,0x41,0xE1,0x4C,0x40,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x07,0xF0,0x10,0x80,0x80,0x03,0x40,0x40,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,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,0x80,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xF0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFC,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFE,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xFF,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xFF,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x00,0x07,0xFF,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x00,0x07,0xFF,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x00,0x07,0xBF,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x03,0xFF,0x1F,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x0F,0xF1,0xF1,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xBF,0xF1,0x9F,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFB,0x9D,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFC,0xF8,0xF0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xF3,0xFF,0xF8,0xF8,0xFC,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xF9,0xDF,0xF8,0xCF,0xFE,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xFC,0xCF,0xFF,0x8F,0xFF,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0xFE,0xEF,0xFF,0xCF,0xFF,0x80,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0xC6,0x67,0xFF,0xFF,0xF3,0xC0,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1D,0xFE,0x67,0xFF,0xFF,0xE7,0xF8,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x39,0xEF,0x67,0xFF,0xE0,0xE7,0xFE,0x03,0xC0,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3B,0xC7,0x6F,0xFF,0x80,0x6F,0xFF,0xEF,0xF0,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x73,0xFF,0xEF,0xFE,0x1F,0xFF,0xFF,0x7F,0xF0,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x73,0xFF,0x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,0x15,0x00,0xFF,0xE0,0x03,0x78,0x87,0x80,0x00,
0x00,0x01,0x81,0xFF,0xFF,0xFF,0xE0,0x00,0x01,0xFF,0xE0,0x07,0x7F,0x87,0x80,0x00,
0x00,0x01,0x00,0xFF,0xFF,0xFF,0xF0,0x00,0x03,0xFF,0xE0,0x0F,0xFF,0x0F,0xC0,0x00,
0x00,0x03,0x00,0xFF,0xFF,0xFF,0xFC,0x00,0x07,0xFF,0xF0,0x1F,0x3F,0x8F,0xC0,0x00,
0x00,0x03,0x1B,0xF0,0xFF,0xFF,0xFF,0x00,0x1F,0xFF,0xF8,0xFE,0x1F,0xC7,0xC0,0x00,
0x00,0x03,0xBF,0xC0,0x3F,0xFF,0xFF,0xF0,0xFF,0xFF,0xFF,0xFE,0x0F,0xC7,0xE0,0x00,
0x00,0x07,0xBF,0x80,0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x0F,0xFF,0xF8,0x00,
0x00,0x07,0xFF,0x00,0x0E,0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x1C,0x3F,0x38,0x00,
0x00,0x07,0xFE,0x00,0x07,0x1F,0xFF,0xFF,0xFF,0xFF,0xE7,0x3F,0x10,0x0F,0x3C,0x00,
0x00,0x07,0xFC,0x00,0x07,0xFC,0xFF,0xFF,0xFF,0xFE,0x07,0x3E,0x60,0x07,0xFC,0x00,
0x00,0x06,0x7C,0x00,0x03,0xFC,0x1F,0xFF,0xFF,0xE0,0x07,0x7F,0x80,0x07,0xCC,0x00,
0x00,0x06,0x38,0x00,0x03,0xFC,0x00,0x00,0x00,0x00,0x0F,0xFC,0x00,0x01,0xC0,0x00,
0x00,0x00,0x38,0x00,0x03,0xCE,0x00,0x00,0x00,0x00,0x03,0xE0,0x00,0x00,0x40,0x00,
0x00,0x00,0x30,0x00,0x03,0xC6,0x00,0x00,0x00,0x00,0x03,0xC0,0x00,0x00,0x00,0x00,
0x00,0x00,0x10,0x00,0x01,0xC7,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xFB,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};



uchar code tab6[]={
/*--  调入了一幅图像:F:\梁\画图\cock128128.bmp  --*/
/*--  宽度x高度=128x128  --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x1E,0x01,0xE0,0x08,0x07,0xC0,0x01,0x80,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x7F,0x06,0x30,0x38,0x08,0xE0,0x01,0xFF,0xFE,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x63,0x84,0x30,0x18,0x18,0x70,0x02,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x41,0x8C,0x18,0x18,0x10,0x30,0x06,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x8C,0x18,0x18,0x30,0x30,0x04,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x8C,0x18,0x18,0x30,0x30,0x01,0xFF,0xF8,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x0C,0x18,0x18,0x38,0x30,0x01,0x83,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x03,0x1C,0x18,0x18,0x18,0x70,0x01,0x83,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x1C,0x18,0x18,0x1C,0xF0,0x01,0x83,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x04,0x1C,0x18,0x18,0x0F,0xE0,0x01,0x83,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x0C,0x0C,0x18,0x18,0x00,0x60,0x01,0x83,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x18,0x0C,0x18,0x18,0x00,0xE0,0x0F,0xFF,0xFE,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x30,0x4C,0x18,0x18,0x00,0xC0,0x00,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0xCC,0x10,0x18,0x01,0x80,0x00,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xFF,0x86,0x30,0x18,0x07,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xFF,0x83,0xE0,0x7E,0x1C,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x1F,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0x9C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0x9C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0x9C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0xF8,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0xFE,0x00,0x00,0x00,0x00,0x00,0x03,0xFF,0xFF,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0xFF,0x80,0x00,0x00,0x00,0x00,0x0F,0xE7,0xFF,0xC0,0x00,0x80,0x00,
0x00,0x00,0x0F,0xFF,0xF0,0x00,0x00,0x00,0x00,0x3E,0x00,0x1F,0xE0,0x03,0xE0,0x00,
0x00,0x00,0x0F,0xFF,0xF8,0x02,0x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x00,0x00,0xFF,0xE0,0x00,0x00,
0x00,0x00,0x00,0x7F,0xFF,0x00,0xFF,0xC0,0x07,0x00,0x00,0x01,0xFF,0xC0,0x00,0x00,
0x00,0x00,0x00,0xFF,0xFF,0x00,0x18,0x00,0x00,0x00,0x00,0x01,0xFF,0xC0,0x00,0x00,
0x00,0x00,0x01,0xFF,0xFF,0x00,0x1F,0xFE,0x00,0x00,0xD8,0x01,0xFF,0xC0,0x00,0x00,
0x00,0x00,0x03,0xFF,0xFF,0x0F,0xFF,0xFF,0xF8,0x03,0x44,0x03,0xFF,0x80,0x00,0x00,
0x00,0x00,0x03,0xFF,0xFE,0x7F,0xFF,0xC7,0xE0,0x02,0x14,0x03,0xFF,0x00,0x00,0x00,
0x00,0x00,0x07,0xFF,0xFF,0xFF,0xF0,0x7F,0xFE,0x01,0x04,0x07,0xFE,0x00,0x00,0x00,
0x00,0x00,0x0F,0xFF,0xFF,0xFF,0x80,0x38,0x00,0xC2,0x74,0x0F,0xFE,0x00,0x00,0x00,
0x00,0x00,0x1F,0xFF,0xFF,0xFE,0x00,0x40,0x00,0x13,0x0C,0x0F,0xFE,0x00,0x00,0x00,
0x00,0x00,0x3F,0xFF,0xFF,0xF0,0x00,0x00,0x00,0x00,0x44,0x1F,0xFC,0x00,0x00,0x00,
0x00,0x00,0x3F,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0xF8,0x3F,0xFC,0x00,0x00,0x00,
0x00,0x00,0x7F,0xFF,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xF8,0x00,0x00,0x00,
0x00,0x01,0xFF,0xFF,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xF0,0x00,0x00,0x00,
0x00,0x03,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x03,0xFF,0xE0,0x00,0x00,0x00,
0x00,0x07,0xFF,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xFF,0xC0,0x00,0x00,0x00,
0x00,0x0F,0xFB,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,
0x00,0x0F,0xE3,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xD0,0x00,0x00,0x00,0x00,
0x00,0x0F,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xFA,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,0xF8,0x40,0x60,0x00,0x00,0x06,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0xF7,0xFF,0x7F,0xFF,0xEF,0xFF,0xFD,0xFF,0xFF,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0xE7,0xFE,0x7F,0xFF,0xEF,0xFF,0xFD,0xFF,0xFF,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0xE0,0x6E,0x00,0x70,0x00,0x1C,0x00,0x01,0x80,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0xE0,0x6C,0x00,0x70,0x00,0x3E,0x01,0xFF,0xFF,0x80,0x00,0x00,0x00,
0x00,0x00,0x03,0xFF,0xFF,0x7F,0xFF,0xE0,0x7F,0x01,0xFF,0xFF,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0xF7,0xFF,0x7F,0xFF,0xE0,0x77,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xE3,0x00,0x60,0x70,0x00,0xF3,0x80,0xFF,0xFF,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xE3,0xFE,0x60,0x70,0x01,0xE1,0xC0,0xFF,0xFF,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0xE7,0xC6,0x00,0x70,0x01,0xC0,0xE0,0xC0,0x03,0x00,0x00,0x00,0x00,
0x00,0x00,0x03,0xE6,0xFE,0x7F,0xFF,0xE3,0xC0,0xF0,0xC0,0x03,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xE6,0xC6,0x7F,0xFF,0xE7,0x80,0x70,0xC0,0x03,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xEE,0xC6,0x00,0x70,0x07,0x00,0x38,0xFF,0xFF,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xEE,0xFE,0x00,0x70,0x0F,0x00,0x3C,0xFF,0xFF,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};




/*---------------延时子程序----------------*/
void delay (uint us)
{
  while(us--);
}
void delay1 (uint ms)
{
  uint i,j;
  for(i=0;i<ms;i++)
  for(j=0;j<1000;j++)
  ;
}
/*------------写命令或数据到LCD--------------*/
void wr_od (uchar dat,uchar comm)       //写一个数据和一个命令
{
  wr_data(dat);
  wr_comm(comm);
}
void wr_td (uchar datl,uchar dath,uchar comm)  //写两个数据和一个命令
{
  wr_data(datl);
  wr_data(dath);
  wr_comm(comm);
}

/*------------------初始化-----------------*/
void init_lcd (void)
{
  rst=0;
  ;
  rst=1;
  fs=0;
  ce=0;
  wr=1;
  rd=1;
                        //启用文本显示,启用图形显示
}
/*--------------清RAM------------------*/
void clrram (void)
{
  uchar i,j;
  wr_xd(addr_w,0x24);
  wr_comm(0xb0);
  for(j=0;j<144;j++)
  {
    for(i=0;i<width;i++)
      wr_auto(0x00);
  }
  wr_comm(0xb2);
}

void disp_dz (uchar data1,uchar data2)
{
  uchar i,j;
  wr_xd(addr_t,0x24);
  wr_comm(0xb0);
  for(j=0;j<32;j++)
  {
    for(i=0;i<width*2;i++)
      wr_auto(data1);
    for(i=0;i<width*2;i++)
      wr_auto(data2);
  }
  wr_comm(0xb2);
}


void disp_chn (uint addr,uchar xl,uchar yl,uchar row_xl,uchar row_yl,uchar code *chn)
{
  uchar i,j,k,m;
  for(m=0;m<row_yl;m++)
  {
    for(k=0;k<row_xl;k++)
    {
      for(j=0;j<yl;j++)
      {
        for(i=0;i<xl;i++)
        {
          wr_xd(addr+m*yl*width+k*xl+j*width+i,0x24);
          wr_od(chn[(m*row_xl*xl*yl)+(k*xl*yl)+(j*xl)+i],0xc0);
        }
      }
    }
  }
}


void main ()
{
  SP=0x5f;
  init_lcd ();
   clrram();
  while (1)
  {
  disp_img(0x01e7,16,128,tab5);
  delay1(400);
  clrram();
  disp_img(0x01e7,16,128,tab6);
  delay1(400);
  clrram();
  }
}



全部资料51hei下载地址:
LCD240128之2019年吉祥.rar (26.77 KB, 下载次数: 33)

评分

参与人数 4黑币 +155 收起 理由
钻牛尖滴刘尖尖 + 35 很给力!
jinsheng7533967 + 35
shuisheng60 + 35
admin + 50 共享资料的黑币奖励!

查看全部评分

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖 顶 踩
回复

使用道具 举报

沙发
Sawardeakar 发表于 2019-2-2 19:02 | 只看该作者
抢到沙发了,真是不错

评分

参与人数 2黑币 +24 收起 理由
sheng7533967 + 12
shuisheng60 + 12

查看全部评分

回复

使用道具 举报

板凳
Sawardeakar 发表于 2019-2-2 19:23 | 只看该作者
好!2019年吉祥如意!

评分

参与人数 3黑币 +36 收起 理由
sheng7533967 + 12
zhengchong60 + 12 很给力!
shuisheng60 + 12

查看全部评分

回复

使用道具 举报

地板
molo 发表于 2019-2-2 22:28 | 只看该作者
不错,不错,新年吉祥!
回复

使用道具 举报

5#
jinsheng7533967 发表于 2019-2-3 00:52 | 只看该作者
呵呵!又有新作了咯

评分

参与人数 3黑币 +105 收起 理由
shuisheng + 35
刀刀见红 + 35
areyouok + 35

查看全部评分

回复

使用道具 举报

6#
pengyongnet 发表于 2019-2-3 10:47 | 只看该作者
你好你的图片用什么软件画的
回复

使用道具 举报

7#
 楼主| shuisheng 发表于 2019-2-3 14:20 | 只看该作者
pengyongnet 发表于 2019-2-3 10:47
你好你的图片用什么软件画的

Proteus 8.6

评分

参与人数 1黑币 +35 收起 理由
jinsheng7533967 + 35

查看全部评分

回复

使用道具 举报

8#
 楼主| shuisheng 发表于 2019-2-3 14:22 | 只看该作者
取字模软件,

评分

参与人数 4黑币 +140 收起 理由
#include51.h + 35
刀刀见红 + 35
areyouok + 35
jinsheng7533967 + 35

查看全部评分

回复

使用道具 举报

9#
shuisheng60 发表于 2019-2-3 21:17 | 只看该作者
很好,很实用咯

评分

参与人数 2黑币 +47 收起 理由
jinsheng7533967 + 35
站着说话不腰疼 + 12

查看全部评分

回复

使用道具 举报

10#
yoxi 发表于 2019-2-6 21:55 | 只看该作者
很好,收下先
回复

使用道具 举报

11#
sheng7533967 发表于 2019-2-7 00:42 | 只看该作者
好样的,收下了,带走咯,杠杠的
回复

使用道具 举报

12#
Trump1438 发表于 2019-2-7 12:00 | 只看该作者
好样的,真不错!

评分

参与人数 4黑币 +97 收起 理由
areyouok + 35
找人PK + 12
Sawardeakar + 35
#include51.h + 15

查看全部评分

回复

使用道具 举报

13#
#include51.h 发表于 2019-2-7 15:12 | 只看该作者
好样的,牛人一枚

评分

参与人数 5黑币 +132 收起 理由
zhengchong60 + 15
站着说话不腰疼 + 12
shuisheng60 + 35
刀刀见红 + 35
yoxi + 35

查看全部评分

回复

使用道具 举报

14#
钻牛尖滴刘尖尖 发表于 2019-2-8 16:59 | 只看该作者
好的东东就该推广

评分

参与人数 2黑币 +27 收起 理由
找人PK + 12
zhengchong60 + 15

查看全部评分

回复

使用道具 举报

15#
站着说话不腰疼 发表于 2019-2-9 14:01 | 只看该作者

好的东东就该有市场
回复

使用道具 举报

16#
还有谁? 发表于 2019-2-10 21:00 | 只看该作者


好的东东收下的
回复

使用道具 举报

17#
sheng7533967 发表于 2019-2-13 16:37 | 只看该作者
好的,收下了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|单片机论坛 |51黑电子论坛单片机.

Powered by 单片机教程网

快速回复 返回顶部 返回列表