找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開始

搜索
查看: 10619|回復(fù): 15
打印 上一主題 下一主題
收起左側(cè)

AT45DB041B AT45DB161D各種單片機(jī)驅(qū)動(dòng)程序及其pdf下載

  [復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
#
ID:71407 發(fā)表于 2014-12-31 21:45 | 只看該作者 |只看大圖 回帖獎(jiǎng)勵(lì) |正序?yàn)g覽 |閱讀模式
at45db161d.rar (4.97 MB, 下載次數(shù): 184)

評(píng)分

參與人數(shù) 2黑幣 +10 收起 理由
changhenjian + 5 贊一個(gè)!
Lavge + 5 贊一個(gè)!

查看全部評(píng)分

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂1 踩

相關(guān)帖子

回復(fù)

使用道具 舉報(bào)

15#
ID:1051585 發(fā)表于 2022-12-11 20:52 | 只看該作者
學(xué)習(xí)一下,看x5045能不能借用
回復(fù)

使用道具 舉報(bào)

14#
ID:222006 發(fā)表于 2021-7-22 20:58 | 只看該作者
缺資料收藏了,STM32硬件SPI驅(qū)動(dòng)試試
回復(fù)

使用道具 舉報(bào)

13#
ID:304740 發(fā)表于 2018-4-9 21:02 | 只看該作者
不錯(cuò)不錯(cuò),好東西.
回復(fù)

使用道具 舉報(bào)

12#
ID:277437 發(fā)表于 2018-1-18 16:05 | 只看該作者
好東西,贊一個(gè)
回復(fù)

使用道具 舉報(bào)

11#
ID:239825 發(fā)表于 2017-10-16 10:30 | 只看該作者
感謝分享。。。。
回復(fù)

使用道具 舉報(bào)

10#
ID:239825 發(fā)表于 2017-10-16 10:27 | 只看該作者
不錯(cuò) 學(xué)習(xí)了 謝謝哦
回復(fù)

使用道具 舉報(bào)

9#
ID:130199 發(fā)表于 2017-1-12 09:01 | 只看該作者
感謝分享。!
回復(fù)

使用道具 舉報(bào)

8#
ID:160101 發(fā)表于 2017-1-5 11:51 | 只看該作者
好,下載測(cè)試
回復(fù)

使用道具 舉報(bào)

7#
ID:136738 發(fā)表于 2016-8-14 17:13 | 只看該作者
下載看看   正好在做430與AT45的程序
回復(fù)

使用道具 舉報(bào)

6#
ID:135011 發(fā)表于 2016-7-25 22:13 | 只看該作者
謝謝!
回復(fù)

使用道具 舉報(bào)

5#
ID:91580 發(fā)表于 2016-4-9 20:50 | 只看該作者
下載了,看看我會(huì)不會(huì)用
回復(fù)

使用道具 舉報(bào)

地板
ID:109933 發(fā)表于 2016-3-21 10:44 | 只看該作者
好資料 學(xué)習(xí)一下
回復(fù)

使用道具 舉報(bào)

板凳
ID:104780 發(fā)表于 2016-1-30 23:50 | 只看該作者
hao,henhao
回復(fù)

使用道具 舉報(bào)

沙發(fā)
ID:8838 發(fā)表于 2015-9-23 10:28 | 只看該作者
好東西啊,贊一個(gè)
回復(fù)

使用道具 舉報(bào)

樓主
ID:71407 發(fā)表于 2014-12-31 22:01 | 只看該作者
AT45DB161D 擦除算法:// 1 Chip = 16 Sectors = 512 Blocks = 4096 Pages
//            1 Sector = 32 Blocks  = 256 Pages
//                          1 Block = 8 Pages
//------------------------------------------------------------------------------
// Pm ... Pn [Bm ... Bn] [Sm ... Sn] [Bm ... Bn] Pm ... Pn
//------------------------------------------------------------------------------
// Caller must make dwAddress in Page boundary
// Example : AT45_ErasePages(247*512, 1+1*8+1*256+1*8+1);
//
void AT45_ErasePages(u32 dwAddress, u32 dwPageCount)
{
  if ( dwPageCount == 0)
    return;
  if ( ( dwAddress == 0) && ( dwPageCount >= 4096) )
  {
    AT45_ChipErase();
    return;
  }
  if ( dwPageCount >= 256 )
  {
    if ( (dwAddress & 0x1FFFF) == 0x00000000 )   // At Sector boundary
    {
      while ( dwPageCount >= 256 )
      {
        AT45_SectorErase(dwAddress);
        dwAddress += 256 * 512;
        dwPageCount -= 256;
      }
      BOOT_AT45_ErasePages(dwAddress, dwPageCount);
      return;
    }
  }
  if ( dwPageCount >= 8 )                      // Erase Blocks until Sector boundary
  {
    if ( (dwAddress & 0xFFF) == 0x00000000 )   // At Block boundary
    {
      while ( dwPageCount >= 8 )
      {
        if ( (dwAddress & 0x1FFFF) == 0x00000000 )   // At Sector boundary
        {
          if ( dwPageCount >= 256 )
          {
            BOOT_AT45_ErasePages(dwAddress, dwPageCount);
            return;
          }
        }
        AT45_BlockErase(dwAddress);
        dwAddress += 8 * 512;
        dwPageCount -= 8;
      }
      BOOT_AT45_ErasePages(dwAddress, dwPageCount);
      return;
    }
  }
  while ( dwPageCount > 0 )                    // Erase Pages until Block boundary
  {
    if ( (dwAddress & 0xFFF) == 0x00000000 )   // At Block boundary
    {
      if ( dwPageCount >= 8 )
      {
        BOOT_AT45_ErasePages(dwAddress, dwPageCount);
        return;
      }
    }
    AT45_PageErase(dwAddress);
    dwAddress += 1*512;
    dwPageCount -= 1;
  }
}
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

手機(jī)版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表