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

📄 test.lst

📁 ISD_调试范例,nRF9E5的C语言编程.
💻 LST
字号:
C51 COMPILER V7.50   TEST                                                                  11/11/2005 05:37:52 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE TEST
OBJECT MODULE PLACED IN Test.OBJ
COMPILER INVOKED BY: E:\Keil\C51\BIN\C51.EXE Test.c OPTIMIZE(9,SPEED) BROWSE DEBUG OBJECTEXTEND

line level    source

   1          /*------------------------------------------------------------------------------
   2          TEST.C:  ISD51 Demo for classic 8051 devices like Philips 89C51RD2/89C66x
   3          
   4          Copyright 2002 - 2003 Keil Software, Inc.
   5          ------------------------------------------------------------------------------*/
   6          
   7          #include <reg9e5.H>
   8          #include <intrins.h>
   9          #include <absacc.h>
  10          #include "ISD51.h"
  11          
  12          unsigned char j;
  13          
  14          unsigned char code testarray[] = "Some Text";
  15          
  16          
  17          #if 0   // uncomment this function to verify serial communication
              
              /*
               * Test Function: verify serial communication with HyperTerminal
               */
              void TestSerial (void)  {
                char c = 'A';
              
                TI = 1;
                while (1)  {
                  if (RI)  {
                    c = SBUF;
                    RI = 0;
                  }
                  while (!TI);
                  TI = 0;
                  SBUF = c;
                }
              }
              
              #endif
  38          
  39          void delay(void) {
  40   1        long i;
  41   1        
  42   1        i = 0x800;
  43   1        while(i--);
  44   1      }
  45          
  46          void main (void)  {
  47   1        unsigned int i;
  48   1      
  49   1        P0_DIR |= 0x02;                             // P0.1 (RxD) is an input
  50   1        P0_ALT |= 0x06;                             // Select alternate functions on pins P0.1 and P0.2
  51   1      
  52   1        T2CON   = 0x34;      /* Use Timer 2 as baudrate generator  */
  53   1      
  54   1        RCAP2H  = 0xFF;
  55   1        RCAP2L  = 0xF7;      /* 57600 baud @ 16MHz                  */
C51 COMPILER V7.50   TEST                                                                  11/11/2005 05:37:52 PAGE 2   

  56   1      
  57   1        SCON    = 0x50;      /* enable serial uart & receiver      */
  58   1        EA = 1;              /* Enable global interrupt flag       */
  59   1      
  60   1      //TestSerial ();      // uncomment this function to verify serial communication
  61   1       
  62   1      #if 0   // init ISD51 and start user program until the uVision2 Debugger connects
                ISDinit ();        // initialize uVision2 Debugger and continue program run
              #endif
  65   1      
  66   1      #if 0   // init ISD51 and wait until the uVision2 Debugger connects
                ISDwait ();        // wait for connection to uVision2 Debugger
              #endif
  69   1      
  70   1        for (i = 0; i < sizeof (testarray); i++)  {
  71   2         j = testarray[i];
  72   2        }
  73   1      
  74   1        while (1)  {
  75   2      #if 1   // init ISD51 only when the uVision2 Debugger tries to connect
  76   2          ISDcheck();      // initialize uVision2 Debugger and continue program run
  77   2      #endif
  78   2          _nop_();
  79   2          _nop_();
  80   2          _nop_();
  81   2          _nop_();
  82   2          _nop_();
  83   2          _nop_();
  84   2          _nop_();
  85   2          _nop_();
  86   2          _nop_();
  87   2          _nop_();
  88   2          _nop_();
  89   2      #if 0   // you may use ISDbreak when ISD51 is started with ISDcheck or ISDwait
                  ISDbreak ();  // hard coded stop (breakpoint)
              #endif
  92   2          delay();
  93   2          _nop_();
  94   2          _nop_();
  95   2          _nop_();
  96   2        }
  97   1      }
  98          
  99          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    103    ----
   CONSTANT SIZE    =     10    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =      1       4
   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 + -