FAT文件系统在SD卡上的实现和应用.doc

FAT文件系统在SD卡上的实现和应用.doc

  1. 1、本文档共58页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
i 北京 邮电 大学毕业 设计 论 文 用 纸 FAT 文件系统在 SD 卡上的实现和应用 摘 要 本次设计的内容是 FAT 文件系统在 SD 卡上应用与实现。 SD 卡的结构能保证数字 文件传送的安全性,也很容易重新格式化,所以有着广泛的应用领域,音乐、电影、新 闻等多媒体文件都可以方便地保存到 SD 卡中。因此不少数码相机也开始支持 SD 卡。 本文主要利用 C 语言进行程序设计,编辑与编译软件: Win AVR 仿真调试软件: AVR Studio 4,首先通过介绍 SD 总线下 SD 卡的底层读写操作,然后对 FATFS 文件系 统结构进行分析, 通过用串口查看 SD 卡获取文件。最后设计 SD 卡文件的读取、创建、 删除的代码实现,通过交叉编译在 Atmega16 开辟板上测试。结果显示,该方法可以应 用到 MP3 项目中,便于歌曲的读取, 同样便于文件的管理。 AVR 单片机的最小系统设计容易: 只需要连接电源、焊接晶振就可以工作。不少 概念初学者理解起来更容易: 例如 AVR 的时钟源(晶振、内部 RC 等)不经过分频直 接提供给 CPU 使用, 而 51 的 CPU 主频等于晶振的 12 分频。 AVR 既具有简单的、可 以自制的 ISP 下载线和 Jtag 仿真器,又有 DIP 直插的封装形式。 AVR 的 C 语言编程与 C 语言教科书上学习的标准 C 语言语法是几乎一样的, 不像 51 的 C 语言, 一些 bit、srf 之类的变量定义在教科书中是找不到的,有利于后续嵌入式系统的学习。 关键词 : SD 卡、 FatFs 文件系统、 AVR 单片机 ii 北京 邮电 大学毕业 设计 论 文 用 纸 The application and Realization of FAT file system in the SD card Abstract The content of this design is the application and Realization of FAT file system in the SD card. SD card structure can guarantee the security of digital file transfer, but also easy to format, so have a wide range of applications, music, movies, news and other multimedia files can be easilysaved to SD card. So many digital cameras also support SD card. In this paper, using the C language program design, editing and compilingsoftware: Win AVR simulation software: AVR Studio 4, first introduces the underlying SD card under SD bus read and write operations, and then on the FAT32 filesystem structure is analyzed, by using serial view the SD cardaccess file. Finally, design of the SD card file read, create, delete the code to achieve, through cross compiler in Atmega16 development board test.The results show, the method can be applied to the MP3 project, easy toread the same song, for file management. The minimum system design is easy: just need to connect the power supply,welding oscillator can work. Many beginners understand concepts more easily: for example AVR clock (crystal, internal RC) without frequencydirectly for CPU, and 51 CPU frequency equal to the frequency of 12. A

文档评论(0)

文档大王 + 关注
实名认证
内容提供者

本店文档为保证格式,部分为pdf格式,如有需要可以直接下载复制成word格式

认证主体王**

1亿VIP精品文档

相关文档

相关课程推荐