Altera Cyclone V Device Handbook page 730

Hide thumbs Also See for Cyclone V:
Table of Contents

Advertisement

11-52
ATA Payload Transfer Using the RW_MULTIPLE_BLOCK (RW_BLK) Command
Bit
send_initialization
stop_abort_cmd
send_auto_stop
transfer_mode
read_write
data_expected
response_length
response_expect
cmd_index
wait_prvdata_complete
check_response_crc
Table 11-25: blksiz Register Settings for ATA Task File Transfer
Bit
31:16
15:0 (block_size)
Table 11-26: bytcnt Register Settings for ATA Task File Transfer
Bit
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.
Altera Corporation
Value
0
No initialization sequence
0
0
0
Block transfer mode. Block size and byte count must match
number of bytes to read or write
1 or 0
1 for write and 0 for read
1
Data is expected
0
1
Command
Set this parameter to the command number. For example,
index
set to 24 for SD/SDIO WRITE_BLOCK (CMD24) or 25
for WRITE_MULTIPLE_BLOCK (CMD25).
1
• 0 for send command immediately
• 1 for send command after previous DTO interrupt
1
• 0 for not checking response CRC
• 1 for checking response CRC
Value
0
Reserved bits set to 0
16
For accessing entire task file (16, 8-bit registers). Block
size of 16 bytes
Value
16
For accessing entire task file (16, 8-bit registers). Byte
count value of 16 is used with the block size set to 16.
Comment
Comment
Comment
cv_54011
2013.12.30
SD/MMC Controller
Send Feedback

Advertisement

Table of Contents
loading

Table of Contents