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

📄 main.lst

📁 用89C51SND1C实现MP3播放器的源代码.用KEIL c51编写.
💻 LST
📖 第 1 页 / 共 2 页
字号:
  83          0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,      
  84          
  85          0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,      
  86          0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,      
  87          0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,      
  88          0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,      
  89          0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,
  90          
  91          0x00,//active partion
  92          0x00,//head
  93          0x00,//partion begin
  94          0x00,//cylinder
  95          0x06,//is partion used
  96          0x00,//end head
  97          0x00,//partion end 
  98          0x00,//end cylinder
  99          0x00,0x00,0x00,0x00,
 100          0x00,0x80,0x00,0x00,//fist partion
 101          
 102          0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,//second partion
 103          0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,//third partion
 104          0,0,0,0,0,              0,0,0,0,0,              0,0,0,0,0,              0,//forth partion
 105          
C51 COMPILER V6.23a  MAIN                                                                  11/27/2003 16:35:41 PAGE 3   

 106          0x55,0xAA       // Offset_short int_Signature           510     //0x55AA           
 107          
 108          };
 109          
 110          void main()
 111          {
 112   1              int i=0,j=0,k=0,Writeok=0;
 113   1              printu("UP-TECH FLASH Test!\n");
 114   1              P3_5=0;
 115   1              Flash_Reset();
 116   1      
 117   1              if(Check_Flash_Id()){
 118   2                      printu("\nFlash is Found!\n");
 119   2                      if(Check_Flash_Id()==0xec75) printu("Flash Type:K9F5608,Flash size:32M!\n");
 120   2                      if(Check_Flash_Id()==0xec73) printu("Flash Type:K9F2808,Flash size:16M!\n");
 121   2      
 122   2                      i=SectorLength;
 123   2                      while(i--) databuff[i]=0;
 124   2                      ReadPage(0,0,databuff);
 125   2                      i=128;
 126   2                      while(i--) {
 127   3                              if(databuff[i]!=0) {printu("Read Flash Test OK!\n");break;}
 128   3                              }
 129   2      
 130   2                      ReadPage(0xff,0,databuff1);
 131   2      
 132   2                      i=SectorLength;
 133   2                      while(i--) databuff[i]=0xa5;
 134   2                      Erase_Cluster(0xff);
 135   2                      WritePage(0xff,0,databuff);
 136   2                      ReadPage(0xff,0,databuff);
 137   2                      
 138   2                      i=128;
 139   2                      while(i--) {if((databuff[i]!=0xa5) && (databuff[i]==databuff1[i])) {printu("Can't Write to Flash,Check t
             -he resistor beside the Chip!\n");break;}}
 140   2      
 141   2                      
 142   2                      
 143   2                      Erase_Cluster(0);
 144   2                      WritePage(0,0,BPB_Data);
 145   2      
 146   2                      ReadPage(0,0,databuff);
 147   2                      if((databuff[0]==0xeb)&&(databuff[1]==0x3c)&&(databuff[2]==0x90)) {
 148   3                              printu("Write Flash Test Ok!\n");Writeok=1;
 149   3                              for(i=0;i<16;i++) printuf("%x ",databuff[i]);                   
 150   3                              }
 151   2                      else {
 152   3                              printu("\nFaile to Write Flash,\n");
 153   3                              printu("Please Check and make sure the Flash Chip have been properly jointed!\n");
 154   3                              printu("and Check Whether the Resistor R315 have been jointed!\n");
 155   3                      
 156   3                              }
 157   2                      
 158   2                      }
 159   1              else 
 160   1              {
 161   2              printu("\nFLASH is Not Found!\n");
 162   2              printu("Please Check and make sure the Flash Chip have been properly jointed!\n");
 163   2              }
 164   1              
 165   1              while(1);
 166   1      }
C51 COMPILER V6.23a  MAIN                                                                  11/27/2003 16:35:41 PAGE 4   

 167          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    544    ----
   CONSTANT SIZE    =    901    ----
   XDATA SIZE       =    640       8
   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 + -