推荐星级:
  • 1
  • 2
  • 3
  • 4
  • 5

基于ds1302的51单片机简易实时时钟-1602显示-源程序

更新时间:2019-04-05 12:01:13 大小:119K 上传用户:sun2152查看TA发布的资源 标签:ds130251单片机实时时钟 下载积分:1分 评价赚积分 (如何评价?) 打赏 收藏 评论(0) 举报

资料介绍

#include <reg51.h>

#include "ds1302.h"

#include "LCD1602.h"

void change();

 

uchar times[9];

uchar date[9];

main()

{LCD_init();//LCD初始化

init_1302(time_1302);

gotoxy(1,1);

LCD_display("Time:");

gotoxy(1,2);

LCD_display("Date:");

times[8]='\0';//

date[8]='\0';

while(1)

{get_1302(time_1302);

change();

gotoxy(7,1);

LCD_display(times);

gotoxy(7,2);

LCD_display(date);

}

}


部分文件列表

文件名 大小
基于ds1302的51单片机简易实时时钟-1602显示-源程序.docx 119K

全部评论(0)

暂无评论

上传资源 上传优质资源有赏金

  • 打赏
  • 30日榜单

推荐下载