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

📄 datapro.lst

📁 51开发板的源程序
💻 LST
字号:
C51 COMPILER V7.06   DATAPRO                                                               12/18/2007 11:18:08 PAGE 1   


C51 COMPILER V7.06, COMPILATION OF MODULE DATAPRO
OBJECT MODULE PLACED IN DataPro.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE DataPro.c BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          
   2          
   3          #include "c51base.h"
   4          
   5          
   6          static void OutPutInit()
   7          {
   8   1              struct SlineTable *temp_ptr;
   9   1              struct Stimer *timer_ptr;
  10   1              temp_ptr = I2c_humtable;
  11   1              if(temp_ptr[0].control_mode == 0 || temp_ptr[0].out_state == 0)
  12   1                      HUM_OUT = 1;
  13   1              else if(temp_ptr[0].control_mode == 2 || temp_ptr[0].out_state == 1)
  14   1                      HUM_OUT = 0;
  15   1      
  16   1              timer_ptr = I2c_timertable;
  17   1              if(timer_ptr[0].out_state ==0)
  18   1                      TIMER_OUT = 1;
  19   1              else if(timer_ptr[0].out_state ==1)
  20   1                      TIMER_OUT = 0;
  21   1      }
  22          
  23          
  24          
  25          /*************************************************************
  26          数据区数据检测是否合法性。
  27          *************************************************************/
  28          void I2CDataCheck()
  29          {
  30   1              uchar temp;
  31   1              struct Scheck *check_ptr;
  32   1              struct SlineTable *temp_ptr;
  33   1              struct Stimer *timer_ptr;
  34   1              uchar *pw_ptr;
  35   1      
  36   1              check_ptr = I2c_mhumtable;
  37   1              if(check_ptr[0].enable1>1)
  38   1                      check_ptr[0].enable1=0;
  39   1              if(check_ptr[0].enable2>1)
  40   1                      check_ptr[0].enable2=0;
  41   1              if(check_ptr[0].enable3>1)
  42   1                      check_ptr[0].enable3=0;
  43   1              if(check_ptr[0].value1>60)
  44   1                      check_ptr[0].value1 = 30;
  45   1              if(check_ptr[0].value2>60)
  46   1                      check_ptr[0].value2 = 30;
  47   1              if(check_ptr[0].value3>60 || check_ptr[0].value3<0)
  48   1                      check_ptr[0].value3 = 30;
  49   1              temp = check_ptr[0].value3;
  50   1      //printf("湿度%x %d,%d,%d,%d,%d,%d,%d\n",(int)check_ptr,(int)check_ptr[0].enable1,(int)check_ptr[0].enable
             -2,(int)check_ptr[0].enable3,(int)check_ptr[0].value1,(int)check_ptr[0].value2,(int)check_ptr[0].value3,(int)check_ptr[0]
             -.value3);
  51   1      
  52   1              check_ptr = I2c_mtemptable;
  53   1              if(check_ptr[0].enable1>1)
