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

標題: Proteus模擬單片機+1602電子表 [打印本頁]

作者: 強強QAQ    時間: 2019-3-14 18:53
標題: Proteus模擬單片機+1602電子表
新人一位,自己弄了一星期,希望大家多多指教。

單片機源程序如下:
  1. #include <REGX52.H>
  2. #include "LCD1602.h"
  3. #include "DS1302.h"

  4. void Delay1ms(unsigned int count)
  5. {
  6.         unsigned int i,j;
  7.         for(i=0;i<count;i++)
  8.         for(j=0;j<120;j++);
  9. }

  10. main()
  11. {
  12.         SYSTEMTIME CurrentTime;
  13.         LCD_Initial();
  14.         Initial_DS1302();

  15.         GotoXY(0,0);
  16.         Print("Data: ");
  17.         GotoXY(0,1);
  18.         Print("Time: ");
  19.         while(1)
  20.         {
  21.                 DS1302_GetTime(&CurrentTime);
  22.                 DateToStr(&CurrentTime);
  23.                 TimeToStr(&CurrentTime);
  24.                 GotoXY(6,0);
  25.                 Print(CurrentTime.DateString);
  26.                 GotoXY(6,1);
  27.                 Print(CurrentTime.TimeString);

  28.                 Delay1ms(300);
  29.         }
  30. }
復制代碼

所有資料51hei提供下載:
project.rar (129.69 KB, 下載次數: 15)








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