导航: 老古网老古论坛XMOS公共讨论区XMOS开源项目区单片机程序设计嵌入式系统广告区域
→unsigned char ReadOneChar (uns

* 80799: 字符液晶编程

   Seawaves 
Seawaves发表的帖子 

 
unsigned char ReadOneChar (unsigned char pposx,unsigned char  pposy)
  {
       unsigned char readdata;
        Uchar temp;
       
      temp = pposx & 0xf;
     pposy &= 0x3;
     if ( pposy==0x01 )temp |= 0x40;
        else  if ( pposy==0x02 )temp |= 0x10;
        else  if ( pposy==0x03 )temp |= 0x50;
        else ;
     temp |= 0x80;
     LcdWriteCommand(temp,0);
     Delay5Ms();INT0=~INT0;
  RS =1; RW = 1;  Elcm = 1;;;;;;Elcm = 0;
  readdata=DataPort; 
     ;Elcm = 0;
    return(readdata);
  }
  


白写,要先写地址再定数据!!!!!!!

发表时间:2005年7月4日19:07:08

  
回复该帖

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

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

[上一篇帖子]:转让大量LED显示屏技术资料!转让大量LED显示屏技术资料! 本人之前专业从事LED显示屏开
[下一篇帖子]:你当我是电脑???自己好好检查!!!