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

📄 memory.lst

📁 mp3播放器
💻 LST
字号:
C51 COMPILER V8.08   MEMORY                                                                07/28/2007 11:42:16 PAGE 1   


C51 COMPILER V8.08, COMPILATION OF MODULE MEMORY
OBJECT MODULE PLACED IN memory.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE memory.c OMF2 OPTIMIZE(6,SPEED) BROWSE VARBANKING DEBUG

line level    source

   1          #include "dp8051.h"
   2          #include "config.h"
   3          #include "absacc.h"
   4          #include "constant.h"
   5          #include "variable.h"
   6          #include "function.h"
   7          #include "sdhost.h"
   8          #include "sssmp3_regs.h"
   9          #include "fat.h"
  10          #include "mp3_appl.h"
  11          //***********************************************
  12          /************************************************
  13          函 数 名: check_nor_flash()
  14          功    能:测试nor flash ( read )
  15          说    明:
  16          调    用:
  17          全局变量:
  18          入口参数:无
  19          出口参数:无
  20          返 回 值:无
  21          ************************************************/
  22          //测试nor flash ( read )
  23          bit check_nor_flash(void)
  24          {
  25   1              U32 xdata address = 0x100000L,j;
  26   1        U8 data i;
  27   1      
  28   1      #if TX_DEBUG
  29   1        //读出数据并将其通过串口发出
  30   1        SendChar(FVAR(U8, address));
  31   1        for(i = 0; i < 20; i++)
  32   1          SendChar(FVAR(U8, address |(0x01L << i)));
  33   1        address = 0x100001L;
  34   1        j = 0x01L;
  35   1        for(i = 1; i < 20; i++)
  36   1        {
  37   2          j |= (0x01L << i);
  38   2              SendChar(FVAR(U8, address | j));
  39   2        }
  40   1      #endif
  41   1      //***********************************************
  42   1        //检查nor flash数据是否正确
  43   1        address = 0x100000L;
  44   1        if(FVAR(U8, address) != 0x00)
  45   1        {
  46   2              return KO;
  47   2        }
  48   1        for(i = 0; i < 20; i++)
  49   1        {
  50   2          if(FVAR(U8, (address |(0x01L << i))) != i + 1)
  51   2              {
  52   3                return KO;
  53   3              }
  54   2        }
  55   1        address = 0x100001L;
C51 COMPILER V8.08   MEMORY                                                                07/28/2007 11:42:16 PAGE 2   

  56   1        j = 0x01L;
  57   1        for(i = 1; i < 20; i++)
  58   1        {
  59   2          j |= (0x01L << i);
  60   2              if(FVAR(U8, (address | j)) != i + 0x14)
  61   2              {
  62   3                return KO;
  63   3          }
  64   2        }
  65   1        return OK;
  66   1      }
  67          /************************************************
  68          函 数 名: check_sram()
  69          功    能:测试外接SRAM ( read and write )
  70          说    明:
  71          调    用:
  72          全局变量:
  73          入口参数:无
  74          出口参数:无
  75          返 回 值:无
  76          ************************************************/
  77          //测试外接SRAM ( read and write )
  78          bit check_sram(void)
  79          {
  80   1        U32 xdata address,j;
  81   1        U8 data i;
  82   1      
  83   1        //往SRAM写入数据
  84   1        address = 0x200000L;
  85   1        *FARRAY(U8, address) = 0x28;
  86   1        for(i = 0; i < 17; i++)
  87   1        {
  88   2          *FARRAY(U8, address |(0x01L << i)) = 0x29 + i;
  89   2        }
  90   1        address = 0x200001L;
  91   1        j = 0x01L;
  92   1        for(i = 1; i < 17; i++)
  93   1        {
  94   2          j |= (0x01L << i);
  95   2              *FARRAY(U8, address | j) = 0x39 + i;
  96   2        }
  97   1      //***********************************************
  98   1      #if TX_DEBUG
  99   1        //将写入的数据读出并通过串口发出
 100   1        address = 0x200000L;
 101   1        SendChar(FVAR(U8, address));
 102   1        for(i = 0; i < 17; i++)
 103   1        {
 104   2              SendChar(FVAR(U8, (address |(0x01L << i))));
 105   2        }
 106   1        address = 0x200001L;
 107   1        j = 0x01L;
 108   1        for(i = 1; i < 17; i++)
 109   1        {
 110   2          j |= (0x01L << i);
 111   2              SendChar(FVAR(U8, (address | j)));
 112   2        }
 113   1      #endif
 114   1      //***********************************************
 115   1        //检查写入SRAM的数据是否正确
 116   1        //ExternSRAMFlag = OK;
 117   1        address = 0x200000L;
C51 COMPILER V8.08   MEMORY                                                                07/28/2007 11:42:16 PAGE 3   

 118   1        if(FVAR(U8, address) != 0x28)
 119   1        {
 120   2              return KO;
 121   2        }
 122   1        for(i = 0; i < 17; i++)
 123   1        {
 124   2              if(FVAR(U8, (address |(0x01L << i))) != 0x29 + i)
 125   2              {
 126   3                return KO;
 127   3              }
 128   2        }
 129   1        address = 0x200001L;
 130   1        j = 0x01L;
 131   1        for(i = 1; i < 17; i++)
 132   1        {
 133   2          j |= (0x01L << i);
 134   2              if(FVAR(U8, (address | j)) != 0x39 + i)
 135   2              {
 136   3                return KO;
 137   3              }
 138   2        }
 139   1        return OK;
 140   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =   1460    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----      16
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----       2
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
   EDATA SIZE       =   ----    ----
   HDATA SIZE       =   ----    ----
   XDATA CONST SIZE =   ----    ----
   FAR CONST SIZE   =   ----    ----
END OF MODULE INFORMATION.


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

⌨️ 快捷键说明

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