LCD1602液显示DS1302实时时钟Proteus仿真.docxVIP

  • 42
  • 0
  • 约 5页
  • 2018-03-27 发布于贵州
  • 举报

LCD1602液显示DS1302实时时钟Proteus仿真.docx

LCD1602液显示DS1302实时时钟Proteus仿真,lcd1602可调实时时钟,proteus设计数字时钟,proteus数字时钟,proteus电子时钟,proteus时钟信号,proteuslcd1602,proteuslcd1602仿真,proteuslcd1602在哪,proteuslcd12864

Proteus仿真图: 仿真程序: #includereg52.h #includeintrins.h #includestring.h #define uint unsigned int #define uchar unsigned char //*******LCD******* sbit LCDRS=P2^0; //LCD数据/命令选择端 sbit LCDRW=P2^1; sbit LCDEN=P2^2; //LCD使能新号端 //******DS1302****** sbit IO=P1^0; //1302数据线 sbit SCLK=P1^1; //1302时钟线 sbit RST=P1^2; //复位 uint num=0; //uchar *week[]={SUN,***,MON,TUS,WEN,THU,FRI,SAT}; uchar Date[]={Date: 2000-00-00 }; uchar Time[]={Time: *00:00-00* }; uchar date_time[7]; //从ds1302读取的当前日期时间 //=======延时======= void delay(uint z) { uint x,y; for(x=z;x0;x--) for(y=110;y0;y--); } //********向

文档评论(0)

1亿VIP精品文档

相关文档