版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、MultiMediaCardsMMCA Seminar Technical PresentationTaipei, Sept. 20031Contents-MultiMediaCard Architecture-MultiMediaCard Command-MultiMediaCard Initialization-MultiMediaCard Register2MultiMediaCard Architecture3System feature-1- Multiple MultiMediaCard can be connected to one physical bus.30 pcs max
2、.- Variable clock frequency 0 to 20MHz(up to 10 cards for max data rate)- Transfer data size is changeable. 1 byte to 2,048 bytes ( for Read )4System feature-2- System voltage rangeHigh voltage MMC : 2.7-3.6vLow voltage MMC:1.65-1.95v, 2.7-3.6v- Two form factorsNormal size:24mm x 32mm x 1.4mm 24mm x
3、 18mm x 1.4mmReduced size :RS-MMCMMCRS-MMC adapter5System feature-3Two operation mode-MMC mode (Primary)3 pins serial bus-SPI mode (Secondary)3 pins serial bus + Chip select pinThese 2 modes are independent in each.After Card is powered on , card executes the initialization procedure and the mode is
4、 set with the level of #1 pin at the powered on. To change the mode another power cycle is required.6Pin description7654321MMC modeSPI modePin No.NameDescription1RSV2CMDCommand/Response3VSS1GND4VDD1VCC5CLKClock6VSS2GND7DATData in/outAfter power on card is set as MMC mode as default.7NameDescriptionC
5、SChip selectDIData inVSSGNDVDDVCCSCLKClockVSS2GNDDOData outComparison table of MMC and SPI mode8MMC I/FSPII/FComparison of system specificationInterface3 pins serial bus (CLK,CMD,DAT)3 pins serial bus + CS (CLK,DI,DO & CS)Frequency0-20MHz0-20MHzCard SelectionCard is selected by MMC bus protocol.
6、 Host sends the relative card address stoelect the card which has the same one.Card is selected by the CS signal.Access modeSingle block access, Multiple block access Stream accessSingle block accessMulti block access ( from Ver.3.1)Pin ArrangementPin No.NameTypeDescriptionNameTypeDescription1RSVNCC
7、SInputChip select2CMDI/O Push-pull/ Open-drainCommand/ResponseDIInputPush-pullData in3VSS1GNDVSSGND4VDD1VCCVDDVCC5CLKInputClockSCLKInputClock6VSS2GNDVSS2GND7DATI/O Push-pullData in/outDOOutputPush-pullData outGeneral function description# Card Identification mode #The host will be in card identifica
8、tion mode after reset and while it is looking for new cards on the bus. Card will be in this mode after reset until the SET_RCA command (CMD3) is received.# Data transfer mode #Card will enter data transfer mode once an RCA is assigned to them. The host will enter data transfer mode after identifyin
9、g all the cards on the bus.9MMC (MultiMediaCard) modeControl CMD signal/DAT signal synchronized with CLK signal.VccCMD pin is the bi-directional pin. At first the command signal is input to the card through CMD line by host. Then respond data is output to the host through CMD line by card.RcsRDATRCM
10、DCMDDAT CLKHostDAT pin is the bi-directional pin. Read data is output to host through DAT line by card. Write data is input to the card through CMD line by host.1 23 4 5 6 7 There is no chip select pin.Single block access, Multiple block access and stream access are supported.10MMC mode data transfe
11、rRead(2)Card to host(1)Host to card(1)Host to card(3)Data outResponseCommandCommandCMDDATDATAWrite(1)Host to card(2)Card to host(1)Host to card(3)Data inCommandResponseCommandCMDDATADAT11SPI modeVccControl CMD signal/DAT signal synchronized with CLK signal.HostRcsRDINRDOUTData is input to DI (data i
12、n) pin and output from DO (data out) pin.Dout CLKDinThere is CS pin for chip select.Single block access and Multi block access is supported.CS1 23 4 5 6 7 12SPI mode data transferRead(1)Host to card(2)Card to host(1)Host to card(3)Data outCommandCommandData InResponseData OutDATAWrite(1)Host to card
13、(1)Host to card(3)Data in(2)Card to hostCommandCommandData InDATAResponseData Out13Access mode (for MMC mode)Stream access commandData read/write from the beginning to the end with only onezcEomxammapnled.of stream readCMD11Multiple block access commandCMD12Data read/write of the multiple block with
14、 only one command.CRC* interruptionisoccurred at the end of each block.zExample of multiple block readCMD18CRCCRCCRCCRCCRCCMD12Single block access commandData read/write of the single block with command.zExample of single block readCRC CMD17CRC CMD17CRC CMD17CRC CMD17CRCCMD17* CRC: Cyclic redundancy
15、 code14DATADATADATADATADATADATADATADATADATADATADATADATADATADATADATAMultiMediaCard Command15Command formatCommand consists of 48 bits (6 Bytes)Serial Data16Bit position474645:4039:87:10Width (bits)1163271Value01XXX1DescriptionStart bittransmissionbitcommandindexargumentCRC7end bit47-0MMC mode command
16、er17CMDindexArgumentCommand descriptionCMD0GO_IDLE_STATEResets all cards to idle stateCMD1CEND_OP_CONDAsks all cards in idle state to send their operation conditions register contents in the response“ on the CM”.D lineCMD2ALL_SEND_CIDAsk all cards to send their CID numbers on the CMD lineCMD3SET_REL
17、ATIVE_ADDRAssigns relative address to the cardCMD4SET_DSRPrograms the DSR of all cardsCMD7SELECT/DESELECT_CARDCommand toggles a card between the stand-by and transfer states or between the programming and disconnect status. In both cases the card is selected by its own relative address and gets dese
18、lected by any other address.CMD9SEND_CSDAddressed card sends its card-specific data (CSD) on the CMD line.CMD10SEND_CIDAddressed card sends its card identification (CID) on CMD line.CMD11READ_DAT_UNTIL_STOP Reads data stream from the card, starting at the given address, until a STOP_TRANSMISSION fol
19、lows.CMD12STOP_TRANSMISSIONTerminates a read/write stream/multiple block operation. When CMD12 is used to terminate a read transaction the card will respond with R1. When it is used to stop a write transaction the card will respond with R1b.CMD13SEND_STATUSAddressed card sends its status register.CM
20、D15GO_INAVTIVE_STATESets the card to inactive state in order to protect the card stack against communication breakdowns.CMD16SET_BLOCKLENSets the block length ( in bytes) for all following block commands (read and write).CMD17READ_SINGLE_BLOCKReads a block of the size selected by the SET_BLOCKLEN co
21、mmandCMD18READ_MULTIPLE_BLOCKContinuously transfers data blocks from card to host until interrupted by a stop command or the requested numb of data block transmittedCMD20WRITE_DAT_UNTIL_STOPWrite data stream from the host, starting at the given address, until a STOP_TRANSMISSION follows.MMC mode com
22、mand.d18CMDindexArgumentCommand descriptionCMD23SET_BCLOC_COUNTDefine the number of blocks which are going to be transferred in the immediately succeeding multiple block read or write commandCMD24WRITE_BLOCKWrite a block of the size selected by the SET_BLOCKLEN command“”.CMD25WRITE_MULTIPLE_BLOCKCon
23、tinuously writes blocks of data until a STOP_TRANSMISSION follows or the requested number of blockCMD26PROGRAM_CIDreceivedProgramming of the card identification registerCMD27PROGRAM_CSDProgramming of the programmable bits of the CSDCMD28SET_WRITE_PROTIf the card has write protection features, this c
24、ommands sets the write protection bit of the address group.CMD29CLR_WRITE_PROTIf the card has write protection features, this commands clears the write protection bit of the address group.CMD30SEND_WRITE_PROTIf the card provides write protection features, this command asks the card to send the statu
25、s of the protection bitsCMD35ERASE_GROUP_STARTSets the address of the first erase group within a range to be selected for eraseCMD36ERASE_GROUP_ENDSets the address of the last erase group within a continuous range to be selected or eraseCMD38ERASEErase all previously selected write blocksCMD39FAST_I
26、OUsed to write and read 8 bit (register) data fields. The command addresses a card and a register and provides the data for writing if the write flag is set.CMD40GO_IRQ_STATESets the system unto interrupt modeCMD42LOCK_UNLOCKUsed to set/reset the password or lock/unlock the card.CMD55APP_CMDIndicate
27、s to the card that the next command is an application specific command rather than a standard commanCMD56GEN_CMDUsed either to transfer a data block to the card or to get a data block from the card for general purpose/application specific commandsSPI mode commander.19CMDindexArgumentCommand descript
28、ionCMD0GO_IDLE_STATEResets the cardCMD1CEND_OP_CONDActivates the cards initialization“”.CMD9SEND_CSDAsks the selected card to send its card specific data (CSD)CMD10SEND_CIDAsks the selected card to send its card identification (CID)CMD12STOP_TRANSMISSIONStop transmission on multiple block readCMD13S
29、END_STATUSAsks the selected card to send its status registerCMD16SET_BLOCKLENSelects a block length for all following block commandsCMD17READ_SINGLE_BLOCKRead a block of the size selected by the SET_BLOCKLEN commandCMD18READ_MULTIPLE_BLOCKContinuously transfers data blocks from card to host until in
30、terrupted by a stop command or the requested numb of data block transmittedCMD23SET_BLOCK_COUNTDefines the number of blocks which are going to be transferred in the immediately exceeding multiple block r/w.CMD24WRITE_BLOCKWrite a lock of the size selected by the SET_BLOCKLEN commandCMD25WRITE_MULTIP
31、LE_BLOCKContinuously writes blocks of data until a stop tran token or the requested number of blocks receivedCMD27PROGRAM_CSDProgramming of the programmable bits of the CSDCMD28SET_WRITE_PROTIf the card has write protection features, this commands sets the write protection bit of the address group.C
32、MD29CLR_WRITE_PROTIf the card has write protection features, this commands clears the write protection bit of the address group.CMD30SEND_WRITE_PROTIf the card provides write protection features, this command asks the card to send the status of the protection bitsCMD35TAG_ERASE_GROUP_STARSeTts the a
33、ddress of the first erase group within a range to be selected for eraseSPI mode commandd20CMDindexArgumentCommand descriptionCMD36TAG_ERASE_GROUP_ENDSets the address of the last erase group within a continuous range to be selected or eraseCMD38ERASEErase all previously selected write blocksCMD42LOCK
34、_UNLOCKUsed to set/reset the password or lock/unlock the card.CMD55APP_CMDIndicates to the card that the next command is an application specific command rather than a standard commanCMD56GEN_CMDUsed either to transfer a data block to the card or to get a data block from the card for general purpose/
35、application specific commandsCMD58READ_OCRReads the OCR register of a cardCMD59CRC_ON_OFFTurns the CRC option on or off.MultiMediaCard Initialization21MMC mode / SPI mode setMMC Mode1) Reset command:(CMD0)high.Execute the soft reset. #1 pin must be2) Operation voltage check:(CMD1)range.Read OCR regi
36、ster and set the voltage3) Card ID data read:(CMD2)Get the Unique ID in the CID.4) Card address set:SPI mod(CeMD3)Set RCA for each cards.1) Reset command:(CMD0) Execute the soft reset. #1 pin must below.22Card identification ModePower onCMD2to all MMCIdle state(MMCNomode)Detect the CID data outSPI m
37、odeMMCmodeYesCMD0CS signal = lowCMD1Identification stateget the operation voltage of hostSPI modeNoIf OCR meet the voltage of hostInactive stateAny command can not be respondedYesBusyIf all MMC OK ?Card identification modeReadyReady statData transfer modeeStandby state23Get and set the operation vol
38、tageSet the relative card addressGet the card identification dataFinish the identification of all MMCThe MMC which is set RCA comes into standby state and doesnt respond CMD2 and CMD3 any more.CMD3Set RCAState Diagram (Data Transfer Mode)Card-identification mode (Open drain)Power onData-transfer mod
39、e(Push pull)From all states in data-transfer modeCard is busy or host omitted voltage rangeIdle stateCMD0From all states except Inactive stateNo state transition in data-transfer modeSending-data stateReady stateCMD15Card looses busInactive stateCard wins busIdentification stateCMD3CStand-by stateCM
40、D7Transfer stateCMD42,25Receive-data stateCMD7Disconnect stateProgramming stateCMD724CMD12 or“transfer end”CMD28,29,38CMD20,24,25,26,27,42“operation complete”CMD9,10“operation complete”MD16,32.37CMD7CMD11,17,18,30CMD12“operationcomplete”CMD13CMD2CMD1MultiMediaCard Register25OCR RegisterSetting the o
41、perating voltage rangen Command: CMD1n Register width:(Check operating voltage range.)32-bitn Definition of operating voltage range:1.65V to 3.6V“1”data :operation voltage“0”data :out of operation voltage26MultiMedOCR FieldExample for 2.7v-3.6vNote : above is the definition of MMCA specificationVer.
42、3.327OCR sliceFieldValueMSBLSBD31Card Power Up Status Bit (BUSY)0D30.240D233.5-3.6V1D223.4-3.5V1D213.3-3.4V1D203.2-3.3V1D193.1-3.2V1D183.0-3.1V1D172.9-3.0V1D162.8-2.9V1D152.7-2.8V1D142.6-2.7V0D132.5-2.6V0D122.4-2.5V0D112.3-2.4V0D102.2-2.3V0D92.1-2.2V0D82.0-2.1V0D71.65-1.95v0CID RegisterCommand: CMD2
43、 or CMD10 (Read CID)Register width: Read only.Data is written by card manufacture.128 bitCID Field *Manufactured ID is registered by MMCA28NameFieldWidthCID-sliceMSBLSBManufacture ID *MID8127:120OEM/Application IDOID16119:104Product NamePMN48103:56Product RevisionPRV855:48Product Serial NumberPSN324
44、7:16Manufacturing dateMDT815:8CRC7CRC77:1END_Bit10:0MultiMedCSD RegisterProvides information on how to access the card contentn Command: CMD9(Read CSD)n Register width:128-bitn Read / Write (some bit)29CSD Field30FieldWidthCID-sliceTypeMSBLSBNameCSD structureCSD_STRUCTUR2127:126Read only Spec versio
45、nSPEC_EVERS4125:122Read only2121:120Read onlyData read access-time-TAAC8119:112Read onlyData r1ead access-time-2 in CLK cyclesNSAC8111:104Read onlyMAX d(aNtAa Ctr*a1n0s0f)er rateTRAN_SPEED8103:96Read onlyCard command classesCCC1295:84Read onlyMAX. read data blockREAD_BLK_LEN483:80Read onlyPartialebnlogcthks for readREAD_BLK_PARTI179:79Read onlyWrite abllloocwkedWRITEALBLK MISALI178:78Read onlyRead bmloiscaklignmentREADGBNLK MISALIG177:77Read on
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 《癌癥疼痛診療規(guī)范》課件
- 《孔子的簡(jiǎn)介》課件
- 人物訪(fǎng)談報(bào)告培訓(xùn)課件
- 單位管理制度集合大合集員工管理十篇
- 單位管理制度集粹匯編人事管理篇十篇
- 單位管理制度匯編大合集人力資源管理篇十篇
- 《神經(jīng)收集電子教案》課件
- 單位管理制度分享匯編【人力資源管理】
- 單位管理制度范例選集職員管理篇
- 單位管理制度呈現(xiàn)合集職員管理篇
- 服裝的生產(chǎn)方案
- JTGT F20-2015 公路路面基層施工技術(shù)細(xì)則
- 機(jī)械加工廠(chǎng)計(jì)劃管理
- 《美術(shù)策展方案》課件
- 幼兒教師專(zhuān)業(yè)發(fā)展及《幼兒園教師專(zhuān)業(yè)標(biāo)準(zhǔn)》解讀課件
- 云南保山電力股份有限公司招聘筆試題庫(kù)
- 銀行業(yè)聲譽(yù)風(fēng)險(xiǎn)管理培訓(xùn)
- 醫(yī)院季度投訴分析整改報(bào)告
- 2023-2024學(xué)年江西省吉安市吉州區(qū)八年級(jí)(上)期末數(shù)學(xué)試卷(含解析)
- 全面醫(yī)療安全生產(chǎn)隱患排查清單
- 對(duì)吸毒人員管控措施
評(píng)論
0/150
提交評(píng)論