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

📄 system.lst

📁 一个集合DS18B20的多路温度测量系统,加上adc0809数据采集,加上1602液晶显示的综合数据处理系统,有较高学习价值.
💻 LST
字号:
C51 COMPILER V7.10   SYSTEM                                                                12/31/2006 14:37:11 PAGE 1   


C51 COMPILER V7.10, COMPILATION OF MODULE SYSTEM
OBJECT MODULE PLACED IN system.OBJ
COMPILER INVOKED BY: d:\Keil\C51\BIN\C51.EXE system.c BROWSE DEBUG OBJECTEXTEND

line level    source

   1          #include "system"
*** WARNING C318 IN LINE 1 OF system.c: can't open file 'system'
   2          scan ()
   3          {
   4   1              unsigned char i,j;
   5   1              unsigned char power;
   6   1              unsigned char current;
   7   1              unsigned char temperature;
   8   1              power    =   VoltageSurvey(0);                         //经ADC0809通道0转换的实际电压值
*** WARNING C206 IN LINE 8 OF SYSTEM.C: 'VoltageSurvey': missing function-prototype
*** ERROR C267 IN LINE 8 OF SYSTEM.C: 'VoltageSurvey': requires ANSI-style prototype
   9   1              disv[0]  =   power / 10;                                       //取商,取出十位数字
*** ERROR C202 IN LINE 9 OF SYSTEM.C: 'disv': undefined identifier
  10   1              disv[1]  =   power % 10;                                       //取余,取出个位数字
*** ERROR C202 IN LINE 10 OF SYSTEM.C: 'disv': undefined identifier
  11   1              for(i = 0; k < 500; i++)
*** ERROR C202 IN LINE 11 OF SYSTEM.C: 'k': undefined identifier
  12   1              {
  13   2                      for(j = 0; j < 2; j++)
  14   2                      {
  15   3                              Disdata = dis_8[disa[j]];
*** ERROR C202 IN LINE 15 OF SYSTEM.C: 'Disdata': undefined identifier
  16   3                              if(k == 2)
*** ERROR C202 IN LINE 16 OF SYSTEM.C: 'k': undefined identifier
  17   3                              {
  18   4                                      DISX = 0;
*** ERROR C202 IN LINE 18 OF SYSTEM.C: 'DISX': undefined identifier
  19   4                              }
  20   3                              P3 = scan_con[j];
*** ERROR C202 IN LINE 20 OF SYSTEM.C: 'P3': undefined identifier
  21   3                      }
  22   2              }
  23   1              current      =   VoltageSurvey(1);                         //经ADC0809通道1转换的实际电流
  24   1              disa[0]  = current / 1;                                //取商,取出十位数字
*** ERROR C202 IN LINE 24 OF SYSTEM.C: 'disa': undefined identifier
  25   1              disa[1]  = current % 10;                                   //取余,取出个位数字
*** ERROR C202 IN LINE 25 OF SYSTEM.C: 'disa': undefined identifier
  26   1              disa[2]  = current % 10;
*** ERROR C202 IN LINE 26 OF SYSTEM.C: 'disa': undefined identifier
  27   1              for(i = 0; k < 500; i++)
*** ERROR C202 IN LINE 27 OF SYSTEM.C: 'k': undefined identifier
  28   1              {
  29   2                      for(j = 0; j < 3; j++)
  30   2                      {
  31   3                              Disdata = dis_8[disa[j]];
*** ERROR C202 IN LINE 31 OF SYSTEM.C: 'Disdata': undefined identifier
  32   3                              if(k == 2)
*** ERROR C202 IN LINE 32 OF SYSTEM.C: 'k': undefined identifier
  33   3                              {
  34   4                                      DISX = 0;
*** ERROR C202 IN LINE 34 OF SYSTEM.C: 'DISX': undefined identifier
  35   4                              }
  36   3                              P3 = scan_con[j];
*** ERROR C202 IN LINE 36 OF SYSTEM.C: 'P3': undefined identifier
  37   3                      }
C51 COMPILER V7.10   SYSTEM                                                                12/31/2006 14:37:11 PAGE 2   

  38   2              }
  39   1              
  40   1              temperature  =   VoltageSurvey(2);                         //经ADC0809通道2转换的时间温度值
  41   1              disc[0]  = temperature / 1;                                //取商,取出十位数字
*** ERROR C202 IN LINE 41 OF SYSTEM.C: 'disc': undefined identifier
  42   1              disc[1]  = temperature % 10;                           //取余,取出个位数字
*** ERROR C202 IN LINE 42 OF SYSTEM.C: 'disc': undefined identifier
  43   1              disc[2]  = temperature % 10; 
*** ERROR C202 IN LINE 43 OF SYSTEM.C: 'disc': undefined identifier
  44   1              for(i = 0; k < 500; i++)
*** ERROR C202 IN LINE 44 OF SYSTEM.C: 'k': undefined identifier
  45   1              {
  46   2                      for(j = 0; j < 3; j++)
  47   2                      {
  48   3                              Disdata = dis_8[disc[j]];
*** ERROR C202 IN LINE 48 OF SYSTEM.C: 'Disdata': undefined identifier
  49   3                              if(k == 2)
*** ERROR C202 IN LINE 49 OF SYSTEM.C: 'k': undefined identifier
  50   3                              {
  51   4                                      DISX = 0;
*** ERROR C202 IN LINE 51 OF SYSTEM.C: 'DISX': undefined identifier
  52   4                              }
  53   3                              P3 = scan_con[j];
*** ERROR C202 IN LINE 53 OF SYSTEM.C: 'P3': undefined identifier
  54   3                      }
  55   2              }
  56   1      }
  57          值
