No.10146 作者:At89x51 邮件: ID:210 登陆:1次 文章数:6篇 最后登陆IP: 最后登陆:2002/8/19 1:41:00 注册:2002/8/19 1:41:00 财富:23 发帖时间:2002/8/19 1:43:00 发贴者IP:203.169.160.47 标题:At89x51:C51编程:用C51编写的驱动LCD模块程序 摘要:No.10146C51编程:用C51编写的驱动LCD模块程序 下面是我编写的程序,但不知道为什么用在HD44780的模块上就可以,换上KS0066的模块就 不亮。请问HD44780和KS0066兼容吗?是不是我的程序有问题? #include "at89x51.h" sbit RS=P2^0; sbit RW=P2^1; sbit E=P2^2; Delay(unsigned int count) //Delay { unsigned int i,j; for (i=0; i<count; i++) for (j=0; j<125; j++); } //***************************************************** I_send(unsigned char y) //Send command { RS=0; RW=0; E=1; P0=y; Delay(1); E=0; } //***************************************************** D_send(unsigned char x) & ......
>>返回讨论的主题
|