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

📄 yj.lst

📁 液晶LCD1604+温度DS18B20+时钟DS1320 的C语言开发程序。及其在PROTEUS下的原理图
💻 LST
字号:
C51 COMPILER V8.02   YJ                                                                    08/18/2007 16:25:17 PAGE 1   


C51 COMPILER V8.02, COMPILATION OF MODULE YJ
OBJECT MODULE PLACED IN yj.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE yj.c BROWSE DEBUG OBJECTEXTEND

line level    source

   1          #include <REGX52.H>
   2          #include "LCD1602.h"
   3          #include "DS1302.h"
   4          #include "DS18B20.h"
   5          sbit key=P2^7;
   6          bit key_flag=0;
   7          
   8          void Delay1ms(unsigned int count)
   9          {
  10   1              unsigned int i,j;
  11   1              for(i=0;i<count;i++)
  12   1              for(j=0;j<120;j++);
  13   1      }
  14          
  15          main()
  16          {
  17   1              SYSTEMTIME CurrentTime;
  18   1              LCD_Initial();
  19   1              Initial_DS1302();
  20   1              GotoXY(0,0);
  21   1              Print("Date:");
  22   1              GotoXY(16,0);
  23   1              Print("Week:");
  24   1              GotoXY(0,1);
  25   1              Print("Time:");
  26   1              GotoXY(16,1);
  27   1              Print("Temper:");
  28   1              while(1)
  29   1              {       
  30   2                  ReadTemperature();   
  31   2                      DS1302_GetTime(&CurrentTime);
  32   2                      WeekToStr(&CurrentTime);
  33   2                      DateToStr(&CurrentTime);
  34   2                      TimeToStr(&CurrentTime);
  35   2                      GotoXY(5,0);
  36   2                      Print(CurrentTime.DateString);
  37   2      
  38   2                      GotoXY(21,0);
  39   2                      Print(CurrentTime.WeekString);
  40   2      
  41   2                      GotoXY(5,1);
  42   2                      Print(CurrentTime.TimeString);
  43   2      
  44   2                      GotoXY(23,1);
  45   2                      Print(disp);
  46   2      
  47   2                      Delay1ms(300);
  48   2              }
  49   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =   1187    ----
   CONSTANT SIZE    =     26    ----
   XDATA SIZE       =   ----    ----
C51 COMPILER V8.02   YJ                                                                    08/18/2007 16:25:17 PAGE 2   

   PDATA SIZE       =   ----    ----
   DATA SIZE        =      6      28
   IDATA SIZE       =   ----    ----
   BIT SIZE         =      1       2
END OF MODULE INFORMATION.


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

⌨️ 快捷键说明

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