C51 COMPILER V7.06   DATAPRO                                                               12/18/2007 11:18:08 PAGE 2   

  54   1                      check_ptr[0].enable1=0;
  55   1              if(check_ptr[0].enable2>1)
  56   1                      check_ptr[0].enable2=0;
  57   1              if(check_ptr[0].enable3>1)
  58   1                      check_ptr[0].enable3=0;
  59   1              if(check_ptr[0].value1>30)
  60   1                      check_ptr[0].value1 = 15;
  61   1              if(check_ptr[0].value2>30)
  62   1                      check_ptr[0].value2 = 15;
  63   1              if(check_ptr[0].value3>30)
  64   1                      check_ptr[0].value3 = 15;
  65   1              temp = check_ptr[0].value1;
  66   1      //printf("温度%x %d,%d,%d,%d,%d,%d\n",(int)check_ptr,(int)check_ptr[0].enable1,(int)check_ptr[0].enable2,(
             -int)check_ptr[0].enable3,(int)check_ptr[0].value1,(int)check_ptr[0].value2,(int)check_ptr[0].value3);
  67   1      
  68   1      
  69   1              check_ptr = I2c_yalitable;
  70   1              if(check_ptr[0].enable1>1)
  71   1                      check_ptr[0].enable1=0; 
  72   1              if(check_ptr[0].value1>30)
  73   1                      check_ptr[0].value1 = 15;
  74   1              temp = check_ptr[0].value1;
  75   1      
  76   1              temp_ptr = I2c_humtable;
  77   1              if(temp_ptr[0].top_line > 99)
  78   1                      temp_ptr[0].top_line = 0xff;
  79   1              if(temp_ptr[0].down_line > 99)
  80   1                      temp_ptr[0].down_line = 0xff;
  81   1              if(temp_ptr[0].control_mode >= 3)
  82   1                      temp_ptr[0].control_mode =0;
  83   1              if(temp_ptr[0].out_state >1)
  84   1                      temp_ptr[0].out_state = 0;
  85   1              temp = temp_ptr[0].top_line;
  86   1      
  87   1              timer_ptr = I2c_timertable;
  88   1              if(timer_ptr[0].enable !=0 && timer_ptr[0].enable !=1)
  89   1                      timer_ptr[0].enable =0;
  90   1              if(timer_ptr[0].open_time >60 || timer_ptr[0].open_time <0)
  91   1                      timer_ptr[0].open_time =0;
  92   1              if(timer_ptr[0].close_time >60 || timer_ptr[0].close_time <0)
  93   1                      timer_ptr[0].close_time =0;
  94   1              if(timer_ptr[0].out_state !=0 && timer_ptr[0].out_state !=1)
  95   1                      timer_ptr[0].out_state =0;
  96   1              temp = timer_ptr[0].out_state;
  97   1      
  98   1              pw_ptr = I2c_pw;
  99   1              if(pw_ptr[0]>'9' || pw_ptr[0]<'0')
 100   1                      pw_ptr[0] ='0';
 101   1              if(pw_ptr[1]>'9' || pw_ptr[1]<'0')
 102   1                      pw_ptr[1] ='0';
 103   1              if(pw_ptr[2]>'9' || pw_ptr[2]<'0')
 104   1                      pw_ptr[2] ='0';
 105   1              if(pw_ptr[3]>'9' || pw_ptr[3]<'0')
 106   1                      pw_ptr[3] ='0';
 107   1      
 108   1              OutPutInit();
 109   1      }
 110          
 111          
 112          void I2CDataInit()
 113          {
 114   1              uchar temp;
C51 COMPILER V7.06   DATAPRO                                                               12/18/2007 11:18:08 PAGE 3   

 115   1              struct Scheck *check_ptr;
 116   1              struct SlineTable *temp_ptr;
 117   1              struct Stimer *timer_ptr;
 118   1      WDTReset_SM89516();
 119   1              CLEAR_SCREEN();
 120   1              DisplayStr(0,1,"初始化Data...");
 121   1      WDTReset_SM89516();
 122   1              WaitKey(30);
 123   1              LcdInit();
 124   1      WDTReset_SM89516();
 125   1              check_ptr = I2c_mhumtable;
 126   1              check_ptr[0].enable1=0;
 127   1              check_ptr[0].enable2=0;
 128   1              check_ptr[0].enable3=0;
 129   1              check_ptr[0].value1 = 30;
 130   1              check_ptr[0].value2 = 30;
 131   1              check_ptr[0].value3 = 30;
 132   1              temp = check_ptr[0].value1;
 133   1      WDTReset_SM89516();
 134   1              check_ptr = I2c_mtemptable;
 135   1              check_ptr[0].enable1=0;
 136   1              check_ptr[0].enable2=0;
 137   1              check_ptr[0].enable3=0;
 138   1              check_ptr[0].value1 = 15;
 139   1              check_ptr[0].value2 = 15;
 140   1              check_ptr[0].value3 = 15;
 141   1              temp = check_ptr[0].value1;
 142   1      
 143   1              check_ptr = I2c_yalitable;
 144   1              check_ptr[0].enable1=0;
 145   1              check_ptr[0].value1 = 15;
 146   1              temp = check_ptr[0].value1;
 147   1      
 148   1              temp_ptr = I2c_humtable;
 149   1              temp_ptr[0].top_line = 0xff;
 150   1              temp_ptr[0].down_line = 0xff;
 151   1              temp_ptr[0].control_mode =0;
 152   1              temp_ptr[0].out_state = 0;
 153   1              temp = temp_ptr[0].top_line;
 154   1      
 155   1              timer_ptr = I2c_timertable;
 156   1              timer_ptr[0].enable =0;
 157   1              timer_ptr[0].open_time =0;
 158   1              timer_ptr[0].close_time =0;
 159   1              timer_ptr[0].out_state =0;
 160   1              temp = timer_ptr[0].out_state;
 161   1      
 162   1      WDTReset_SM89516();
 163   1              OutPutInit();
 164   1      }
 165          
 166          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    873    ----
   CONSTANT SIZE    =     14    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
C51 COMPILER V7.06   DATAPRO                                                               12/18/2007 11:18:08 PAGE 4   

END OF MODULE INFORMATION.


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

⌨️ 快捷键说明

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