*** ERROR C100 IN LINE 57 OF SYSTEM.C: unprintable character 0xD6 skipped
*** ERROR C100 IN LINE 57 OF SYSTEM.C: unprintable character 0xB5 skipped
  58          /*
  59          #include "system.h"
  60          #include "stdio.h"
  61          void main (void)
  62          {
  63              unsigned char l;
  64          
  65                  unsigned char power_10bit;
  66                  unsigned char power_1bit;
  67                  void shangdian()                                                   //上电显示 全为0     持续1秒
  68                  {
  69                          P1 = Digit0;
  70                          for(unsigned char i = 0; i < 8; i++)
  71                          {
  72                           switch (i)
  73                           {
  74                            case 0:       P1 = 0x38; break;
  75                            case 1:   P1 = 0x30; break;
  76                            case 2:       P1 = 0x18; break;
  77                            case 3:       P1 = 0x10; break;
  78                            case 4:       P1 = 0x21; break;
  79                            case 5:   P1 = 0x20; break;
  80                            case 6:       P1 = 0x08; break;
  81                            case 7:       P1 = 0x00; break;
  82                            defult:
  83                           }
  84                          }
  85                    for(l = 0; l < 50000; l++)
  86               for(j = 0; j < 4; j++);                    //延时两秒
  87          
  88                  }
  89          while (1)
C51 COMPILER V7.10   SYSTEM                                                                12/31/2006 14:37:11 PAGE 3   

  90          {                                                                          
  91          
  92          
  93           {
  94                  switch(power_10bit)
  95                  {
  96                      case 0: P1 = Digit0; break;   
  97                          case 1: P1 = Digit1; break;
  98                          case 2: P1 = Digit2; break;
  99                          case 3: P1 = Digit3; break;
 100                          case 4: P1 = Digit4; break;
 101                          case 5: P1 = Digit5; break;
 102                          case 6: P1 = Digit6; break;
 103                          case 7: P1 = Digit7; break;
 104                          case 8: P1 = Digit8; break;
 105                          case 9: P1 = Digit9; break;
 106                          defult: break;
 107                  }
 108          
 109          } 
 110                  
 111                  
 112                  switch(power_1bit)
 113                  {
 114              case 0: P1 = Digit0; break;   
 115                  case 1: P1 = Digit1; break;
 116                  case 2: P1 = Digit2; break;
 117                  case 3: P1 = Digit3; break;
 118                  case 4: P1 = Digit4; break;
 119                  case 5: P1 = Digit5; break;
 120                  case 6: P1 = Digit6; break;
 121                  case 7: P1 = Digit7; break;
 122                  case 8: P1 = Digit8; break;
 123                  case 9: P1 = Digit9; break;
 124                  defult: break;
 125                  }   
 126                   
 127          }
 128          }
 129          */

C51 COMPILATION COMPLETE.  2 WARNING(S),  26 ERROR(S)

⌨️ 快捷键说明

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