ISR.LST
上传用户:jcsy2001
上传日期:2013-11-29
资源大小:201k
文件大小:4k
开发平台:

C/C++

  1. C51 COMPILER V8.02   ISR                                                                   04/29/2007 12:48:53 PAGE 1   
  2. C51 COMPILER V8.02, COMPILATION OF MODULE ISR
  3. OBJECT MODULE PLACED IN ISR.OBJ
  4. COMPILER INVOKED BY: D:KeilC51BINC51.EXE ISR.C BROWSE DEBUG OBJECTEXTEND
  5. line level    source
  6.    1          #include "common.h"
  7.    2          #include "HAL.H"
  8.    3          #include "HPI.H"
  9.    4          #include "HPI32.H"
  10.    5          
  11.    6          extern FLAGS bdata bFlags;
  12.    7          extern unsigned char xdata UARTBUF[UARTBUF_LENGTH];
  13.    8          extern Command_Def xdata Command;                       
  14.    9          //////////////////////////////////////////
  15.   10          void ISR_COMM(void) interrupt 4
  16.   11          {
  17.   12   1              unsigned char *pBuf=(unsigned char *)&Command;  //Low Bit at Head
  18.   13   1              unsigned long xdata  timecount;
  19.   14   1              unsigned int cnt;
  20.   15   1              
  21.   16   1              MCU_LED3=0;
  22.   17   1      
  23.   18   1              if(RI==0)
  24.   19   1                      {
  25.   20   2                      MCU_LED3=1;
  26.   21   2                      return;
  27.   22   2                      }
  28.   23   1      
  29.   24   1              for(cnt=0;cnt<37;cnt++)
  30.   25   1              {
  31.   26   2                      timecount=0;
  32.   27   2                      while(!RI&&++timecount<20005);
  33.   28   2                      if(timecount>20000)     
  34.   29   2                              {
  35.   30   3                              Command.CLass=0xff;
  36.   31   3                              bFlags.bits.bUartInDone=1;
  37.   32   3                              RI=0;
  38.   33   3                              MCU_LED3=1;
  39.   34   3                              return;
  40.   35   3                              }               
  41.   36   2                      *(pBuf+cnt)=SBUF;
  42.   37   2                      RI=0;
  43.   38   2              }
  44.   39   1              
  45.   40   1              /////// data phase /////////////////////
  46.   41   1              if(Command.CLass==0x04||Command.CLass==0x05||Command.CLass==0x09) ///GreatFile/GreatDir/WriteFile
  47.   42   1                      {
  48.   43   2                      if(Command.len>MAX_WRITE_LENGTH)
  49.   44   2                      {
  50.   45   3                      Command.CLass=0xff;
  51.   46   3                      bFlags.bits.bUartInDone=1;
  52.   47   3                      MCU_LED3=1;
  53.   48   3                      return;
  54.   49   3                      }
  55.   50   2      
  56.   51   2                      for(cnt=0;cnt<Command.len;cnt++)
  57.   52   2                              {
  58.   53   3                              timecount=0;
  59.   54   3                              while(!RI&&++timecount<20005);
  60.   55   3                              if(timecount>20000)     
  61. C51 COMPILER V8.02   ISR                                                                   04/29/2007 12:48:53 PAGE 2   
  62.   56   3                              {
  63.   57   4                                      Command.CLass=0xff;
  64.   58   4                                      bFlags.bits.bUartInDone=1;
  65.   59   4                                      RI=0;
  66.   60   4                                      MCU_LED3=1;
  67.   61   4                                      return;
  68.   62   4                              }
  69.   63   3                              UARTBUF[cnt]=SBUF;
  70.   64   3                              RI=0;
  71.   65   3                              }
  72.   66   2                      }       
  73.   67   1              //////////////////////////
  74.   68   1              bFlags.bits.bUartInDone=1;
  75.   69   1              RI=0;   
  76.   70   1              MCU_LED3=1;
  77.   71   1      }
  78.   72          
  79.   73          
  80. MODULE INFORMATION:   STATIC OVERLAYABLE
  81.    CODE SIZE        =    372    ----
  82.    CONSTANT SIZE    =   ----    ----
  83.    XDATA SIZE       =   ----       4
  84.    PDATA SIZE       =   ----    ----
  85.    DATA SIZE        =   ----       5
  86.    IDATA SIZE       =   ----    ----
  87.    BIT SIZE         =   ----    ----
  88. END OF MODULE INFORMATION.
  89. C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)