期刊文献+

STM32单片机的SD卡存储器读写模块设计 被引量:17

Design of SD Card Read-write Module Based on STM32
下载PDF
导出
摘要 为了满足氢气加气机在使用过程中大量数据的存储要求,设计了一种利用SD卡来扩展存储的电路模块。在兼顾稳定性与读写速度的基础上,利用STM32单片机与SD卡存储器件的接口技术,把SD卡的读写以及FatFS文件系统的读取写入移植到此单片机上。在读写的过程中,使用Windows中通用的文件系统使最终存储在SD卡的数据可以直接被PC机读取,使开发利用有更好的扩展性,取得了良好的效果。硬件设计方面利用单片机的SPI接口,只需要4个I/O口再加上几个上拉电阻就可实现与SD卡的接口电路,软件设计方面利用IAR嵌入式集成开发环境和移植STM32库函数,并使用开源的FatFS文件系统模块源代码实现单片机SD卡的读写编程。 In order to meet the large data storage requirements of the hydrogen dispenser in use,a circuit module that uses SD card to expand storage is designed.Based on the balance between stability and reading and writing speed,the interface technology of STM32 microcontroller and SD card storage device are used to transplant SD card read and write and FatFS file system read and write to this microcontroller.In the process of read and write,the general file system in Windows is used,so that the data finally stored in the SD card can be directly read by the PC,the development and utilization have better scalability and achieved good results.The hardware design uses the SPI interface of the single-chip microcomputer,only four I/O ports and a few pull-up resistors can be used to achieve the interface circuit with the SD card.The software design uses the IAR embedded integrated development environment and transplantation of STM32 library functions,and use the source code of the open source FatFS file system module to realize the programming of the read and write of the SD card of the single chip microcomputer.
作者 汤才刚 刘京京 沈瑞东 Tang Caigang;Liu Jingjing;Shen Ruidong(Shanghai Sunwise Energy Systems Co.,Ltd.,Shanghai 201806,China)
出处 《单片机与嵌入式系统应用》 2020年第12期75-78,83,共5页 Microcontrollers & Embedded Systems
基金 上海市科学技术委员会科研计划项目(19DZ1206100)。
关键词 STM32单片机 SPI接口 SD卡 FatFS文件系统 STM32 microcontroller SPI interface SD card FatFS file system
  • 相关文献

参考文献8

二级参考文献44

共引文献32

同被引文献132

引证文献17

二级引证文献19

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部