Task |
SD{0, 1} |
Register Field |
Register Offset |
Bits |
Value |
---|---|---|---|---|---|
Check the present state register to make sure the bus is free. |
reg_presentstate |
presentstate_inhibitcmd, presentstate_inhibitdat, sdhcdmactrl_wrxferactive, sdhcdmactrl_rdxferactive |
0x24 |
9:8 and 1:0 |
Read |
Send block write command (CMD16) (see Table: SD CMD Transfer). |
|||||
Read card-specific data in response. |
reg_response0 |
command_response |
0x10 |
15:0 |
Read |
Set the block size. |
reg_blocksize |
xfer_blocksize |
0x04 |
11:0 |
0x200 |