C51 COMPILER V9.54   EINT                                                                  12/03/2024 14:58:46 PAGE 1   


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

line level    source

   1          #include "eint.h"
   2          
   3          void EINT_Test(void)
   4          {
   5   1              P4CR = 0xF0;
   6   1              P4 = 0x00;
   7   1              
   8   1              P0CR &= 0x7F;
   9   1              P0PCR |= 0x80;
  10   1              
  11   1              P1CR &= 0xFE;
  12   1              P1PCR |= 0x01;
  13   1              
  14   1              P2CR &= 0xFD;
  15   1              P2PCR |= 0x02;
  16   1              
  17   1              INTEN = 0x01;           //使能P10引脚外部中断           等效于EN40=1
  18   1              INTCTRL |= 0x01;                //INT0下降沿产生中断    默认INT0 P07作为输入
  19   1              INTCTRL |= 0x04;                //INT1下降沿产生中断
  20   1              INTCTRL |= 0x10;                //INT4下降沿产生中断
  21   1              
  22   1              EA = 1;
  23   1              IEN0 |= 0x01;           //IE0 = 1;使能INT0
  24   1              IEN0 |= 0x04;           //IE2 = 1;使能INT1
  25   1              IEN2 |= 0x01;           //IE12 = 1;使能INT4
  26   1      //      INTCTRL |= 0xC0;                //INT1源选择WT溢出信号，INT0选择WDT匹配信号
  27   1              
  28   1              while(1);
  29   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     49    ----
   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)
