vfdeal.lst

来自「16路巡检仪 该仪表采用c语言编写」· LST 代码 · 共 149 行

LST
149
字号
C51 COMPILER V7.50   VFDEAL                                                                06/25/2008 14:22:37 PAGE 1   


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

line level    source

   1          #include        "head.h"
*** WARNING C318 IN LINE 1 OF head.h: can't open file 'AT89X52.H'
*** ERROR C202 IN LINE 70 OF HEAD.H: 'P1': undefined identifier
*** ERROR C202 IN LINE 71 OF HEAD.H: 'P1': undefined identifier
*** ERROR C202 IN LINE 72 OF HEAD.H: 'P1': undefined identifier
*** ERROR C202 IN LINE 73 OF HEAD.H: 'P2': undefined identifier
*** ERROR C202 IN LINE 74 OF HEAD.H: 'P2': undefined identifier
*** ERROR C202 IN LINE 75 OF HEAD.H: 'P2': undefined identifier
*** ERROR C202 IN LINE 76 OF HEAD.H: 'P2': undefined identifier
*** ERROR C202 IN LINE 77 OF HEAD.H: 'P2': undefined identifier
*** ERROR C202 IN LINE 78 OF HEAD.H: 'P2': undefined identifier
*** ERROR C202 IN LINE 79 OF HEAD.H: 'P2': undefined identifier
*** ERROR C202 IN LINE 80 OF HEAD.H: 'P2': undefined identifier
   2          uint gg,trr;
   3          extern  uint    xdata   TMing2,VR[16],IR[16],AR[16];
   4          extern  float   xdata   filt,PV[road],mv,rangeL[16],rangeH[16];
   5          extern  uchar   xdata   collt,  typdat[16];
   6          extern  uchar   cygnd;          //采样地标志
   7          extern  bit             cytwo;
   8          extern  uchar   vfmark;
   9          extern  uchar   VFport;
  10          uchar   petat=0;
  11          uint    xdata   pvlb=0;
  12          uint    xdata   port[road];
  13          uint    pvdat[4];
  14          uchar   ttw=0;
  15          uchar   pet;
  16          bit             ter,tq,dt;
  17          void    VFdeal()
  18          {       
  19   1              float   X;
  20   1              if(vfmark==1)
  21   1                      {       
  22   2                              if(petat==0)
  23   2                                      {
  24   3                                              petat=3+(uchar)filt*10;
  25   3                                              pet=petat;
  26   3                                      }
  27   2                              pvdat[ttw]=TH1<<8|TL1;
*** ERROR C202 IN LINE 27 OF VFDEAL.C: 'TH1': undefined identifier
  28   2                              ttw++; 
  29   2                              if(cytwo==0)
  30   2                                      cygnd++;
  31   2                              if((typdat[VFport]<=11)&&(typdat[VFport]>8))
  32   2                                      if((cytwo==0)&&(cygnd==2))
  33   2                                      {       
  34   3                                              pvdat[3]=pvdat[0]+pvdat[1]-pvdat[2];
  35   3                                              cygnd=0;
  36   3                                              ter=1;
  37   3                                              tq=1;
  38   3                                              ttw=0;
  39   3                                      }
  40   2                              if(cygnd==2)
  41   2                                      {
  42   3                                              pvdat[3]=pvdat[0]-pvdat[1];
C51 COMPILER V7.50   VFDEAL                                                                06/25/2008 14:22:37 PAGE 2   

  43   3                                              cygnd=0;
  44   3                                              ter=1;                  //开始处理数据
  45   3                                              tq=1;                           
  46   3                                              ttw=0;
  47   3                                      }
  48   2                              if(ter==1)
  49   2                                      {
  50   3                                              ter=0;
  51   3                                              petat--;
  52   3                                              pvlb+=pvdat[3];
  53   3                                              if(petat==0)
  54   3                                                      {       
  55   4                                                              pvlb/=pet;
  56   4                                                              port[VFport]=pvlb;
  57   4                                                              if(typdat[VFport]<=8)
  58   4                                                                      X=pvlb*100.0/VR[VFport];
  59   4                                                              else if(typdat[VFport]<=11)
  60   4                                                                      X=pvlb*280.98/AR[VFport];
  61   4                                                              else if(typdat[VFport]<=13)     
  62   4                                                                      X=pvlb*5.0/VR[VFport];
  63   4                                                              else if(typdat[VFport]<=16)     
  64   4                                                                      X=pvlb*20.0/IR[VFport];
  65   4                                                              deal(X);
  66   4                                                              if(typdat[VFport]==8)
  67   4                                                                      PV[VFport]=pvlb/VR[VFport]*(rangeH[VFport]-rangeL[VFport])+rangeL[VFport];
  68   4                                                              else if(typdat[VFport]<=13)
  69   4                                                                      PV[VFport]=pvlb/VR[VFport]*(rangeH[VFport]-rangeL[VFport])+rangeL[VFport];
  70   4                                                              else if(typdat[VFport]<=16)
  71   4                                                              PV[VFport]=X*(rangeH[VFport]-rangeL[VFport])/20+rangeL[VFport]; 
  72   4                                                              dt=1;
  73   4                                              }
  74   3                                      }
  75   2                              if((VFport<15)&&(dt==1))
  76   2                                      {       
  77   3                                              VFport++;
  78   3                                              pvlb=0;
  79   3                                              dt=0;
  80   3                                      }
  81   2                              if(VFport>=15)
  82   2                                      VFport=0;
  83   2                              vfmark=0;
  84   2                              VFstart(VFport);
  85   2                              
  86   2                      } 
  87   1      }
  88          
  89          
  90          
  91          
  92          
  93          
  94          
  95          
  96          
  97          
  98          
  99          
 100          
 101          
 102          
 103          
 104          
C51 COMPILER V7.50   VFDEAL                                                                06/25/2008 14:22:37 PAGE 3   

 105          
 106          
 107          
 108          
 109          
 110          
 111          
 112          
 113          
 114          
 115          
 116          
 117          
 118          
 119          
 120          

C51 COMPILATION COMPLETE.  1 WARNING(S),  12 ERROR(S)

⌨️ 快捷键说明

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