C51 COMPILER V9.53.0.0   STC_IT                                                            08/10/2021 11:45:30 PAGE 1   


C51 COMPILER V9.53.0.0, COMPILATION OF MODULE STC_IT
OBJECT MODULE PLACED IN ..\output\stc_it.obj
COMPILER INVOKED BY: D:\Program Files\Keil_c5\C51\BIN\C51.EXE ..\Peripherals\src\stc_it.c OPTIMIZE(8,SPEED) BROWSE INCDI
                    -R(..\PERIPHERALS\INC\) DEBUG OBJECTEXTEND PRINT(..\lis\stc_it.lst) TABS(2) OBJECT(..\output\stc_it.obj)

line level    source

   1          #include "stc_it.h"
   2          #include "usart.h"
   3          
   4          //外部中断1
   5          uint8_t stata=0;
   6          void EXTI1_IRQHandler(void)interrupt 2
   7          {
   8   1      }
   9          //串口中断
  10          void USART_IRQHandler(void)interrupt 4
  11          {
  12   1        static uint8_t i=0,rebuf[3]={0};
  13   1        uint8_t sum=0;
  14   1          if(TI)//发送完成标志
  15   1        {
  16   2          TI=0;//清发送完成标志
  17   2          send_ok=0;//缓存标志置0 
  18   2        }
  19   1        if(RI)//接收完成标志
  20   1        {
  21   2          rebuf[i++]=SBUF;
  22   2          RI=0;//清中断接收标志
  23   2          if(!(rebuf[0]==0xa5))//判断帧头
  24   2          i=0;
  25   2          if(i==3)
  26   2          {
  27   3            sum=rebuf[0]+rebuf[1];
  28   3            if(sum==rebuf[2])
  29   3            {
  30   4              if(rebuf[1]==0xbb)//校准指令
  31   4              {
  32   5                Calibration=1;
  33   5               
  34   5              }
  35   4              if(rebuf[1]==0x51)//读数据
  36   4              {
  37   5                Calibration=0;
  38   5                
  39   5              }
  40   4            }
  41   3            i=0;
  42   3          }
  43   2        
  44   2        }
  45   1      
  46   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     93    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =      5    ----
C51 COMPILER V9.53.0.0   STC_IT                                                            08/10/2021 11:45:30 PAGE 2   

   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


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