12864LCD刷屏慢的疑问。

2020-01-26 12:45发布

我弄到了一个带字库的12864液晶屏,是金鹏牌的型号是OCMJ4X8B,玩过以后发现调入一副128*64的图片要用差不多半秒,能够看到它从上到下刷屏,请问这种毛病怎么解决?这不像是单片机的问题哦
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
28条回答
mkliop
1楼-- · 2020-01-27 16:01
 精彩回答 2  元偷偷看……
chishangpiao
2楼-- · 2020-01-27 20:45
我也有这型号的液晶,没有这个问题啊,是不是程序的问题
mkliop
3楼-- · 2020-01-27 22:37
chishangpiao 发表于 2012-7-10 11:44
我也有这型号的液晶,没有这个问题啊,是不是程序的问题

??你可以帮忙发一个驱动上来吗》?下面这个是我的
#include<stc60s2.h>
#include<intrins.h>
#define u8 unsigned char
sbit REQ=P0^0;         
sbit BUSY=P0^1;
unsigned char code tab[]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x82,0x80,0x00,0x00,0x00,0x02,0x10,0x00,0x0F,0xFB,0xC0,0x00,0x00,0x00,
0x00,0x02,0x42,0x80,0x00,0x00,0x00,0x19,0x18,0x00,0x0B,0xFF,0x80,0x00,0x00,0x00,
0x00,0x02,0xC2,0x80,0x00,0x00,0x00,0x21,0xFF,0x00,0x0F,0xFF,0x80,0x00,0x00,0x00,
0x00,0x3B,0xC1,0x80,0x00,0x00,0x00,0x57,0xFF,0xE0,0x0F,0xFF,0x80,0x00,0x00,0x00,
0x00,0x45,0xB9,0x80,0x80,0x00,0x00,0x8F,0xFF,0xF1,0x0F,0xFF,0x00,0x00,0x00,0x00,
0x00,0x82,0x44,0xA0,0x80,0x00,0x01,0x1E,0x8F,0xFE,0x0F,0xFF,0x00,0x00,0x00,0x00,
0x00,0x82,0x5C,0x10,0x60,0x00,0x00,0xF9,0x07,0xFC,0x0F,0xFF,0x00,0x00,0x00,0x00,
0x0F,0x83,0xF8,0x49,0xF8,0x00,0x00,0x33,0x06,0x7E,0x0F,0xFE,0x00,0x00,0x00,0x00,
0x10,0x8A,0x20,0x47,0xFE,0x00,0x00,0x67,0x06,0x7F,0x0E,0x0E,0x10,0x00,0x00,0x00,
0x10,0x92,0x10,0xA7,0x1F,0x00,0x00,0x6F,0x8F,0xFF,0x0C,0x04,0x00,0x00,0x00,0x00,
0x10,0x44,0x11,0x26,0x0F,0x00,0x00,0x4F,0xF3,0xFF,0x8C,0xE4,0x50,0x00,0x00,0x00,
0x08,0x78,0x51,0x3D,0x0F,0x80,0x00,0x1F,0xF3,0x9D,0xC9,0x02,0x00,0x00,0x00,0x00,
0x0F,0xCC,0x22,0x2D,0x9F,0x80,0x00,0x1F,0xCE,0x9E,0x89,0x02,0x10,0x00,0x00,0x00,
0x10,0x5F,0xC4,0x0B,0xE7,0xC0,0x00,0x1F,0xCF,0xF6,0x93,0xC2,0x00,0x00,0x00,0x00,
0x20,0x7C,0x49,0x5A,0x67,0xC0,0x00,0x1F,0xFF,0xFE,0x84,0x22,0x50,0x00,0x00,0x00,
0x21,0x7C,0x30,0x12,0x7F,0xC0,0x00,0x1F,0xFF,0xFE,0x05,0x22,0x00,0x00,0x00,0x00,
0x22,0x84,0x21,0x0B,0xFF,0xC0,0x00,0x1F,0xFF,0xF6,0x04,0x22,0x10,0x00,0x00,0x00,
0x11,0xA4,0x20,0x0B,0xFF,0xC0,0x00,0x0F,0xFF,0xD6,0x06,0x44,0x00,0x00,0x00,0x00,
0x0E,0x86,0x41,0x4B,0xFF,0xC0,0x00,0x0F,0xFF,0xCC,0x00,0x05,0x50,0x00,0x00,0x00,
0x10,0x97,0xFC,0x07,0xFF,0xC0,0x00,0x07,0xF0,0x1C,0x00,0x08,0x00,0x00,0x00,0x00,
0x20,0x8F,0xE9,0x15,0xFE,0xC0,0x00,0x07,0xE0,0x38,0x10,0x09,0x10,0x00,0x00,0x00,
0xF8,0x7F,0xF0,0x05,0xE2,0x80,0x1F,0xC3,0x80,0x78,0x10,0x10,0x00,0x00,0x00,0x00,
0xF4,0x5F,0xD5,0x49,0xE1,0x8F,0xE0,0x40,0xC1,0xF0,0x2C,0x65,0x50,0x00,0x00,0x00,
0x7A,0x5F,0xA0,0x08,0xC3,0x08,0x1F,0xC3,0xFF,0xC0,0x23,0x80,0x00,0x00,0x00,0x00,
0xBE,0xEE,0xD1,0x09,0x7E,0x07,0xFF,0xC0,0xFF,0x00,0x50,0x71,0x10,0x00,0x00,0x00,
0x6B,0x5F,0x00,0x08,0x00,0x07,0xFF,0xC0,0x00,0xE0,0x40,0x88,0x00,0x00,0x00,0x00,
0x1D,0xC0,0x55,0x48,0x74,0x03,0xFF,0xC0,0x20,0x20,0x95,0x05,0x50,0x00,0x00,0x00,
0x77,0xFE,0x00,0x04,0x8A,0x03,0xFF,0xC0,0x20,0x41,0x01,0x04,0x00,0x00,0x00,0x00,
0xBF,0xFF,0xC1,0x14,0x48,0x01,0xFF,0xC0,0x1F,0x83,0x87,0x04,0x08,0x00,0x00,0x00,
0xFF,0xFF,0xF0,0x02,0x38,0x01,0xFE,0x40,0x00,0x05,0x58,0x8F,0x90,0x00,0x00,0x00,
0xF0,0x40,0xF5,0x55,0x00,0x01,0xF0,0x40,0x00,0x18,0x30,0x70,0x50,0x00,0x00,0x00,
0xB8,0xA1,0xD0,0x00,0x80,0x00,0xE0,0x40,0x00,0x20,0x10,0x70,0x50,0x00,0x00,0x00,
0xC7,0xDE,0x21,0x11,0x60,0x00,0x40,0x80,0x00,0xC0,0x10,0xF0,0x48,0x00,0x00,0x00,
0xF8,0x29,0xD0,0x00,0x18,0x00,0x3F,0x00,0x03,0x00,0x0F,0x10,0x40,0x00,0x00,0x00,
0xBE,0x73,0x35,0x45,0x46,0x00,0x00,0x00,0x1C,0x00,0x02,0x0F,0x90,0x00,0x00,0x00,
0x6C,0x33,0x20,0x00,0x01,0xC0,0x00,0x01,0xFF,0x80,0x02,0x08,0x80,0x00,0x00,0x00,
0xBF,0xFC,0xD1,0x11,0x10,0x3D,0xFC,0x3F,0x00,0x60,0x02,0x08,0x50,0x00,0x00,0x00,
0x3F,0xFC,0xC0,0x00,0x00,0x06,0x03,0xC8,0x00,0x1C,0x01,0x18,0x20,0x00,0x00,0x00,
0x2E,0x33,0x04,0x44,0x44,0x18,0x00,0x70,0x00,0x03,0xC1,0xE8,0x20,0x00,0x00,0x00,
0x3F,0x73,0x00,0x00,0x00,0x60,0x00,0x20,0x00,0x00,0x39,0x08,0x10,0x00,0x00,0x00,
0x3F,0x6F,0xD0,0x10,0x11,0x80,0x00,0x40,0x00,0x00,0x06,0x04,0x08,0x00,0x00,0x00,
0x3F,0x5F,0xC0,0x00,0x06,0x20,0x00,0x40,0x00,0x20,0x01,0x04,0x00,0x00,0x00,0x00,
0xEF,0x3F,0xF7,0xFF,0xFF,0xF0,0x00,0x40,0x00,0x7F,0xFF,0xFF,0xF8,0x00,0x00,0x00,
0x17,0x7F,0x80,0x00,0x00,0x0C,0x00,0x40,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
0x1E,0x3F,0x80,0x00,0x00,0x03,0x81,0xA0,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x0F,0xFF,0x00,0x00,0x00,0x00,0x7E,0x1F,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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 d30us(void)   //误差 -0.070167824074us
{
        unsigned char a;
    for(a=51;a>0;a--);
}

void delay10ms(void)   //误差 -0.000000000001us
{
    u8 a,b,c;
    for(c=7;c>0;c--)
        for(b=168;b>0;b--)
            for(a=24;a>0;a--);
}
void wlcm(u8 date)
{
  while(BUSY);
  REQ=0;
  P1=date;
d30us();
  REQ=1;
  d30us();
  REQ=0;
}
void xieh(u8 h,l) //往指定位置写字
{
u8 mm,gw,dw,kk=0;
unsigned int j;

for(j=0;j<1023;j++)
{
  wlcm(0x0f3);
  wlcm(h);
  wlcm(l);
  wlcm(tab[j]);
   h++;  
  if(h==0x14)
  {
  h=0x04;
  l++;
   }
}
}
void main()
{
  BUSY=1;
  REQ=0;
  delay10ms();
   xieh(0x04,0x00);
  while(1);
}
zhanyicai000
4楼-- · 2020-01-27 23:00
mark!!!!
zhanyicai000
5楼-- · 2020-01-27 23:04

mark!!!!
zhanyicai000
6楼-- · 2020-01-28 03:26
 精彩回答 2  元偷偷看……

一周热门 更多>