标题:
proteus中ds1302时钟程序仿真
[打印本页]
作者:
51黑ff
时间:
2016-8-20 21:00
标题:
proteus中ds1302时钟程序仿真
proteus ds1302时钟程序仿真原理图
0.png
(38.2 KB, 下载次数: 68)
下载附件
2016-8-20 20:59 上传
0.png
(65.35 KB, 下载次数: 84)
下载附件
2016-8-20 20:58 上传
proteus中ds1302时钟程序仿真.rar
(106.41 KB, 下载次数: 31)
2016-8-20 21:01 上传
点击文件名下载附件
下载积分: 黑币 -5
部分时钟程序预览:
#include <REGX52.H>
#include "LCD1602.h"
#include "DS1302.h"
void Delay1ms(unsigned int count)
{
unsigned int i,j;
for(i=0;i<count;i++)
for(j=0;j<120;j++);
}
main()
{
SYSTEMTIME CurrentTime;
LCD_Initial();
Initial_DS1302();
GotoXY(0,0);
Print("Date: ");
GotoXY(0,1);
Print("Time: ");
while(1)
{
DS1302_GetTime(&CurrentTime);
DateToStr(&CurrentTime);
TimeToStr(&CurrentTime);
GotoXY(6,0);
Print(CurrentTime.DateString);
GotoXY(6,1);
Print(CurrentTime.TimeString);
Delay1ms(300);
}
}
复制代码
作者:
xtt2543503943
时间:
2016-8-22 14:45
可以,下了好使
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1