⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 blinky.lst

📁 很实用的单片机例程
💻 LST
字号:
C51 COMPILER V7.00  BLINKY                                                                 09/22/2009 18:11:52 PAGE 1   


C51 COMPILER V7.00, COMPILATION OF MODULE BLINKY
OBJECT MODULE PLACED IN BLINKY.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE BLINKY.C DEBUG OBJECTEXTEND

stmt level    source

   1          /* BLINKY.C - LED Flasher for the Keil MCBx51 Evaluation Board with 80C51 device*/
   2                            
   3          #include <REG51.H>
   4          
   5          // When you have enabled the option Stop Program Execution with Serial
   6          // Interrupt, the Monitor-51 uses the serial interrupt of the UART.
   7          // It is therefore required to reserve the memory locations for the interrupt
   8          // vector.  You can do this by adding one of the following code lines:
   9          
  10          // char code reserve [3] _at_ 0x23;   // when using on-chip UART for communication
  11          // char code reserve [3] _at_  0x3;   // when using off-chip UART for communication
  12          
  13          void wait (int nms)  {                   /* wait function */
  14   1      unsigned int i;  
  15   1       while(nms--)
  16   1       {
  17   2        for (i = 0; i < 125; i++);                                   /* only to delay for LED flashes */
  18   2        }
  19   1      }
  20          
  21          void main (void)  {
  22   1       // unsigned int i;                     /* Delay var */
  23   1      //  unsigned char j;                    /* LED var */
  24   1               P1 = 0xff;   
  25   1        while (1) {                         /* Loop forever */    
  26   2            P1 = 0xff;                         /* Output to LED Port */     
  27   2             wait (300);                       /* call wait function */    
  28   2            P1 = 0x00;                         /* Output to LED Port */    
  29   2             wait (300);                       /* call wait function */    
  30   2        }
  31   1      }


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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -