P1 = 0x2a;//ELCD=1�/W=1(读),CSB=1,CSA=0 lck = 1; while(P0 & LCDBUZY);//最高位为1,表示忙,则循环 lck = 0; P1 = 0x00;//ELCD=0,R/W=0(读),CSB=0,CSA=0 lck = 1; P0 = x; //数据送到P0口 lck = 0; P1 = 0x22;//ELCD=1,RW = 0(写),CSB=1,CSA=0 lck ...
HDG12864F-1程序 HDG12864F-1调试的程序 #include#include#define uchar unsigned char #define uint unsigned int sbit LCD_SI=P0^0; sbit LCD_SCL=P0^1; sbit LCD_A0=P0^2; sbit LCD_RST=P0^3; sbit LCD_CS=P0^4; uchar code BMP[]= ...