⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ds1302.lst

📁 DS1302资料lcd.rar
💻 LST
字号:
C51 COMPILER V8.08   DS1302                                                                06/11/2009 09:37:40 PAGE 1   


C51 COMPILER V8.08, COMPILATION OF MODULE DS1302
OBJECT MODULE PLACED IN ds1302.OBJ
COMPILER INVOKED BY: c:\Keil\C51\BIN\C51.EXE ds1302.c BROWSE DEBUG OBJECTEXTEND

line level    source

   1          #include<intrins.h>
   2          #include <REG52.H> 
   3          //#include "1602.h" 
   4          
   5          //这里各人的1602程序不一样.所以我把测试程序中的这一块去掉了
   6          
   7          
   8          #include "DS1302.h" 
   9          void main() 
  10          { 
  11   1      SYSTEMTIME CurrentTime;
  12   1      // Lcddelay(0xaf);
  13   1      // LcdReset(); 
  14   1      DS1302_Initial(); 
  15   1      // DisplayListChar(0,0,"Date: ",6);
  16   1      // DisplayListChar(0,1,"Time: ",6);
  17   1      
  18   1      CurrentTime.Year = 12;
  19   1      CurrentTime.Month = 11;
  20   1      CurrentTime.Day = 15;
  21   1      CurrentTime.Week = 2;
  22   1      CurrentTime.Hour = 11;
  23   1      CurrentTime.Minute = 28;
  24   1      CurrentTime.Second = 27;
  25   1      
  26   1      DS1302_SetTime(&CurrentTime);
  27   1      while(1) 
  28   1      { 
  29   2         DS1302_GetTime(&CurrentTime); 
  30   2      
  31   2      //    DispOneChar(8,0,(CurrentTime.Year%100)/10+0x30);
  32   2      //   DispOneChar(9,0,(CurrentTime.Year%10)+0x30);
  33   2      //   DispOneChar(11,0,(CurrentTime.Month/10)+0x30);
  34   2      //   DispOneChar(12,0,(CurrentTime.Month%10)+0x30);
  35   2      //   DispOneChar(14,0,(CurrentTime.Day/10)+0x30);
  36   2      //   DispOneChar(15,0,(CurrentTime.Day%10)+0x30);
  37   2        
  38   2      
  39   2      //   DispOneChar(6,1,(CurrentTime.Week)+0x30);
  40   2      //   DispOneChar(8,1,(CurrentTime.Hour%100)/10+0x30);
  41   2      //   DispOneChar(9,1,(CurrentTime.Hour%10)+0x30);
  42   2      //   DispOneChar(11,1,(CurrentTime.Minute/10)+0x30);
  43   2      //   DispOneChar(12,1,(CurrentTime.Minute%10)+0x30);
  44   2      //   DispOneChar(14,1,(CurrentTime.Second/10)+0x30);
  45   2      //   DispOneChar(15,1,(CurrentTime.Second%10)+0x30);
  46   2      } 
  47   1      } 
  48          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    538    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
C51 COMPILER V8.08   DS1302                                                                06/11/2009 09:37:40 PAGE 2   

   DATA SIZE        =   ----       7
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -