Comment
Value
Bit
No initialization sequence
0
send_initialization
0
stop_abort_cmd
0
send_auto_stop
Block transfer mode. Block size and byte count must match
number of bytes to read or write
0
transfer_mode
1 for write and 0 for read
1 or 0
read_write
Data is expected
1
data_expected
0
response_length
1
response_expect
Set this parameter to the command number. For example,
set to 24 for SD/SDIO WRITE_BLOCK (CMD24) or 25
for WRITE_MULTIPLE_BLOCK (CMD25).
Command
index
cmd_index
• 0 for send command immediately
• 1 for send command after previous DTO interrupt
1
wait_prvdata_complete
• 0 for not checking response CRC
• 1 for checking response CRC
1
check_response_crc
Table 11-25: blksiz Register Settings for ATA Task File Transfer
†
Comment
Value
Bit
Reserved bits set to 0
0
31:16
For accessing entire task file (16, 8-bit registers). Block
size of 16 bytes
16
15:0 (
block_size
)
Table 11-26: bytcnt Register Settings for ATA Task File Transfer
Comment
Value
Bit
For accessing entire task file (16, 8-bit registers). Byte
count value of 16 is used with the block size set to 16.
16
31:0
ATA Payload Transfer Using the RW_MULTIPLE_BLOCK (RW_BLK) Command
This command involves data transfer between the CE-ATA card device and the controller. To send a data
command, the controller needs a command argument, total data size, and block size. Software receives or
sends data through the FIFO buffer.
†
Implementing ATA Payload Transfer
To implement an ATA payload transfer (read or write), perform the following steps:
†
1. Write the data size in bytes to the
bytcnt
register.
†
SD/MMC Controller
Altera Corporation
cv_54011
ATA Payload Transfer Using the RW_MULTIPLE_BLOCK (RW_BLK) Command
11-52
2013.12.30