急需要一个基于89c51单片机关于lcd1602液晶显示的数字时钟程序并且可以用按键调整的,谢谢 基于89c51单片机关于lcd1602液晶显示的数字时钟程序并且可以用按键调整的难度不大,我稍微指点你。
如何用1602LCD显示数字变量 最简单抄方法 袭Lcd_writecom(0x8c);送变量2113显示地5261址Lcd_writedata(sum/100+0x30);送数4102据百位1653Lcd_writedata(sum%100/10+0x30);Lcd_writedata(sum%100/10+0x30);
LCD1602如何显示变化的数字或字符? 下面是一个用AT89S52做的LCD1602显示的电子钟,可以调时间!includedefine uchar unsigned chardefine uint unsigned intsbit rs=P2^0;sbit rw=P2^1;sbit ep=P2^2;sbit k1=P1^0;时,分选择键sbit k2=P1^1;加sbit k3=P1^2;减char i,j,shi,fen,miao;uchar num,count,con;uchar SJ[]={0x08,0x0f,0x12,0x0f,0x0a,0x1f,0x02,0x02,/年0x0f,0x09,0x0f,0x09,0x0f,0x09,0x0b,0x11,/月0x0f,0x09,0x09,0x0f,0x09,0x09,0x0f,0x00/日};uchar code table1[]={'2','0','1','0','-','1','1','-','0','4',' ',' ','T','H','U'};uchar code table2[]=\"00:00 00;uchar code table3[]=\"15899576222;void lcd_com(ucharcom);void jia();void jian();void keyscan();void lcd_date(uchar date);void lcd_init();void lcd_sfm(uchar add,uchar date);void delay(uint t){uint i,j;for(i=0;i;i+)for(j=0;j;j+)}void lcd_com(ucharcom){rs=0;rw=0;ep=0;P0=com;delay(1);ep=1;delay(1);ep=0;}void jia()/时钟加子函数{if(k2=0)/加键{delay(50);if(k2=0){while。k2);if(con=1){miao+;if(miao=60)miao=0;lcd_sfm(10,miao);lcd_com(0x80+0x40+11);}if(con=2){fen+;。
LCD1602仿真,屏幕亮但是不显示字幕跟数字。程序跟仿真截图在下面,请大神指点