30.01.2015 Views

UM10211 - Standard ICs

UM10211 - Standard ICs

UM10211 - Standard ICs

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NXP Semiconductors<br />

<strong>UM10211</strong><br />

Chapter 18: LPC2300 SD_MMC<br />

Table 365. Simple response format<br />

Bit Position Width Value Description<br />

0 1 1 End bit.<br />

7:1 7 - CRC7 (or 1111111).<br />

39:8 32 - Argument.<br />

45:40 6 - Command index.<br />

46 1 0 Transmission bit.<br />

47 1 0 Start bit.<br />

Table 366. Long response format<br />

Bit Position Width Value Description<br />

0 1 1 End bit.<br />

127:1 127 - CID or CSD (including internal CRC7).<br />

133:128 6 111111 Reserved.<br />

134 1 1 Transmission bit.<br />

135 1 0 Start bit.<br />

The command register contains the command index (six bits sent to a card) and the<br />

command type. These determine whether the command requires a response, and<br />

whether the response is 48 or 136 bits long (see Section 18–5.5 “Command Register<br />

(MCICommand - 0xE008 C00C)” for more information). The command path implements<br />

the status flags shown in Table 18–367 (see Section 18–5.12 “Status Register (MCIStatus<br />

- 0xE008 C034)” for more information).<br />

Table 367. Command path status flags<br />

Flag<br />

CmdRespEnd<br />

CmdCrcFail<br />

CmdSent<br />

CmdTimeOut<br />

CmdActive<br />

The CRC generator calculates the CRC checksum for all bits before the CRC code. This<br />

includes the start bit, transmitter bit, command index, and command argument (or card<br />

status). The CRC checksum is calculated for the first 120 bits of CID or CSD for the long<br />

response format. Note that the start bit, transmitter bit and the six reserved bits are not<br />

used in the CRC calculation.<br />

The CRC checksum is a 7 bit value:<br />

CRC[6:0] = Remainder [(M(x) × x 7 ) / G(x)]<br />

G(x) = x 7 + x 3 + 1<br />

Description<br />

Set if response CRC is OK.<br />

Set if response CRC fails.<br />

Set when command (that does not require response) is sent.<br />

Response timeout.<br />

Command transfer in progress.<br />

M(x) = (start bit) × x 39 + ... + (last bit before CRC) × x 0 , or<br />

M(x) = (start bit) × x 119 + ... + (last bit before CRC) × x 0<br />

<strong>UM10211</strong>_1<br />

© NXP B.V. 2007. All rights reserved.<br />

User manual Rev. 01 — 27 March 2007 396 of 613

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!