最新消息:服务器现已从linode换到fzhost.net,且主题已从retina 0.2换为大前端D8

【整理】嵌入式外设之SD/MMC

SD/MMC crifan 27浏览 0评论

最后更新:2013-11-11

TODO:

1.整理SD的各种类型:

MMC
RS-MMC
MMCplus
SecureMMC
SDIO
SD
miniSD
microSD

2.以及SD本身根据速度还分:SDHC,SDXC等。


SD/MMC简介

常见的外设接口之一。

现在比较流行的手机,Android手机中,常常就支持再插入一个外接存储卡,就是SD卡。

只不过是小型接口的MicroSD。

 

SD/MMC的名称解释

之所以常常看到,把SD和MMC连在一起叫。

那是因为:

SD接口,算是MMC接口的升级版,

理论上,SD接口和更早的MMC接口是兼容的。

所以,可以看做是同样的物理上的一个接口

所以一般是把SD和MMC连在一起叫:

SD/MMC接口

 

 

SD/MMC的物理外形和接口说明

 

MMC卡长啥样

先上图,看看常见的MMC卡,是什么样的:

正面:

what looklike for common mmc card front

注:最下面那个是MMC卡的插槽

反面:

what looklike for common mmc card back

 

 

SD卡长啥样

再来看看SD卡长啥样:

common sd card looklike what

另外,还有一个小型的SD卡,叫做MicroSD,其明显小了一号

对应的可以通过普通的SD卡的卡套,变成和普通SD类似的效果:

micro sd card and adapter

 

MMC和SD卡引脚说明

直接上图:

sd mmc pins comparation

真实的SD卡和MMC卡,背面对比:

real sd vs mmc card

再加一个,带引脚说明的对比图:

sd card and mmc card pins name function

很明显:

MMC和SD,在接口上,都还是很类似,很兼容的。

对应的,SD和MMC的接口的名称和含义,

如下:

MMC卡的引脚名称和功能

对应的,MMC,分MMC模式和SPI模式,引脚和功能,不太一样:

 

MMC卡模式(MultiMedia Card mode)时的MMC引脚名称和功能

PinSignalDescription
1RSV NCNot connected or Always ?1? (data 3?)
2CMD I/OCommand/Response
3VSS1 SSupply Voltage Ground
4VDD SSupply Voltage
5CLK IClock
6VSS2 SSupply Voltage Ground
7DAT0 I/OPP Data 0

 

SPI模式时的MMC引脚名称和功能

PinSignalDescription
1CSChip select (neg. true)
2DIDATA in
3VssGround
4VccPower supply
5SCLKClock
6Vss2Ground
7DODATA out

 

SD卡的引脚名称和功能

SD卡,也分对应的SD模式和SPI模式

PinSD ModeSPI Mode
NameTypeDescriptionNameTypeDescription
1CD/DAT3I/O/PPCard detection / Connector data line 3CSIChip selection in low status
2CMDPPCommand/Response lineDIIData input
3Vss1SGNDVSSSGND
4VddSPower supplyVDDSPower supply
5CLKIClockSCLKIClock
6Vss2SGNDVSS2SGND
7DAT0I/O/PPConnector data line 0DOO/PPData output
8DAT1I/O/PPConnector data line 1RSV  
9DAT2I/O/PPConnector data line 2RSV  

 

 

SD卡或MMC卡在卡Card的模式时的引脚功能说明

 

Pin No.NameTypeExplanation
1CD/DAT3Input/Output using push pull driversAfter power up this line is input with 50 kOhm pull-up. This can be used for card detection. Relevant only for SD cards, pull-up resistor is disabled after initialization procedure for using this line as DATA3 line for data transfer.
2CMDPush PullThis is a bi-directional line. It is a bidirectional command channel used for card initialization and data transfer commands. The CMD signal has two operation modes: open-drain for initialization mode and push-pull for fast command transfer. Commands are sent from the MultiMediaCard bus master (card host controller) to the card and responses from the cards to the host.
3VssPower supplySupply voltage ground.
4VddPower supplySupply voltage.
5CLKInputWith each cycle of this signal an one bit transfer on the command and data lines is done. The frequency may vary between zero and the maximum clock frequency.
6Vss2Power supplySupply voltage ground.
7DAT[0]Input/Output using push pull driverDAT is a bidirectional data channel. The DAT signal operates in push-pull mode. Only one card or the host is driving this signal at a time. Relevant only for SD cards: On data transfer, this line is DATA 0.
8DAT[1]Input/Output using push pull driversOn MMC card this line does not exist. Relevant only for SD cards: On data transfer, this line is DATA 1.
9DAT[2]Input/Output using push pull driversOn MMC card this line does not exist. Relevant only for SD cards: On data transfer, this line is DATA 2.

 

SD卡或MMC卡在SPI模式时的引脚功能说明

 

Pin No.NameTypeExplanation
1CSInputChip Select sets the card active at low level and inactive at high level.
2Data InInputData In is seen from the card, therefore data transmitted to the card will be received from this line.
3VssSupply groundSupply voltage ground.
4VddSupply voltageSupply voltage.
5SCLKInputClock signal must be generated by the target system.
The card is always in slave mode.
6Vss2Supply groundSupply voltage ground.
7Data OutOutputData Out is seen from the card. Data transferred to host will be sent by card from this line.
8ReservedNot used
9ReservedNot used

 

总结

SD/MMC,还是使用的很广泛的。

 

其他资料

之前收集的,供参考:

基于S3C2410的SD卡linux驱动工作原理

SD和MMC记忆卡介面技术[ZT]

High Capacity for SD Family

SD Card Specifications

和刚才参考的:

http://en.wikipedia.org/wiki/MultiMediaCard

SD-, SDHC- und MMC-Karten an AVR anschließen

How to Use MMC/SDC

MultiMedia Card (MMC) pinout

Secure Digital (SD) card pinout

Driver SD, SDHC & MMC

转载请注明:在路上 » 【整理】嵌入式外设之SD/MMC

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
51 queries in 0.418 seconds, using 12.68MB memory