《MCS51 MCU读写SD卡版(单片机论文)》.doc

  1. 1、本文档共93页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
《MCS51 MCU读写SD卡版(单片机论文)》

摘 要 近年来, SD存储卡在嵌入式产品中的应用越来越广泛, 但SD卡接口一般仅集成在32位高端处理器中, 一般51单片机则由于资源限制没有该接口。因此,如何解决51单片机应用系统存取SD卡大容量数据就显得很有实际意义。 本系统使用MXT8051F04A作为单片机与SD卡的接口芯片, 采用SPI串行方式对SD卡的扇区进行读写,读写过程和结果通过串口调试助手在主机上显示。本论文的核心主要从硬件设计和软件编程两个大的方面介绍了系统的实现。硬件电路设计主要包括MXT8051F04A最小系统电路、电源电路、串口电路、SD卡接口电路。程序采用C语言在Keil软件下进行编写、调试,程序主要包括SD卡扇区读写程序、串口程序等软件模块。系统实现了对SD卡扇区的读写,达到了设计的要求和目的。 关键字:MXT8051F04A,SD卡,Keil AIn recent years, SD memory card applications in the embedded products more widely, but generally only the integrated SD card interface in 32-bit high-end processor, microcontroller 51 is generally not the interface due to resource constraints. Therefore, how to solve the 51 SCM applications to access data on large-capacity SD cards seem very practical. The system uses MXT8051F04A as SCM and SD card interface chip, using SPI mode on the SD card serial read and write sectors, reading and writing process and results through the serial port on the host display debugging assistant. The core of this thesis, the main hardware and software design introduces two major aspects of the system implementation. Hardware design includes MXT8051F04A minimum system circuit, power circuit, the serial port circuitry, SD card interface circuit. Program using C language under the Keil software write, debug, the program includes reading and writing SD card sector program, serial procedures of software modules. System realizes the SD card read and write sectors, meets the design requirements and objectives. Keywords: MXT8051F04A,SD Card,Keil 目 录 第1章 引言 1 1.1 选题背景 1 1.2 研究目标和意义 1 1.3 本文要完成的工作 1 第2章 单片机读写SD卡的硬件电路设计 3 2.1 系统硬件平台组成 3 2.2 电源模块 3 2.3 MXT8051F04A单片机最小系统电路设计 4 2.3.1 MXT8051F04A简介 4 2.3.2 晶振复位电路 8 2.4 SD卡电路设计 8 2.4.1 通讯模式 9 2.4.2 电平匹配 9 2.4.3 硬件接口设计 10 2.5 串口电路设计 12 2.6 PCB绘制 13 2.7 本章小结 14 第3章 单片机读写SD卡的软件设计 14 3.1 SD卡的扇区读写 14 3.1.1 模拟SPI协议 14 3.1.2 SD卡命令 15 3.1.3 SD卡的初始化 19 3.1.4 数据块的读写 20 3.2 串口程序 25 第4章 调试 26 4.1 系统硬件调试 26 4.2 软件调试 27 4.3 软硬件的联合调试 27 4.4 本章小结 29 第5章 结束语 30 5.1 总结 30 5.2 展望 30 参考文献 31 致谢 32 附

文档评论(0)

weizhuidaomengx + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档