亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? f411_vr_sstflash.lst

?? 用c8051f410和FLASH(SPI接口)實(shí)現(xiàn)的數(shù)字錄音機(jī)。
?? LST
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
C51 COMPILER V7.06   F411_VR_SSTFLASH                                                      02/18/2009 16:30:51 PAGE 1   


C51 COMPILER V7.06, COMPILATION OF MODULE F411_VR_SSTFLASH
OBJECT MODULE PLACED IN F411_VR_SSTFlash.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE F411_VR_SSTFlash.c BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          //-----------------------------------------------------------------------------
   2          // F411_VR_SSTFlash.c
   3          //-----------------------------------------------------------------------------
   4          // Copyright 2006 Silicon Laboratories, Inc.
   5          // http://www.silabs.com
   6          //
   7          // Program Description:
   8          //
   9          // This file contains the interfacing functions to the SST Flash, allowing the
  10          // user to Read memory, Write memory, and Erase memory.
  11          //
  12          // How To Use:    See Readme.txt
  13          //
  14          // FID:            41X000010
  15          // Target:         C8051F411
  16          // Tool chain:     Keil C51 7.50 / Keil EVAL C51
  17          //                 Silicon Laboratories IDE version 2.6
  18          // Project Name:   F411_VR
  19          //
  20          // Release 1.3
  21          //    -All changes by TP
  22          //    -02 Feb 2006
  23          //    -added Read_MEM_Init (duplicate of Read_MEM) to avoid
  24          //       the compiler warning (multiple calls to segment)
  25          //
  26          // Release 1.2
  27          //    -All changes by TP
  28          //    -21 Nov 2005
  29          //    -project version updated, no changes to this file.
  30          //
  31          // Release 1.1
  32          //    -All changes by TP
  33          //    -16 Aug 2004
  34          //    -added SPIF polling while sending the WREN command
  35          //
  36          // Release 1.0
  37          //    -Initial Revision (TP)
  38          //    -15 AUG 2004
  39          //
  40          
  41          //-----------------------------------------------------------------------------
  42          // Includes
  43          //-----------------------------------------------------------------------------
  44          #include <c8051f410.h>                 // SFR declarations
  45          
  46          //-----------------------------------------------------------------------------
  47          // Global CONSTANTS
  48          //-----------------------------------------------------------------------------
  49          // SST Instruction Opcodes (as shown in the datasheet)
  50          #define EWSR 0x50                      // enable write status register
  51          #define WRSR 0x01                      // write status register
  52          #define RDSR 0x05                      // read status register
  53          #define WREN 0x06                      // write enable
  54          #define BPROG 0x02                     // byte program
  55          #define READ 0x03                      // read
