Download UM10198 - eecosales.com
Transcript
UM10198 Philips Semiconductors Chapter 16: SD card interface MS_SCLK MS_BS 3 2 1 cmd state MS_DAT[0] 0 7 6 5 4 PEND Z Z data counter 3 2 1 CMD CMD CMD SEND Z Z Z S CMD CMD 6 7 CmdPend Fig 52. Pending command start The data block counter determines the end of a data block. If the counter is zero, the end-of-data condition is TRUE (refer to the SD_DataCtrl register description for more information). 4.4.3 Bus mode In wide bus mode, all four data signals (MS_DIO[3:0]) are used to transfer data, and the CRC code is calculated separately for each data bit. While transmitting data blocks to a card, only MS_DIO[0] is used for the CRC token and busy signalling. The start bit must be transmitted on all four data signals at the same time (during the same clock period). If the start bit is not detected on all data signals on the same clock edge while receiving data, the DPSM sets the start bit error flag and moves to the IDLE state. The data path also operates in half-duplex mode, where data is either sent to a card or received from a card. While not being transferred, MS_DIO[3:0] are in the HI-Z state. Data on these signals is synchronous to the rising edge of the clock period. 4.4.4 CRC token status The CRC token status follows each write data block, and determines whether a card has received the data block correctly. When the token has been received, the card asserts a busy signal by driving MS_DIO[0] LOW. Table 16–266 shows the CRC token status values. Table 266. CRC token status Token Description 010 Card has received error-free data block. 101 Card has detected a CRC error. 4.4.5 Status flags Table 16–267 lists the data path status flags (refer to the SD_Status register description for more information). UM10198_1 User manual © Koninklijke Philips Electronics N.V. 2006. All rights reserved. Rev. 01 — 1 June 2006 261 of 396