欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標題: 基于51單片機的實時時鐘DS1302測試 [打印本頁]

作者: 2649660747    時間: 2017-11-5 20:30
標題: 基于51單片機的實時時鐘DS1302測試


#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);
        }
}


全部資料51hei下載地址:
實時時鐘DS1302測試.rar (42.95 KB, 下載次數: 26)



作者: failed    時間: 2017-12-27 18:51
那么短,值得研究
作者: 她從月亮來    時間: 2019-12-25 15:54
這個讓它顯示周

作者: 她從月亮來    時間: 2019-12-25 15:55
怎么在lcd上實現顯示周
作者: 3115476154    時間: 2020-12-28 21:29

怎么在lcd上實現顯示





歡迎光臨 (http://www.raoushi.com/bbs/) Powered by Discuz! X3.1