MMC/SD Host Controller
7-127
MPU Public Peripherals
Table 7–95. MMC Command Register (MMC_CMD)
Bit
Name
Description
15
DDir
Data direction [read/write]
14
SHR
Stream command or broadcast host response
13 –12
Type
Command types [bc,bcr,ac,adtc]
11
Busy
Command with busy response [R1b]
10– 8
Response
Command responses [no response, R1/R1b, R2, R3, R4, R5,R6]
7
Init
Send initialization stream
6
OD
Card open drain mode
5 – 0
Cmd_Index
Command index [63:0]
A write to the MMC command register (MMC_CMD) sends a command to the
card. If the local host accesses this register byte-wise, the command is sent
to the card only after a write access to the least significant LSB (bits 7:0).
Hence, the MSB must always be written first in a byte-accessed situation.
A read has no effect except to return the last command that was previously
sent.
Note:
A write into this register with Type = adtc resets the FIFO pointers and pre-
fetch register. Writes with other type values (bc, bcr, ac) do not affect the
FIFO contents. Hence, data must be written inside the FIFO after sending
a single or multiple block write command.
A write into this register also clears the MMC_RSP[07] registers.
Data Direction (DDir)
This bit (15) specifies if the data transfer is a read or a write. This bit is only valid
if the command type is adtc.
This bit has the same polarity as RD/WR argument bit 0 for a GEN_CMD
command (CMD56).
-
0: Data write
-
1: Data read
Value after reset is low.