C51 COMPILER V7.06   F411_VR_SSTFLASH                                                      02/18/2009 16:30:51 PAGE 2   

  56          #define CERASE 0x60                    // chip erase
  57          #define READID 0x90                    // chip ID
  58          
  59          // Address definition
  60          typedef union ADDRESS {                // access an address as a
  61             unsigned long ULong;                // unsigned long variable or
  62             unsigned char UByte[4];             // 4 unsigned byte variables
  63             // [0] = A31-24, [1] = A23-16, [2] = A15-8, [3] = A7-0
  64          } ADDRESS;
  65          
  66          //-----------------------------------------------------------------------------
  67          // Function PROTOTYPES
  68          //-----------------------------------------------------------------------------
  69          void SSTFlash_Init (void);
  70          
  71          void Write_MEM (unsigned long address, unsigned char data_byte);
  72          unsigned char Read_MEM (unsigned long address);
  73          void Erase_MEM (void);
  74          char ReadID_MEM (void);
  75          
  76          //-----------------------------------------------------------------------------
  77          // SSTFlash_Init
  78          //-----------------------------------------------------------------------------
  79          //
  80          // Return Value : None
  81          // Parameters   : None
  82          //
  83          // Unprotect the memory so that all of memory may be written and read.
  84          // NOTE: The SPI must be initialized before this function is called.
  85          //
  86          void SSTFlash_Init (void)
  87          {
  88   1         NSSMD0 = 0;                         // enable the flash
  89   1      
  90   1         // send the enable write status register command
  91   1         SPI0DAT = EWSR;                     // load the XMIT register
  92   1         while (TXBMT != 1)                  // wait until EWSR command is moved into
  93   1         {                                   // the XMIT buffer
  94   2         }
  95   1         SPIF = 0;
  96   1         while (SPIF != 1)                   // wait until the SPI finishes sending
  97   1         {                                   // the EWSR command to the flash
  98   2         }
  99   1         SPIF = 0;
 100   1      
 101   1         NSSMD0 = 1;                         // allow the command to execute
 102   1      
 103   1         NSSMD0 = 0;                         // enable the flash
 104   1      
 105   1         // send the write status register command and clear the BP bits
 106   1         SPI0DAT = WRSR;                     // load the XMIT register
 107   1         while (TXBMT != 1)                  // wait until the XMIT register can
 108   1         {                                   // accept more data
 109   2         }
 110   1         SPI0DAT = 0x00;                     // set the block protection bits to 0
 111   1         while (TXBMT != 1)                  // wait until the data is moved into
 112   1         {                                   // the XMIT buffer
 113   2         }
 114   1         SPIF = 0;
 115   1         while (SPIF != 1)                   // wait until the SPI finishes sending
 116   1         {                                   // the data to the flash
 117   2         }
C51 COMPILER V7.06   F411_VR_SSTFLASH                                                      02/18/2009 16:30:51 PAGE 3   

 118   1         SPIF = 0;
 119   1      
 120   1         NSSMD0 = 1;                         // allow the command to execute
 121   1      }
 122          
 123          //-----------------------------------------------------------------------------
 124          // Write_MEM
 125          //-----------------------------------------------------------------------------
 126          //
 127          // Return Value : None
 128          // Parameters   :
 129          //   1)  long address - address in the 512 kB external SST Flash
 130          //                      range is postive values up to 2^19: 0 to 524287,
 131          //                           or, 0 to 0x7FFFF
 132          //   2)  char data_byte - the data to be written to memory
 133          //                      range is positive range of character: 0 to 255
 134          //
 135          // Write one byte of data to a 24-bit address in the SST Flash Memory using
 136          // the SPI.
 137          //
 138          void Write_MEM (unsigned long address, unsigned char data_byte)
 139          {
 140   1         ADDRESS temp_addr;
 141   1         temp_addr.ULong = address;
 142   1      
 143   1         NSSMD0 = 0;                         // enable the flash
 144   1      
 145   1         // send the write enable command
 146   1         SPI0DAT = WREN;                     // load the XMIT register
 147   1         while (TXBMT != 1)                  // wait until the command is moved into
 148   1         {                                   // the XMIT buffer
 149   2         }
 150   1         SPIF = 0;
 151   1         while (SPIF != 1)                   // wait until the command reaches the
 152   1         {                                   // flash
 153   2         }
 154   1         SPIF = 0;
 155   1      
 156   1         NSSMD0 = 1;                         // allow the WREN to execute
 157   1      
 158   1         NSSMD0 = 0;                         // enable the flash
 159   1      
 160   1         // send the byte-program command
 161   1         SPI0DAT = BPROG;                    // load the XMIT register
 162   1         while (TXBMT != 1)                  // wait until the command is moved into
 163   1         {                                   // the XMIT buffer
 164   2         }
 165   1         SPI0DAT = temp_addr.UByte[1];       // load the high byte of the address
 166   1         while (TXBMT != 1)                  // wait until the addr is moved into
 167   1         {                                   // the XMIT buffer
 168   2         }
 169   1         SPI0DAT = temp_addr.UByte[2];       // load the middle byte of the address
 170   1         while (TXBMT != 1)                  // wait until the addr is moved into
 171   1         {                                   // the XMIT buffer
 172   2         }
 173   1         SPI0DAT = temp_addr.UByte[3];       // load the low byte of the address
 174   1         while (TXBMT != 1)                  // wait until the addr is moved into
 175   1         {                                   // the XMIT buffer
 176   2         }
 177   1         SPI0DAT = data_byte;                // load the byte of data
 178   1         while (TXBMT != 1)                  // wait until the data is moved into
 179   1         {                                   // the XMIT buffer
C51 COMPILER V7.06   F411_VR_SSTFLASH                                                      02/18/2009 16:30:51 PAGE 4   

 180   2         }
 181   1         SPIF = 0;
 182   1         while (SPIF != 1)                   // wait until the last byte of the
 183   1         {                                   // write instruction reaches the flash
 184   2         }
 185   1         SPIF = 0;
 186   1      
 187   1         NSSMD0 = 1;                         // allow the WR instruction to execute
 188   1      }
 189          
 190          //-----------------------------------------------------------------------------
 191          // Read_MEM
 192          //-----------------------------------------------------------------------------
 193          //
 194          // Return Value :
 195          //   1)  char data_byte - the data byte read from memory
 196          //                      range is positive range of character: 0 to 255
 197          // Parameters   :
 198          //   1)  long address - address in the 512 kB external SST Flash
 199          //                      range is postive values up to 2^19: 0 to 524287,
 200          //                           or, 0 to 0x7FFFF
 201          //
 202          // Read one byte of data from a 24-bit address in the SST Flash Memory using
 203          // the SPI.
 204          //
 205          unsigned char Read_MEM (unsigned long address)
 206          {
 207   1         ADDRESS temp_addr;
 208   1         temp_addr.ULong = address;
 209   1      
 210   1         NSSMD0 = 0;                         // enable the flash
 211   1      
 212   1         // send the read instruction
 213   1         SPI0DAT = READ;                     // load the XMIT register

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久综合精品| 男女激情视频一区| 国产精品乱子久久久久| 久久蜜桃av一区精品变态类天堂| 欧美电影免费观看完整版| 日韩一区二区三区精品视频 | 一区二区中文视频| 欧美极品美女视频| 国产精品视频一二| 国产精品久久久久久久午夜片| 欧美国产禁国产网站cc| 国产精品另类一区| 亚洲欧洲制服丝袜| 亚洲国产一区二区三区青草影视| 亚洲影视在线播放| 青青草国产成人av片免费| 麻豆免费看一区二区三区| 寂寞少妇一区二区三区| 国产99久久精品| 91蝌蚪porny成人天涯| 在线视频综合导航| 日韩欧美区一区二| 国产欧美日韩不卡免费| 亚洲免费看黄网站| 天天做天天摸天天爽国产一区 | 99久久婷婷国产精品综合| 91免费在线看| 欧美日韩国产免费| 精品国内片67194| 国产精品青草久久| 亚洲第四色夜色| 国产乱子伦视频一区二区三区 | 在线观看一区日韩| 欧美一区二区三区婷婷月色| 久久一留热品黄| 亚洲视频中文字幕| 青青草国产成人av片免费| 成人小视频在线| 欧美亚洲愉拍一区二区| 26uuu精品一区二区三区四区在线| 中文字幕av资源一区| 亚洲最大成人综合| 国内精品伊人久久久久av一坑 | 99精品热视频| 337p亚洲精品色噜噜狠狠| 久久九九影视网| 亚洲高清中文字幕| 国产精品一二三在| 欧美另类变人与禽xxxxx| 国产亚洲精品7777| 亚洲网友自拍偷拍| 国产成人精品网址| 欧美嫩在线观看| 国产精品国产三级国产普通话三级 | 色网综合在线观看| 精品国产91久久久久久久妲己| 亚洲免费在线视频一区 二区| 日韩高清中文字幕一区| 99国产精品久久久久久久久久久 | 亚洲美女淫视频| 国产一区在线视频| 欧美在线免费视屏| 国产女同互慰高潮91漫画| 日韩中文字幕av电影| 99久久免费视频.com| 精品国产免费久久| 香蕉久久一区二区不卡无毒影院| 国产91富婆露脸刺激对白| 欧美肥妇bbw| 亚洲情趣在线观看| 国产盗摄视频一区二区三区| 欧美精品乱人伦久久久久久| 亚洲欧美怡红院| 国产精品影视在线观看| 欧美精品一卡二卡| 一区二区三区精品视频在线| 国产91精品一区二区麻豆网站 | 欧美精品久久一区| 亚洲男人的天堂在线观看| 国产成人免费网站| 日韩久久免费av| 日韩精品五月天| 欧美中文字幕一二三区视频| 综合网在线视频| 成人国产精品免费网站| 欧美精品一区二区三区高清aⅴ| 性欧美疯狂xxxxbbbb| 91国偷自产一区二区三区成为亚洲经典 | 日韩欧美激情四射| 天天色天天爱天天射综合| 在线看国产一区二区| 中文字幕亚洲在| 成人免费视频app| 国产亚洲人成网站| 国产成人午夜99999| 久久一夜天堂av一区二区三区| 久久av中文字幕片| 精品国产免费久久| 国模冰冰炮一区二区| 欧美成人免费网站| 九九精品视频在线看| 亚洲精品一区二区在线观看| 精品一二三四区| 2021久久国产精品不只是精品| 精品制服美女丁香| www久久精品| 国产高清不卡一区二区| 国产视频一区二区在线| 国产成人在线看| 国产精品美女www爽爽爽| 99久久亚洲一区二区三区青草| 综合中文字幕亚洲| 欧美视频在线播放| 日韩国产欧美在线视频| 日韩欧美一区中文| 国产在线不卡一区| 国产精品网站在线观看| 97久久久精品综合88久久| 亚洲精品日产精品乱码不卡| 色乱码一区二区三区88| 婷婷夜色潮精品综合在线| 欧美一级高清大全免费观看| 国内欧美视频一区二区 | 日日欢夜夜爽一区| 日韩欧美国产wwwww| 国产精品自产自拍| 综合激情成人伊人| 欧美日韩免费电影| 韩国女主播一区| 国产精品久久久久一区二区三区| 色哟哟国产精品| 日本91福利区| 欧美经典三级视频一区二区三区| 99国产欧美另类久久久精品| 亚洲大片一区二区三区| 精品久久久久久久一区二区蜜臀| 成人综合在线观看| 亚洲影院免费观看| www久久久久| 色999日韩国产欧美一区二区| 日韩专区一卡二卡| 久久精品视频免费观看| 日本高清不卡在线观看| 男人的天堂久久精品| 国产精品素人视频| 欧美老年两性高潮| 国产精品亚洲人在线观看| 一区二区三区产品免费精品久久75 | 精品国产乱码久久久久久久久| 成人丝袜视频网| 日韩专区欧美专区| 国产精品乱人伦中文| 91精品一区二区三区在线观看| 国产不卡视频在线观看| 午夜在线电影亚洲一区| 久久精品一区八戒影视| 欧美日韩国产首页在线观看| 国产精品88888| 婷婷久久综合九色综合伊人色| 国产片一区二区| 91精品国产手机| 96av麻豆蜜桃一区二区| 久久不见久久见中文字幕免费| 亚洲另类在线一区| 久久精品人人做人人综合| 欧美猛男男办公室激情| jlzzjlzz亚洲女人18| 日本不卡不码高清免费观看| 亚洲色图一区二区| 国产蜜臀97一区二区三区 | 国产精品久99| 精品国产乱码久久久久久久久 | 日韩亚洲欧美成人一区| 色av一区二区| 国产91精品一区二区麻豆网站| 免费美女久久99| 亚洲综合精品久久| 综合网在线视频| 久久九九国产精品| 日韩精品一区二区三区在线播放| 欧美专区亚洲专区| k8久久久一区二区三区 | 欧美色视频在线| 99精品在线观看视频| 国产白丝精品91爽爽久久| 激情综合色播五月| 美女爽到高潮91| 日本一不卡视频| 天天操天天综合网| 亚洲国产日韩综合久久精品| 亚洲日本va午夜在线影院| 国产女人水真多18毛片18精品视频| 26uuu欧美日本| 精品国产91乱码一区二区三区 | 91在线你懂得| 成人黄色一级视频| 成人免费视频播放| 成人免费不卡视频| 成人免费视频一区| 福利电影一区二区三区|