Task |
SD{0, 1} |
Register Field |
Register Offset |
Bits |
Value |
---|---|---|---|---|---|
Send block write command (CMD55) (see Table: SD CMD Transfer). |
|||||
Set block size to desired value. |
reg_blocksize |
xfer_blocksize |
0x04 |
11:0 |
Block size value |
Set up ADMA2 descriptor table. |
|||||
Set transfer mode with data direction and DMA enable. |
reg_transfermode |
xfermode_dmaenable | xfermode_dataxferdir |
0x0C |
4 and 1 |
0x11 |
Data cache invalidate range. |
|||||
Send ACMD51 with desired block count. |
|||||
Check for transfer completed. |
reg_normalintrsts |
reg_errorintrsts |
0x30 |
15 |
Read operation |
Clear the interrupts (if any). |
reg_normalintrsts |
ALL |
0x30 |
15:0 |
0xF3FF |
Check transfer complete and clear if transfer is completed. |
reg_normalintrsts |
normalintrsts_xfercomplete |
0x30 |
1 |
1b'1 |
Read response 0. |
reg_response0 |
command_response |
0x10 |
15:0 |
Read |