版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、命令:是在 可以是播送的 響應(yīng):是在 數(shù)據(jù):是在fwlRD to E無(wú)數(shù)據(jù)模式無(wú)響應(yīng)模式?*orH 二 rdnoil幻MB胤and D-sy*一CMD'-command - responseDATa 的=data block crc-block write 0口白rationirnffl card ID hos t5:期 “remandstiizs :=rta 1-ms-f智commandresponse- data block crc.data stop Dpera.tian . .mWtipM blQQ.KwritQ 9P 更;OiQ 口一概述1. SD總線模式下CLK:時(shí)鐘信號(hào)C
2、MD雙向命令和響應(yīng)信號(hào)DAT0-3:雙向數(shù)據(jù)信號(hào)VDD,VSS:電源和地信號(hào)SD模式下允許有一個(gè)主機(jī),多個(gè)從機(jī)即多個(gè)卡,主機(jī)可以給從機(jī)分別地址.主機(jī)發(fā) 命令有些命令是發(fā)送給指定的從機(jī),有些命令可以以播送形式發(fā)送 .SD模式下可以選擇總線寬度,即選用幾根DAT信號(hào)線,可以在主機(jī)初始化后設(shè)置2. SD總線協(xié)議SD模式下的命令和數(shù)據(jù)流都有一個(gè)開(kāi)始位和結(jié)束位CMD 上傳輸?shù)挠糜趩?dòng)一個(gè)操作的比特流 .由主機(jī)發(fā)往從機(jī),可以是點(diǎn)對(duì)點(diǎn)也CMDk傳輸?shù)挠糜谥懊畲饛?fù)的比特流.由從機(jī)發(fā)往主機(jī).DAT上傳輸?shù)谋忍亓?雙向彳輸.多塊寫操作模式ranarr :二mp 二:olfmrd 二口L5 二 nn一三句 an
3、d azdsE iT d"- 5? nn j pa'flst&r.i t?r 7 二 L 二RC 匚、呂二自產(chǎn)CONTENTrmr n: a .*.a>s 2mp bn:TDtal l»OBtri=4.S bits命令格式RR3BRt響應(yīng)格式MS= MECRC 15j5 :.g y HQ 至二»rt M giWg'gr-hiock lEHngth一 cjg aSD卡上電后會(huì)自動(dòng)初始化,通過(guò)給卡發(fā)送 CMD地可以復(fù)位卡二.SD卡命令描述.1 .播送命令:給所有卡都發(fā)送,某些命令需要響應(yīng).2 .點(diǎn)對(duì)點(diǎn)命令給指定地址的卡發(fā)送,需要響應(yīng).SD
4、卡系統(tǒng)有兩種工作模式:1 .卡識(shí)別模式.主機(jī)上電復(fù)位后即處于此模式,它會(huì)在總線上等待卡.卡復(fù)位后也處于此模式,直到SEND_RCA(CMD3H來(lái).2 .數(shù)據(jù)傳輸模式.卡收到SEND_RCA(CMD3令后即進(jìn)入此模式.主機(jī)識(shí)別到卡后也進(jìn)入此模式 .Card staleOperation mod&nactive Stateinactivedie State.曰d ide-"tificaLiDn modeReady StateIdentification StateStand-by Statedata transfer modeTransferSending-data StateR
5、acaiye-data StaleProg ramrning StatDisconnect State-卡狀態(tài)和工作模式對(duì)照表1 .卡識(shí)別模式.此模式下主機(jī)復(fù)位總線所有的卡,驗(yàn)證工作電壓,詢問(wèn)卡的地址.這個(gè)模式下所有數(shù)據(jù) 的傳輸都是只通過(guò) CM啜來(lái)完成.1)卡的復(fù)位.當(dāng)卡上電或收到 GO_IDLE_STATE (CMD凈令后,卡即進(jìn)入Idle State 狀態(tài).此時(shí)卡將 其RCA為0,相關(guān)存放器設(shè)為傳輸穩(wěn)定的最優(yōu)模式.2)工作電壓驗(yàn)證每個(gè)卡的最高和最低工作電壓存儲(chǔ)在OCR.只有當(dāng)電壓比配時(shí),CID和CSD勺數(shù)據(jù)才能正常傳輸給主機(jī).SD_SEND_OP_COND (ACMD4用來(lái)判斷卡的工作電壓
6、是否符合 ,如果不符合的話,卡 應(yīng)該放棄總線操作,進(jìn)入Inactive State 狀態(tài).在發(fā)送 SD_SEND_OP_COND (ACMDt前 記得要首先發(fā)送 APP_CMD (CMD55).Power onNo Response (Non valid commandMust be aMulti MediaCard、 cards with non compabbie voltage range f' Ready State ' < (ready) JCMD2Start Muni MediaCard fnihalization process starting atCMD
7、lIdata-transfer mode卜口e all Etates incata*trBnsfei-riQcefoerttiStateresponds with new RCAStanc-b ;(stby)Card responds With card-iEtentificshcn modenew RCACMD3CMJ3卡的狀態(tài)變換圖.ACMD4命令響應(yīng)中的BUSYi也用于卡表示其還沒(méi)準(zhǔn)備好,主機(jī)此時(shí)應(yīng)重發(fā) ACMD4命令,直到卡準(zhǔn)備好.主機(jī)在這個(gè)階段的ACMD41中不允許改變工作電壓,如果確實(shí)想改變的話,應(yīng)該先發(fā)送CMD0,然后再發(fā)送改變后的 ACMD41.GO_INACTIVE_STAT
8、E (CMD1防令用于使指定地址的卡進(jìn)入Inactive State 模式.3)卡識(shí)別過(guò)程.ALL_SEND_CID (CMD流令用于獲取卡的 CID信息,如果卡處于 Ready State, 它就會(huì)在 CMD線上傳送它的 CID信息,然后進(jìn)入Identification State 模式.緊接著發(fā)送 CMD3 (SEND_RELATIVE_ADDR)令,用于設(shè)置卡新的地址.卡收到新的地址后進(jìn)入Stand-by State模式.2.數(shù)據(jù)傳輸模式數(shù)據(jù)傳輸模式下卡的狀態(tài)轉(zhuǎn)變圖進(jìn)入數(shù)據(jù)傳輸模式后,主機(jī)先不停的發(fā)送 SEND_CSD (CMD聊令獲取卡的CSD言息.SET_DSR (CMD4用于設(shè)置卡
9、的DSR存放器,包括數(shù)據(jù)總線寬度,總線上卡的數(shù)目,總線 頻率,當(dāng)設(shè)置成功后,卡的工作頻率也隨之改變.此步操作是可選的.CMD7命令用于使指定地址的卡進(jìn)入傳輸模式,任何指定時(shí)刻只能有一個(gè)卡處于傳輸模式.傳輸模式下所有的數(shù)據(jù)傳輸都是點(diǎn)對(duì)點(diǎn)的,并且所有有地址的命令都需要有響應(yīng).所有讀命令都可以由 CMD1除令彳止,之后卡進(jìn)入Transfer State.讀命令包括單塊讀 (CMD17),多塊讀(CMD18),發(fā)送寫保護(hù)(CMD30),發(fā)送scr(ACMD51)和讀模式一般命令 (CMD56).所有寫命令都可以由CMD12命令彳止.寫命令包括單塊讀(CMD24),多塊讀(CMD25),寫CID(CMD
10、26),寫CSD(CMD27)鎖和解鎖命令(CMD42開(kāi)口寫模式一般命令(CMD56).當(dāng)寫命令傳輸完成后,卡進(jìn)入Programming State( 傳輸成功)或Transfer State( 傳輸 失敗).如果一個(gè)卡寫操作被停止,但其前面數(shù)據(jù)的 CRCF口塊長(zhǎng)度正確,數(shù)據(jù)還是會(huì)被寫入.卡要提供寫緩沖,如果寫緩沖已滿并且卡處于Programming State, DAT0保持低BUSY.寫CID,CSD,寫保護(hù),擦除命令沒(méi)有緩沖,當(dāng)這些命令沒(méi)完時(shí),不應(yīng)發(fā)送其他的數(shù)據(jù) 傳輸命令.參數(shù)設(shè)置命令在卡被編程時(shí)是不允許發(fā)送的,這些命令包括設(shè)置塊長(zhǎng)度 (CMD16),擦除塊起始(CMD32泡擦除塊結(jié)束(
11、CMD33).當(dāng)卡正編程時(shí)讀命令是禁止的.用CMD硬另一個(gè)卡進(jìn)入Transfer State不會(huì)終止當(dāng)前卡白編程和擦除,當(dāng)前卡會(huì)進(jìn)入Disconnect State并且釋放 DAT線.Disconnect State模式的卡可通過(guò) CMD7B新被選中,此時(shí)卡進(jìn)入 Programming State并且使能busy信號(hào).CMD0或CMD1會(huì)終止卡的編程操作,造成數(shù)據(jù)混亂,此操作應(yīng)禁止.1)總線寬度選擇命令A(yù)CMD階令用于選擇總線寬度,此命令只有在 Transfer State 有效.應(yīng)在CMD渝令后 使用.2)塊讀命令塊是數(shù)據(jù)傳輸?shù)淖钚挝?,在CSD (READ_BL_LEN定義,SD卡為固定
12、的512B.每個(gè)塊傳輸?shù)暮竺娑几粋€(gè) CRC校驗(yàn).CMD17(READ_SINGLE_BLOCK)于傳輸單個(gè)塊, 傳輸完之后,卡進(jìn)入Transfer State. CMD18(READ_MULTIPLE_BLOCK)于多個(gè)塊的傳輸,直到收到一個(gè)CMD1階令.3)塊寫命令與塊讀命令類似,每個(gè)塊傳輸?shù)暮竺娑几粋€(gè)CRC驗(yàn).卡寫數(shù)據(jù)時(shí)會(huì)進(jìn)行 CRC驗(yàn).多塊寫比重復(fù)的單塊寫更能提升效率.如果CSM的WRITE_BLK_MISALIGNN:設(shè)置,并且發(fā)送的數(shù)據(jù)不是塊對(duì)齊的 ,卡會(huì)設(shè)置狀 態(tài)存放器中的 ADDRESS_ERROR并且進(jìn)入Receive-data-State 狀態(tài)等待彳止命令.此時(shí) 寫操
13、作也會(huì)停止,并且卡會(huì)設(shè)置其的 WP_VIOLATIONfc.如果寫緩沖滿的話,卡會(huì)停止接受 WRITE_BLOC喻令.此時(shí)主機(jī)應(yīng)發(fā)送 SEND_STATUS (CMD13)命令,卡返回?cái)?shù)據(jù)的READY_FOR_DATA標(biāo)志卡是否準(zhǔn)備好接受新的數(shù)據(jù).在多塊寫操作中通過(guò)事先發(fā)送ACMD2蹌令可提升寫速度.ACMD23用于定義接下來(lái)要寫數(shù)據(jù)的塊的數(shù)目.每次多塊寫操作后,這個(gè)值又被設(shè)為默認(rèn)的1.ACMD2會(huì)使卡返回寫成功的塊數(shù)目.4)擦除命令擦除命令的順序是 :ERASE_WR_BLK_START(CMD32),ERASE_WR_BLK_END(CMD33)and ERASE (CMD38).如果(C
14、MD3喊(CMD32, 33)接收到出錯(cuò)信息,卡會(huì)設(shè)置狀態(tài)存放器中的 ERASE_SEQ_ERROR位并且重新等待新的命令時(shí)序.如果接收到時(shí)序錯(cuò)誤命令,卡會(huì)設(shè)置其ERASE_RESET并且重新等待新的命令時(shí)序 .5)寫保護(hù)治理三種機(jī)制:- .寫保護(hù)物理開(kāi)關(guān)- .卡內(nèi)部寫保護(hù)通 過(guò)設(shè)置 CSD 中 的 WP_GRP_ENABLE 和 WP_GRP_SIZE位,SET_WRITE_PROT口 CLR_WRITE_PROT令用來(lái)設(shè)置和去除保護(hù)機(jī)制.- .密碼保護(hù).三.時(shí)鐘限制如果主機(jī)要發(fā)送1K的數(shù)據(jù),但是主機(jī)緩沖區(qū)只有 512B,那么主機(jī)可以在發(fā)送完前512B后,可以先停止時(shí)鐘,然后把后512B填充
15、入緩沖區(qū),再啟動(dòng)時(shí)鐘,這樣卡并不會(huì)檢測(cè)要兩 次發(fā)送之間的間隔,認(rèn)為其是一次完整的數(shù)據(jù)發(fā)送過(guò)程.四CRC校驗(yàn)1 .CRC7CRC7用于所有的命令,除R3以外的響應(yīng),以及CID和CSM存器.2 .CRC16CRC16用于數(shù)據(jù)塊的校驗(yàn)五.錯(cuò)誤類型.1 . CRC錯(cuò)誤和命令非法錯(cuò)誤命令的CR或驗(yàn)出錯(cuò),卡設(shè)置其狀態(tài)存放器的 COM_CRC_ERROR非法命令錯(cuò)誤,卡設(shè)置其狀態(tài)存放器的ILLEGAL_COMMAND.非法命令包括:不支持的命 令,未定義的命令以及當(dāng)前狀態(tài)不支持的命令.2 .讀,寫和擦除超時(shí).卡應(yīng)該在指定的時(shí)間內(nèi)完成一個(gè)命令或返回移動(dòng)的錯(cuò)誤信息.如果在指定的超時(shí)時(shí)間內(nèi)主機(jī)收不到響應(yīng),應(yīng)認(rèn)為卡
16、停止工作,應(yīng)重新復(fù)位卡.六命令1 .命令類型:- bc不需要響應(yīng)的播送命令.- bcr需要響應(yīng)的播送命令.每個(gè)卡都會(huì)獨(dú)立的接收命令和發(fā)送響應(yīng)- ac點(diǎn)對(duì)點(diǎn)命令,DAT線上沒(méi)數(shù)據(jù)- adtc點(diǎn)對(duì)點(diǎn)命令,DAT線上有數(shù)據(jù)Bit position474645 40pg: 8:cWidth ibits:1163271Valuep'1,JXXD«scrt|)tiorsisrt b tTfansTiiss onOilcominand indevwrguE宜川CC7end bit所有命令均遵守上圖中的格式,總共48位.首先是1個(gè)起始位0,接著是1個(gè)方向位主機(jī)發(fā)送位1, 6個(gè)命令位0-63
17、, 32 位參數(shù)有些命令需要,CRC7位校驗(yàn),1個(gè)停止位.2.卡命令根據(jù)不同的類型分成了不同的Class,見(jiàn)下表,其中Class0,2,4,5,8 是每個(gè)卡都必須支持的命令,不同的卡所支持白命令保存在CSD中.Card Command Class (CCC)0123456789.11Support edcomma n dsclass descriptionbasicreserv edblock readreserv edblock z/nteerasewrite protectionlock cardapplication specificreserv edCMDOMandatoryCMD2M
18、andatory.CMD3Mandatory+CMD4MandatoryCMD7Mandatory+4CMD9Mandatory+CMD10MandatoryCMD12MandatoryCMD13Mandatory+CMD15MandatoryCMD16Mandatory+CMD17MandatoryCMD18MandatoryCMD24Mandatory+CMD25MandatoryCMD27Mandatory+CMD28Optional+CMD29OptionalCMD30Optional+Card Command Class (CCC)0123456789.11Support ed co
19、mma n dsclass descriptionbasicreserv edblock readreserv edblock writeerasewrite protectionlock cardapplication specificreserv edCMD32MandatoryCMD33MandatoryCMD38Mandatory+CMD42OptionalCMD55Mandatory+CMD56Mandatory+ACMD6MandatoryACMD13Mandatory+ACMD22MandatoryACMD23Mandatory+ .ACMD41Mandatory+ACMD42M
20、andatoryACMD51Mandatory+3.命令詳細(xì)描述1根本命令Class0CMDINDEXtypeargumentrespab breviationcamiriand descriptionCMDDbe31 C sh/f bits-TGO IDLE STATEresets all cards to idle stateGMD1reservedCMD2bcr31 0 sti/f bitsR2ftLL_SEND_CiDasks any card to send IheC D num- Ders on tne Cml line (any caret that is connected t
21、o the host ?/ill responc)GMD3bcr3i o sW tutsR6SENL_RELATIVE_ ADDR-ask the cand to pubiisr a new reia:iwe address (RCA)CMD4DC31 I5J DSK 150 sti/f bits«SET_DSRprograms the DSR of all cansCMD5res ervenCMD6reservedCM口INDEXtypeargumentr白白pabbreviationcammand descriptionCMD7ac31 16 RCA15:0 stuff bi:s
22、Rib 6"田依做LardSELECT/ DESELECT ORDornmand toggles a cand between tbs stand-by and transfer states or between the programTiimg and disconnect states in 6值h cases the card b selected by its own relative a(Cress and gets des&iecteo Dy any 0theaddress' address 0 deselects all.CMDBreservedcmg
23、ac31 16 RCA 15:0 stkift bi:sR2SEND_CSDaddressed card sends its ca-spe- dfic data (CSD) on the CMD line.CMD10ac31 16 RCA15 0 stuff bhsR2SEND_CIDaddressed card sends ts cad identi- fcation (CjD) on CMD Ihe lineCMD11reservedCMD12ac31 0 stuff bi:sR1bSTOP_transm ssionfarces tM card tc stop transmissionCM
24、口 13日G31 1GJRCA15.0 stuff bicsR1iSEND_STATUSeddlttlbeJ Cdl J 5HIKIS 15 stdtus registerCM.14reatsr vedCM015ac31 16 RCA15-0 stuff bi:s-GOJNACTJVE STATEsets the card to inactive state ir order b protect rhe card st a ex agan&t com- n unicat ion 口eaKdawns2)讀命令Class2CMDINDEXtypeargumentrespaobreviati
25、oncommand descriptionCMD 15ac31 0 block lengthR1ScT_BLOCKLENsets ihe Nack length (in bytes) for all lol lowing Dlcck cornmands read and write . Default block lergth 咯 specified In the CSD. SuppDried only If Partial block RD '島" uptjimlon am dllo'tid in CSDFCMD I7sdtc(31:0; data address卜
26、1REAC_SlhGLE_SLOCK舊ads a bock of the size sdected by the SET_3LOCKUEM comnanc 1CMD 18adLc31.0 data addressR1REAO_MULTIPLESLOCKconlmuoLsly transfers data blocks Irom carato host until interrupted by a STOP_TRANSMISSION command.CMD 19CMD23reserved3)寫命令Class4CMD INDEXtypeargumentrespabbreviationcommand
27、 descriptionCMD24adtc31 0 data acdressRIVVRITE_BLOCKvoltes b blo:k of the size gelecled ty the SEl_t3LOCKLEH corrmarKl 1CMD25adc31 0 data acdre£sR1WRIT£_MULTIPL e_blockcontinuously mires blocks of data until a STO=_TRANSMISSiON followsCMD26Reserved For ManufacturarCMD27adtc31 0 stuff bitsR
28、1PROGRAM_CSDprogramming of the programmable bi書(shū) of theCSD3)擦除命令Class5CMDINDEXtypeargumentrespabbreviaiioncommand descriptionCMD32ac(31 0 data addressR1ERASE 胃 R BLKSTARTseis the address of the first virile- block to be erasedCMD33就131 0 data addressR1FASE_WR_BLKENDseis the address M the last write b
29、lock a1 the coniirnjcijs raneto beCM 0 34CM 口 37reserved4)應(yīng)用特定命令Class8CND INDEXtypeargumentraspabbreviationcommand d 白1script ionCND55ac31:16 RCA 15:0 stuff bitsR1APP_CMDIndicateo to the card that the next command is an application specific command ra:f er than a standard commandCMD56adtc(311 stuff
30、bits Q RD/ WR1R1GEN_CMDUsed either to transfer a data block to the card or to get a data block from the card for general purpose! application tpacific commands The size of tte data block siiall be set by thu SET_BLOCK_L£M com ma nd.CMD57CMD59reservedCL1D60 63reserved for manyfactuner卜表中的所有命令使用前
31、都應(yīng)先跟一個(gè)APP_CMD(CMD55)令A(yù)C MD 出DEXtypeargumentespabbreviationcommand descriptionACMD6ac(31 2) stuff bits (1:0bus widthR1SET_BUS_WIDTHDefines the data bus width (Ws1bit or *10*=4 bits bus) to be used for data transfer. The slowed data bus widths are given in SCR register.ACMD13adtc31:0 stuff bitsR1SD ST
32、ATUSSend the SD Memory Cap status. The status fields are given in Table 24.XCMD17reservedMMD1B一.一Reserved fw SD security applicaticns'/CMD19 to心 MD21reservedACMD22adtc31:0 stuff bitsR1SEND_NUM_WR_BLOCKSSend the number cf the written (v/ithou: errors) write blocks. Responds v/ith 32DH-CRC data bl
33、ock.MMD23ac31:23 stuff bits 22:0)Number of blocksR1SET_WR_BLK_ERASE-COUNTSet the number of write bocks to be pre-erased Defore writing (to be used for faster Multiple Block VVR com- mand) M 1-=d©fault (one v/r Hock)(21ACMD24resprvRdACMD25一, 一3Reserved for S3 security applications"ACMD2SRes
34、erved for SD security applications"ACMD3B Reserved for SD security applications*ACMD3B to A2MD40reservedZCMD41bcr31 ©OCR wthout busyR3SD_APP_OP_CONDAsks the accessed card to send its operating condtion register (OCR) cor- leni h the response on the CMD line.ACMD42acavilstu bitsR1SET CLR CA
35、RDDETECT -:Connect!iyDisconnect0 the 50KOnm pull-up resistor on CD/DAT3 (pin 1) of the card The pull-up may be used for card detection.MMD43MMD49一一一 一,Reserved for SD security applications'怔 MD51adtc(31:O| staff bitsASEND_SCRReads the SD Configurat on Register (SCR).七.卡狀態(tài)轉(zhuǎn)換表current stateidleread
36、yidentstb/trandatarevprgdisinacommandchanges toclass independentGRC error-一-一-command nN supported-class.CMDDidleidleIdleIdleidleid &idleIdleidle-CMD2-ident-CMD3-st b yst by-CMD4-st by.CMD7, card is addressed-w-tranfl了二prgjCMD7, card is nol add ressed-.-stby rstbystby-dis .-CM3.-油y-h-CMD10-st by
37、w三-= Ji-CMD12-tranpg-CMD13,st bytrandatarevprgdis.CMD15-一inainainal_ ma Lmaina-Class 2CMD16-MF-tnan-CMD17-data-GMD18-data-class 4GMD16see class 2CMD24,-rev.GMD25-_rev-CMD27-rev-class 6CMD20-Ik-prg-,CMD25-一P9-CMD3Q-data-class 5current stateidlereadyidentstbyIrandatarevprgdisin aCMD32-trail-CMD33.-tra
38、n-CMD38-prg-class 7-rev-class 8GMD55idle二4stbytrandatarevprgdis二CMD56: RDP/VR = 0-rev-*-CMD56. RDJWR = 1-data-q-ftCMDS-tran-/-W:MO13-.-tran-tran.-/ M口 Z3-tran一-NMD1426,26.3B4.4 5 46 *47 46 49Refer to SD Memorv1 Card Securib, SpBCihDatiOTi forfiiptanatiorr about tti& SD Security FeaturesA1CMD4-1.
39、 csrd “口口 range compatibleready-CMD41, eard ig busyIdle-ftCMD4l. card VDD rar not compatibleinaACM 口 42-tran-ACMD51-tiata-,-class 9-11CMD41;CMDd3L. CMD54CMD57-CMD59reservedCMD60.CMD63re&erved for manufacturer八.應(yīng)答.所有的應(yīng)答都是通過(guò) CMDt送,不同的應(yīng)答長(zhǎng)度可能不同.總共有四種類型的應(yīng)答1. R1:長(zhǎng)度位48位.注意每個(gè)塊傳輸完成后有一個(gè)BUSY位.Bit posibon47
40、46(45:40f39:80Width (bits1153271Value0HO,XXXr 丁Descriptionstart bittransmission bitcornmarni iixexcard statusCRC7end bit2.R1b:與R1類似,只是將BUSY#力口入響應(yīng)中3.R2CID CSD存放器:長(zhǎng)度為136位,CID 為CMD2FD CMD10勺應(yīng)答,CSD為CMD聃應(yīng)答.Bit position135134口 33128|0Width (bits116127J1Value0,o'iiinrTDescriptionStart bittransmissicn b
41、itreservedCD OrCSD register incl. internal CRC?end bit4.R3OCR存放器:長(zhǎng)度位48位.作為ACMD4的應(yīng)答.Bit position474645403987R0Width (bite)1163271ValueO,0111111,X,iinnr1Descriptionstart bittransmission failreservedOCR registerreservedend bit5.R6RCA地址應(yīng)答:長(zhǎng)度為48位Bit position474645 4039 B) Arg urrient fieldR:10jWidth (bit
42、s11G131611ValueO'O'XXXXrDescriptionstart bittransmission blLcommand Index (W0C11-)New pj bl i s had FtA 31: IB Of the card15 0 card sts*us bits.23 22 19 12:0 (see Table 22CRC7and bit九.卡的狀態(tài)SD卡支持兩種狀態(tài):-卡狀態(tài):與MM球兼容.-SD卡狀態(tài):擴(kuò)充到了 512位.1 .卡狀態(tài):R1應(yīng)答包含一個(gè) 32位的卡狀態(tài).見(jiàn)下表.其中Type中的含義為:E:錯(cuò)誤位.S:狀態(tài)位.R:根據(jù)命令在響應(yīng)中設(shè)置.
43、X:根據(jù)在命令執(zhí)行期間設(shè)置,必須再次讀此位才能獲得命令執(zhí)行后的情況Clear Condition:A:與卡的當(dāng)前狀態(tài)有關(guān)B:總是與命令有關(guān),無(wú)效的命令會(huì)去除此位C:通過(guò)讀此位來(lái)去除BitsIdentifierTypeValueA DescriptionClear Cond ition J31OUT_OF_RANGEER*0- no error T errorThe coTimand*s argument was out of the 8 How ad rage for this card.C (30ADCRESS.ERRCRERXno error T= errorA misaligned ad
44、dress which did not ma:ch the block length was used in the command.29BLOCK_LEN_ERRORER*0*= no error T errorThe transfeied block length is not allowed for this card. or the number of transferred bytes does not match ihe block eng tn.C28ERASE-SEQ-ERRORER'0= no error T= errorQAn eror in the sequenc
45、e of erase commands ccured.C27ERASE-PARAMEXno error'1、errorAn invalid selection of write blocks for erase occurred.4c26WP-VIOLATIONERX'O'= net protected 1= protectedAtterrpt to program a write protected olock.c25CARDJS.LOCKEDSXO' * card unlockedV 5 card lockedWhen set signals that th
46、e card is locked by the hostA24LOCK UNLOOK-FAIL EDERXO' = no error*1* = errorSet when a sequence or password enor nas been detected in lock/ unlock card comnand or if there was ar attempt to access a locked cardC23COM-CRC-ERRORER*0,« no error'1、errorThe CRC check of the pre/ious command
47、 failed.B22ILLEGAL-COVIMANDER*0- no error'1、errorComnand not legal for the card stateB21CARD-ECC.FAILED'O' success 了Card rtemal ECC was applied but failed to correct me dataC20CC.ERROR*0*= no error,1,s errorInterna card controller errorC19ERROR01no errorT= errorA general. an unknown error occurred during the ooeration.cieUNDERRUNEX*0*= no error errorThe card could not sustain data transfer in stream read modeC17OVERRUNEX*0*= no error 'T= errorThe card could not sustain data programming in stream write modeC16CIDZCSD_OVERWR TEE RX'0', no errorT= errorcan be e
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 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ì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年版企業(yè)并購(gòu)與重組合同:股權(quán)收購(gòu)合同版B版
- 2024年規(guī)范化人力資源委托管理合同
- 2024跨境電子商務(wù)平臺(tái)建設(shè)與運(yùn)營(yíng)合作協(xié)議
- 2024年高速路段交通安全設(shè)施采購(gòu)合同
- 2024店鋪市場(chǎng)推廣合作合同2篇
- 2025年度文化創(chuàng)意產(chǎn)業(yè)財(cái)產(chǎn)抵押擔(dān)保投資合同3篇
- 2025年度大型物流樞紐承包經(jīng)營(yíng)合同典范3篇
- 2024年網(wǎng)絡(luò)云服務(wù)提供商托管協(xié)議
- 2024年新能源項(xiàng)目技術(shù)顧問(wèn)聘任協(xié)議3篇
- 2024年度牙齒矯正前后口腔護(hù)理指導(dǎo)服務(wù)合同3篇
- 大型起重機(jī)械現(xiàn)場(chǎng)管理手冊(cè)
- 2023年考研(英語(yǔ)一)真題與答案解析
- 【MOOC】數(shù)學(xué)建模與創(chuàng)新實(shí)踐-西安科技大學(xué) 中國(guó)大學(xué)慕課MOOC答案
- 天冬化學(xué)成分
- 工程造價(jià)基礎(chǔ)知識(shí)課件
- 江蘇省南京市聯(lián)合體2024-2025學(xué)年九年級(jí)上學(xué)期期中學(xué)情分析化學(xué)試卷(無(wú)答案)
- 保安員考試模擬800題及答案
- 2024年衛(wèi)生院中層干部行政管理考核細(xì)則范本(三篇)
- 獸藥經(jīng)營(yíng)管理制度
- 第一單元 史前時(shí)期 原始社會(huì)與中華文明的起源 單元檢測(cè)試題 2024-2025學(xué)年統(tǒng)編版七年級(jí)歷史上冊(cè)
- 2024年勞務(wù)工資管理制度范例(三篇)
評(píng)論
0/150
提交評(píng)論