
2018年第4期(总第244期)
doi:10.3969/j. issn. 1009 3230. 2018. 04. 012
应用能源技术
一种改进的基于S3C2440的SD卡控制器的设计
李冰玉,赵安,孟庆铂
(天津理工大学中环信息学院,天津300380)
摘要:文中在分析SD卡控制器的基础上,讲述了SD卡的接口电路和SD卡的接口模式,并且设计了允许4条数据线高速传输的SD接口模式,最后运用ADS1.2集成开发环境验证了基于S3C2440的SD卡控制器对SD卡的读写功能。
关键词:S3C2440处理器;SD卡
中图分类号:TP183
文献标志码:A
文章编号:10093230(2018)04004503
AnImprovedDesignofSDCardControllerDasedonS3C2440
LI Bing -yu, ZHAO An, MENG Qing bo
(Zhonghuan Information College Tianjin University of Technology, Tianjin 300380, China)
45
Abstract: In the basis of analysis of SD card controller, the design describes the interface circuit of SD card and the interface mode SD card, and the design of the SD interface mode allows 4 data lines for high - speed transmission, finally using ADS1. 2 integrated development environment, verify
reading and writing function of the SD card controller based on S3C2440 Key words:S3C2440 processor; SD card
0
基于S3C2440的SD卡控制器硬件设计
0.1S3C2440的SD卡接口电路
如图1所示SD卡的7、8、9、1、2、5引脚与 S3C2440的SDIO接口的SDDATA[0:3]、SDCMD 和SDCLK相连接,引脚3和6接地,引脚4接 3.3V的电压。SD卡的数据和命令线用上拉电阻。
S3C2440的SD卡兼容SD存储卡(1.0版):兼容SDIO卡(1.0版);16字的FIFO(FirstInput FirstOutput,先人先出队列)寄存器,用于接收/发送数据40位的CMD寄存器;136位的Resp寄存器;8位的预分频逻辑电路(Freq=SystemClock/(P+1)),支持普通和DMA(DirectMemoryAc
收稿日期:20180128
修订日期:20180305
作者简介:李冰玉(1977-),男,天津理工大学中环信息学
院,讲师,硕士,研究方向为智能产品设计。
万方数据
SDLK
R8
SPDATAO
VDD3.3V
R6
R7 GND
106
GND
图1SD卡接口电路
cess,直接存储器存取)传送模式;1位或4位线宽模式,区块/串流的传输模式。文中将运用SD总线模式来进行操作。
0.2S3C2440的SD控制器模块
SD控制器由外设总线模块、CMD寄存器、