C51 COMPILER V9.54   INTERRUPT                                                             12/03/2024 14:58:47 PAGE 1   


C51 COMPILER V9.54, COMPILATION OF MODULE INTERRUPT
OBJECT MODULE PLACED IN .\Objects\interrupt.obj
COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE public\interrupt.c OPTIMIZE(8,SPEED) BROWSE INCDIR(.\public) DEBUG OBJEC
                    -TEXTEND PRINT(.\Listings\interrupt.lst) OBJECT(.\Objects\interrupt.obj)

line level    source

   1          #include "main.h"
   2          
   3          void EINT0_INT(void)    interrupt 0
   4          {
   5   1      //      P4 = 0x80;
   6   1              TCON &= 0xFD;           //清除外部中断0标志位   IE0 = 0;
   7   1              
   8   1      }
   9          
  10          void EINT1_INT(void)    interrupt 2
  11          {
  12   1      //      P4 = 0x40;
  13   1              TCON &= 0xF7;           //清除外部中断1标志位           IE1 = 0;
  14   1      }
  15          
  16          void T1_INT(void)               interrupt 3
  17          {
  18   1              
  19   1              
  20   1      }
  21          
  22          void Uart0_INT(void) interrupt 4
  23          {
  24   1              uint8_t temp=0;
  25   1              
  26   1              if(SCON & 0x01)         //接收完成
  27   1              {
  28   2                      SCON &= 0xFE;   
  29   2      
  30   2                      temp = SBUF;
  31   2                      sendChar(temp); 
  32   2      
  33   2              }
  34   1              if(SCON & 0x02)         //发送完成
  35   1              {
  36   2                      SCON &= 0xFD;
  37   2              }
  38   1              
  39   1      }
  40          
  41          void PWM1_INT(void)     interrupt 5
  42          {
  43   1      
  44   1      }
  45          
  46          void T2_INT(void)       interrupt 6                     //P10引脚输出1kHz的方波
  47          {
  48   1              T2CON &= 0x7F; // 清除溢出标志位                T2溢出标志位清除
  49   1              P1_0 = ~P1_0;
  50   1      
  51   1      }
  52          
  53          void T3_INT(void)       interrupt 7
  54          {
C51 COMPILER V9.54   INTERRUPT                                                             12/03/2024 14:58:47 PAGE 2   

  55   1              T3CON &= 0x7F;          //清空TF3标志位
  56   1      //      P4 = 0x00;
  57   1      }
  58          
  59          void SPI_INT(void)      interrupt 9
  60          {
  61   1              
  62   1              
  63   1      }
  64          
  65          void CLKERR_INT(void)   interrupt 10
  66          {
  67   1              
  68   1              
  69   1      }
  70          
  71          void PWM2_INT(void)             interrupt 11
  72          {
  73   1              
  74   1              
  75   1      }
  76          
  77          void EINT4_INT(void)    interrupt 12
  78          {
  79   1              P4 = 0x20;
  80   1              INTFLG &= 0xFE;         //清除外部中断40中断标志位
  81   1      
  82   1      }
  83          
  84          void PWM3_INT(void)     interrupt 13
  85          {
  86   1              
  87   1              
  88   1      }
  89          
  90          void PWM0_INT(void)             interrupt 14
  91          {
  92   1              
  93   1              
  94   1      }
  95          
  96          //void REMOTE_INT(void)         interrupt 15
  97          //{
  98          //      
  99          //      
 100          //}
 101          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    109    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


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