C51 COMPILER V9.51   MAIN                                                                  11/20/2017 11:41:53 PAGE 1   


C51 COMPILER V9.51, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN .\OBJ\MAIN.obj
COMPILER INVOKED BY: C:\Keil4\C51\BIN\C51.EXE ..\code\MAIN.C BROWSE DEBUG OBJECTEXTEND PRINT(.\LST\MAIN.lst) OBJECT(.\OB
                    -J\MAIN.obj)

line level    source

   1          /*********************************************************************
   2              项目名称:TI2C
   3              作    者:LZD
   4              项目描述:
   5              
   6                          使用TWSI (SCL/P2.2, SDA/P2.4)作为主机,中断方式
   7                          
   8              MCU 型号:MA82G5Dxx
   9              晶    振:11.0592MHz
  10              指令周期:1T
  11          
  12              建立时间:
  13              修改日志:
  14          
  15          
  16          
  17          *********************************************************************/
  18          #define _MAIN_C
  19          
  20          #include        "Incfile.h"
  21          
  22          
  23          
  24          void main()
  25          {
  26   1              CLRWDT();
  27   1              TrapFlag[0]='W';
  28   1          InitSystem();
  29   1              
  30   1              LED_STATUS=0;
  31   1              
  32   1              TestOutStr("\nHello!!\n");
  33   1              
  34   1              delayNmS=500;
  35   1              while(delayNmS!=0)
  36   1              {
  37   2                      nop();
  38   2                      nop();
  39   2                      nop();
  40   2              }
  41   1      
  42   1              TrapFlag[2]=0xFF;
  43   1              ENWDT();
  44   1              
  45   1              LED_STATUS=1;
  46   1              
  47   1              TWI0Status=TWI_RW_IDLE;
  48   1              TWI0Runtime=TWI_RUN_TIME_MAX;
  49   1              while(1)
  50   1              {
  51   2                      TWI0Proc();
  52   2                      if(delayNmS==0)
  53   2                      {
  54   3                              delayNmS=100;
C51 COMPILER V9.51   MAIN                                                                  11/20/2017 11:41:53 PAGE 2   

  55   3                              LED_STATUS=!LED_STATUS;
  56   3                      }
  57   2                      
  58   2              }
  59   1      }
  60          
  61          


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


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