#include"reg51.h"#include"lcd1602.h"sbitLCM_RS=P3^5;//控制IOsbitLCM_RW=P3^6;sbitLCM_E=P3^7;#defineLCM_DataP1//DataPortvoidDelay5Ms(void);voidWriteDataLCM(unsignedcharWDLC...
#include "reg51.h"
#include "lcd1602.h"
sbit LCM_RS = P3^5; //控制IO
sbit LCM_RW = P3^6;
sbit LCM_E = P3^7;
#define LCM_Data P1 //Data Port
void Delay5Ms(void);
void WriteDataLCM(unsigned char WDLCM);
void WriteCommandLCM(unsigned char WCLCM,BuysC);
//unsigned char ReadDataLCM(void);
//unsigned char ReadStatusLCM(void);
void ReadStatusLCM(void);
//unsigned char code ASCII[15] = {'0','1','2','3','4','5','6','7','8','9','.','-','M'};
//写数据
void WriteDataLCM(unsigned char WDLCM)
{