完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
单片机写入程序后1602没有显示 源程序如下 #include #include #include "eeprom52.h" #include "api_c.h" #define uchar unsigned char //宏定义 #define uint unsigned int #define LCD1602_dat P0 ***it LCD1602_rs=P2^5;//IO 定义 ***it LCD1602_rw=P2^6; ***it LCD1602_e=P2^7; ***it beep=P2^0; ***it led_1=P1^0; ***it led_2=P1^1; ***it key_1=P1^5; ***it key_2=P1^6; ***it key_3=P1^7; bit alarm_1,alarm,once; uint sum; uchar RH,RH_H=12,RH_L=8,state,ms,time_num,cs,sec; bit beep1,zt,s1,mode,send; ***it key_s=P3^7; void delay(uint T) //延时函数 { while(T--); } void LCD1602_write(uchar order,dat) //1602 一个字节 处理 { LCD1602_e=0; LCD1602_rs=order; LCD1602_dat=dat; LCD1602_rw=0; LCD1602_e=1; delay(1); LCD1602_e=0; } void LCD1602_writebyte(uchar *prointer) //1602 字符串 处理 { while(*prointer!=' |