下载

2下载券

加入VIP
  • 专属下载特权
  • 现金文档折扣购买
  • VIP免费专区
  • 千万文档免费下载

上传资料

关闭

关闭

关闭

封号提示

内容

首页 SD卡数据手册

SD卡数据手册.PDF

SD卡数据手册

UC65099686
2011-08-31 0人阅读 举报 0 0 暂无简介

简介:本文档为《SD卡数据手册pdf》,可适用于工程科技领域

SDCardAssociationSDMemoryCardSpecificationsPHYSICALLAYERSPECIFICATIONPartAprilSDGroupMatsushitaElectricIndustrialCo,Ltd(MEI)SanDiskCorporationToshibaCorporationVersionCONFIDENTIALSimplifiedVersionof:SDCardAssociationDONOTCOPY(c)(c)bySDGroup(MEI,SanDisk,Toshiba)SimplifiedVersionDate:AprilSDMemoryCardSpecificationsPartPhysicalLayerSpecificationVersionRevisionHistoryDateVersionChangescomparedtopreviousissueMarchth,BaseversionAprilth,DetaileddescriptionoftherevisionhistoryisgiveninthefullversionofSpecVerCopyright(C)(C)bySDGroup(MEI,SanDisk,Toshiba)Confidentiality:ThisdocumentisasimplifiedversionoftheoriginalThisversionisnotrequiredtobetreatedasconfidentialandReproductioninwholeorinpartisprohibitedwithoutpriorwrittenpermissionofSDGroupExemption:PublisherandCopyrightHolder:NonewillbeliableforanydamagefromuseofthisdocumentConditionsforpublication:SDGroup(MEI,SanDisk,Toshiba)NonDisclosureAgreementwithneithertheSDGroupnortheSDAisrequiredSDCardAssociationDONOTCOPY(c)(c)bySDGroup(MEI,SanDisk,Toshiba)SimplifiedVersionDate:AprilSDMemoryCardSpecificationsPartPhysicalLayerSpecificationVersionGeneraldescriptionSystemfeaturesSDMemoryCardSystemConceptBusTopologySDbusSPIbusBusProtocolSDbusSPIBusSDMemoryCardPinsandRegistersCompatibilitytoMultiMediaCardSDMemoryCardFunctionalDescriptionCardRegistersSDMemoryCardHardwareInterfaceSPIModeSDMemoryCardmechanicalspecificationCardpackageExternalsignalcontacts(ESC)DesignandformatReliabilityanddurabilityElectricalStaticDischarge(ESD)RequirementsQualityassuranceMechanicalformfactorSystem:cardandconnectorCardhotinsertionInverseinsertionCardOrientationThin(mm)SDMemoryCard(Preliminary)AppendixAbbreviationsandtermsSDCardAssociationDONOTCOPY(c)(c)bySDGroup(MEI,SanDisk,Toshiba)SimplifiedVersionDate:AprilSDMemoryCardSpecificationsPartPhysicalLayerSpecificationVersionGeneraldescriptionGeneraldescriptionSDMemoryCard(SecureDigitalMemoryCard)isamemorycardthatisspecificallydesignedtomeetthesecurity,capacity,performanceandenvironmentrequirementsinherentinnewlyemergingaudioandvideoconsumerelectronicdevicesTheSDMemoryCardwillincludeacopyrightprotectionmechanismthatcomplieswiththesecurityoftheSDMIstandardandwillbefasterandcapableforhigherMemorycapacityTheSDMemoryCardsecuritysystemusesmutualauthenticationanda"newcipheralgorithm"toprotectfromillegalusageofthecardcontentAnonesecuredaccesstotheuser‘sowncontentisalsoavailableThephysicalformfactor,pinassignmentanddatatransferprotocolareforwardcompatiblewiththeMultiMediaCardwithsomeadditionsTheSDMemoryCardcommunicationisbasedonanadvancedpininterface(Clock,Command,xDataandxPowerlines)designedtooperateinatmaximumoperatingfrequencyofMHzofandlowvoltagerangeThecommunicationprotocolisdefinedasapartofthisspecificationTheSDMemoryCardhostinterfacesupportsregularMultiMediaCardoperationaswellInotherwords,MultiMediaCardforwardcompatibilitywaskeptActuallythemaindifferencebetweenSDMemoryCardandMultiMediaCardistheinitializationprocessTheSDMemoryCardSpecificationsweredividedtoseveraldocumentsTheSDMemoryCarddocumentationstructureisgiveninFigureFigure:SDMemoryCardDocumentationStructure•SDMemoryCardAudioSpecification:Thisspecificationalongwithotherapplicationspecificationsdescribethespecificationofcertainapplication(inthiscaseAudioApplication)andtherequirementstoimplementit•SDMemoryCardFileSystemSpecification:DescribesthespecificationofthefileformatstructureofthedatasavedintheSDMemoryCard(inprotectedandunprotectedareas)•SDMemoryCardSecuritySpecification:Describesthecopyrightprotectionmechanismandtheapplicationspecificcommandsthatsupportit•SDMemoryCardPhysicalLayerSpecification(thisdocument):DescribesthephysicalinterfaceandthecommandprotocolusedbytheSDMemoryCardThepurposeoftheSDMemoryCardPhysicalLayerspecificationisthedefinitionoftheSDMemoryCard,itsenvironmentandhandlingThedocumentissplitupintoseveralportionsChaptergivesageneraloverviewofthesystemAudioSpecificationotherApplicationDocumentsFileSystemSpecificationSDMemoryCardPhysicalLayerSpec(ThisDocument)SDMemorySecurityCardSpecSDCardAssociationDONOTCOPY(c)(c)bySDGroup(MEI,SanDisk,Toshiba)SimplifiedVersionDate:AprilSDMemoryCardSpecificationsPartPhysicalLayerSpecificationVersionGeneraldescriptionconceptsThecommonSDMemoryCardcharacteristicsaredescribedinChapterAsthisdescriptiondefinesanoverallsetofcardproperties,werecommendtousetheproductdocumentationinparallelThecardregistersaredescribedinChapterChapterdefinestheelectricalparametersoftheSDMemoryCard’shardwareinterfaceChapterdescribesthephysicalandmechanicalpropertiesoftheSDMemoryCardsandtheminimalrecommendationstothecardslotsorcartridgesAsusedinthisdocument,“shall”or“will”denotesamandatoryprovisionofthestandard“Should”denotesaprovisionthatisrecommendedbutnotmandatory“May”denotesafeaturewhosepresencedoesnotprecludecompliance,thatmayormaynotbepresentattheoptionoftheimplementorSDCardAssociationDONOTCOPY(c)(c)bySDGroup(MEI,SanDisk,Toshiba)SimplifiedVersionDate:AprilSDMemoryCardSpecificationsPartPhysicalLayerSpecificationVersionSystemfeaturesSystemfeatures•Targetedforportableandstationaryapplications•Voltagerange:SDMemoryCardBasiccommunication(CMD,CMD,CMD,ACMD):VOthercommandsandmemoryaccess:VSDLVMemoryCard(lowvoltage)Operatingvoltagerange:V•Designedforreadonlyandreadwritecards•VariableclockrateMHZ•UptoMBytesecReadWriterate(usingparalleldatalines)•Maximumdataratewithuptocards•Correctionofmemoryfielderrors•Cardremovalduringreadoperationwillneverharmthecontent•ForwardcompatibilitytoMultiMediaCard•CopyrightsProtectionMechanismComplieswithhighestsecurityofSDMIstandard•PasswordProtectionofcards(option)•WriteProtectfeatureusingmechanicalswitch•Builtinwriteprotectionfeatures(permanentandtemporary)•CardDetection(InsertionRemoval)•Applicationspecificcommands•Comfortableerasemechanism•Protocolattributesofthecommunicationchannel:•SDMemoryCardthicknessisdefinedaseithermm(normal)andmm(ThinSDMemoryCard)SDMemoryCardCommunicationChannelSixwirecommunicationchannel(clock,command,datalines)ErrorprotecteddatatransferSingleorMultipleblockorienteddatatransferSDCardAssociationDONOTCOPY(c)(c)bySDGroup(MEI,SanDisk,Toshiba)SimplifiedVersionDate:AprilSDMemoryCardSpecificationsPartPhysicalLayerSpecificationVersionSDMemoryCardSystemConceptSDMemoryCardSystemConceptTheSDMemoryCardprovidesapplicationdesignerswithalowcostmassstoragedevice,implementedasaremovablecard,thatsupportshighsecuritylevelforcopyrightprotectionandacompact,easytoimplementinterfaceSDMemoryCardscanbegroupedintoseveralcardclasseswhichdifferinthefunctionstheyprovide(givenbythesubsetofSDMemoryCardsystemcommands):•ReadWrite(RW)cards(Flash,OneTimeProgrammableOTP,MultipleTimeProgrammableMTP)Thesecardsaretypicallysoldasblank(empty)mediaandareusedformassdatastorage,enduserrecordingofvideo,audioordigitalimages•ReadOnlyMemory(ROM)cardsThesecardsaremanufacturedwithafixeddatacontentTheyaretypicallyusedasadistributionmediaforsoftware,audio,videoetcIntermsofoperatingsupplyvoltage,twotypesofSDMemoryCardsaredefined:•SDMemoryCardswhichsupportsinitializationidentificationprocesswitharangeofvandoperatingvoltagewithinthisrangeasdefinedintheCSDregister•SDLVMemoryCardsLowVoltageSDMemoryCards,thatcanbeoperateinvoltagerangeofVTheSDLVMemoryCardswillbelabeleddifferentlythenSDMemoryCardsSDMemoryCardsystemincludestheSDMemoryCard(orseveralcards)thebusandtheirHostApplicationTheHostandApplicationspecificationisbeyondthescopeofthisdocumentThefollowingsectionsprovidesanoverviewofthecard,bustopologyandcommunicationprotocolsoftheSDMemoryCardsystemThecopyrightprotection(security)systemdescriptionisgivenin“SDMemoryCardSecuritySpecification”documentBusTopologyTheSDMemoryCardsystemdefinestwoalternativecommunicationprotocols:SDandSPIApplicationscanchooseeitheroneofmodesModeselectionistransparenttothehostThecardautomaticallydetectsthemodeoftheresetcommandandwillexpectallfurthercommunicationtobeinthesamecommunicationmodeTherefore,applicationswhichusesonlyonecommunicationmodedonothavetobeawareoftheotherSDCardAssociationDONOTCOPY(c)(c)bySDGroup(MEI,SanDisk,Toshiba)SimplifiedVersionDate:AprilSDMemoryCardSpecificationsPartPhysicalLayerSpecificationVersionSDMemoryCardSystemConceptSDbusFigure:SDMemoryCardsystembusTopologyTheSDbusincludesthefollowingsignals:CLK:HosttocardclocksignalCMD:BidirectionalCommandResponsesignalDATDAT:BidirectionaldatasignalsVDD,VSS,VSS:PowerandgroundsignalsTheSDMemoryCardbushasasinglemaster(application),multipleslaves(cards),synchronousstartopology(refertoFigure)Clock,powerandgroundsignalsarecommontoallcardsCommand(CMD)anddata(DATDAT)signalsarededicatedtoeachcardprovidingcontinuespointtopointconnectiontoallthecardsDuringinitializationprocesscommandsaresenttoeachcardindividually,allowingtheapplicationtodetectthecardsandassignlogicaladdressestothephysicalslotsDataisalwayssent(received)to(from)eachcardindividuallyHowever,inordertosimplythehandlingofthecardstack,aftertheinitializationprocess,allcommandsmaybesentconcurrentlytoallcardsAddressinginformationisprovidedinthecommandpacketSDbusallowsdynamicconfigurationofthenumberofdatalinesAfterpowerup,bydefault,theSDMemoryCardwilluseonlyDATfordatatransferAfterinitializationthehostcanchangethebuswidth(numberofactivedatalines)ThisfeatureallowseasytradeoffbetweenHWcostandsystemperformanceNotethatwhileDATDATarenotinuse,therelatedHost’sDATlinesshouldbeintristate(inputmode)SDMemoryCard(A)CLKVddVssDD,CMDSDMemoryCard(B)CLKVddVssDD,CMDMultiMediaCard(C)CLKVddVssD,CS,CMDCLKVddVssD(A),CMD(A)D(B),CMD(B)D(C)CMD(C)HOSTDDNotConnectedSDCardAssociationDONOTCOPY(c)(c)bySDGroup(MEI,SanDisk,Toshiba)SimplifiedVersionDate:AprilSDMemoryCardSpecificationsPartPhysicalLayerSpecificationVersionSDMemoryCardSystemConceptSPIbusTheSPIcompatiblecommunicationmodeoftheSDMemoryCardisdesignedtocommunicatewithaSPIchannel,commonlyfoundinvariousmicrocontrollersinthemarketTheinterfaceisselectedduringthefirstresetcommandafterpowerupandcannotbechangedaslongasthepartispoweredonTheSPIstandarddefinesthephysicallinkonly,andnotthecompletedatatransferprotocolTheSDMemoryCardSPIimplementationusesthesamecommandsetoftheSDmodeFromtheapplicationpointofview,theadvantageoftheSPImodeisthecapabilityofusinganofftheshelfhost,hencereducingthedesigninefforttominimumThedisadvantageisthelossofperformance,relativelytotheSDmodewhichenablesthewidebusoptionTheSDMemoryCardSPIinterfaceiscompatiblewithSPIhostsavailableonthemarketAsanyotherSPIdevicetheSDMemoryCardSPIchannelconsistsofthefollowingfoursignals:CS:HosttocardChipSelectsignalCLK:HosttocardclocksignalDataIn:HosttocarddatasignalDataOut:CardtohostdatasignalAnotherSPIcommoncharacteristicarebytetransfers,whichisimplementedinthecardaswellAlldatatokensaremultiplesofbytes(bit)andalwaysbytealignedtotheCSsignalFigure:SDMemoryCardsystem(SPImode)bustopologyThecardidentificationandaddressingmethodsarereplacedbyahardwareChipSelect(CS)signalTherearenobroadcastcommandsForeverycommand,acard(slave)isselectedbyassertingSDMemoryCARD(A)(SPImode)VddVssCLK,DataIN,DataOutSDMemoryCARD(B)(SPImode)VddVssMultiMediaCardCARD(C)(SPImode)VddVssCLK,DataIN,DataOutVddVssCLK,DataIN,DataOutHOSTCLK,DataIN,DataOutCSCS(B)CSCS(A)CSCS(C)SDCardAssociationDONOTCOPY(c)(c)bySDGroup(MEI,SanDisk,Toshiba)SimplifiedVersionDate:AprilSDMemoryCardSpecificationsPartPhysicalLayerSpecificationVersionSDMemoryCardSystemConcept(activelow)theCSsignal(seeFigure)TheCSsignalmustbecontinuouslyactiveforthedurationoftheSPItransaction(command,responseanddata)Theonlyexceptionoccursduringcardprogramming,whenthehostcandeasserttheCSsignalwithoutaffectingtheprogrammingprocessTheSPIinterfaceusestheoutoftheSDsignals(DATandDATarenotused,DATistheCSsignal)oftheSDbusBusProtocolSDbusCommunicationovertheSDbusisbasedoncommandanddatabitstreamswhichareinitiatedbyastartbitandterminatedbyastopbit•Command:acommandisatokenwhichstartsanoperationAcommandissentfromthehosteithertoasinglecard(addressedcommand)ortoallconnectedcards(broadcastcommand)AcommandistransferredseriallyontheCMDline•Response:aresponseisatokenwhichissentfromanaddressedcard,or(synchronously)fromallconnectedcards,tothehostasananswertoapreviouslyreceivedcommandAresponseistransferredseriallyontheCMDline•Data:datacanbetransferredfromthecardtothehostorviceversaDataistransferredviathedatalinesFigure:“noresponse”and“nodata”operationsCardaddressingisimplementedusingasessionaddress,assignedtothecardduringtheinitializationphaseThestructureofcommands,responsesanddatablocksisdescribedinChapterThebasictransactionontheSDbusisthecommandresponsetransaction(refertoFigure)ThistypeofbustransactionstransfertheirinformationdirectlywithinthecommandorresponsestructureInaddition,someoperationshaveadatatokenDatatransferstofromtheSDMemoryCardaredoneinblocksDatablocksalwayssucceededbyCRCbitsSingleandmultipleblockoperationsaredefinedNotethattheMultipleBlockoperationmodeisbetterforfasterwriteoperationAmultipleblocktransmissionisterminatedwhenastopcommandfollowsontheCMDlineDatatransfercanbeconfiguredbythehosttousesingleormultipledatalinescommandcommandresponseoperation(noresponse)operation(nodata)CMDDATfromhosttocard(s)fromhosttocardfromcardtohostSDCardAssociationDONOTCOPY(c)(c)bySDGroup(MEI,SanDisk,Toshiba)SimplifiedVersionDate:AprilSDMemoryCardSpecificationsPartPhysicalLayerSpecificationVersionSDMemoryCardSystemConceptFigure:(Multiple)BlockreadoperationTheblockwriteoperationusesasimplebusysignalingofthewriteoperationdurationontheDATdataline(seeFigure)regardlessofthenumberofdatalinesusedfortransferringthedataFigure:(Multiple)BlockwriteoperationCommandtokenshavethefollowingcodingscheme:Figure:CommandtokenformatEachcommandtokenisprecededbyastartbit(‘’)andsucceededbyanendbit(‘’)ThetotallengthisbitsEachtokenisprotectedbyCRCbitssothattransmissionerrorscanbedetectedandtheoperationmayberepeatedcommandresponsecommandresponseblockreadoperationdatastopoperationCMDDATfromhosttocardstopcommandstopsdatatransferdatafromcardtohostfromcardtohostdatablockcrcdatablockcrcdatablockcrcmultipleblockreadoperationcommandresponsecommandresponseblockwriteoperationdatastopoperationCMDDATfromhosttocardstopcommandstopsdatatransferdatafromhosttocardfromcardtohostdatablockcrcdatablockcrcmultipleblockwriteoperationbusybusycrcokresponseandbusyfromcardCONTENTtotallength=bitsstartbit:always’’transmitterbit:’’=hostcommandendbit:always‘’Commandcontent:commandandaddressinformationorparameter,protectedbybitCRCchecksumCRCSDCardAssociationDONOTCOPY(c)(c)bySDGroup(MEI,SanDisk,Toshiba)SimplifiedVersionDate:AprilSDMemoryCardSpecificationsPartPhysicalLayerSpecificationVersionSDMemoryCardSystemConceptResponsetokenshavefourcodingschemesdependingontheircontentThetokenlengthiseitherorbitsThedetailedcommandsandresponsedefinitionisgiveninChapterTheCRCprotectionalgorithmforblockdataisabitCCITTpolynomialAllusedCRCtypesaredescribedinChapterFigure:ResponsetokenformatIntheCMDlinetheMSBbitistransmittedfirsttheLSBbitisthelastwhenthewidebusoptionisused,thedataistransferredbitsatatime(refertoFigure)Startandendbits,aswellastheCRCbits,aretransmittedforeveryoneoftheDATlinesCRCbitsarecalculatedandcheckedforeveryDATlineindividuallyTheCRCstatusresponseandBusyindicationwillbesentbythecardtothehostonDATonly(DATDATduringthatperiodaredon’tcare)Figure:DatapacketformatCONTENTtotallength=bitsstartbit:

用户评价(0)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

文档小程序码

使用微信“扫一扫”扫码寻找文档

1

打开微信

2

扫描小程序码

3

发布寻找信息

4

等待寻找结果

我知道了
评分:

/32

SD卡数据手册

VIP

在线
客服

免费
邮箱

爱问共享资料服务号

扫描关注领取更多福利