User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 370
UG585 (v1.11) September 27, 2016
Chapter 13: SD/SDIO Controller
(12-R). Read a block of data (according to the number of bytes specified in Step (1)) from the Buffer
Data Port register.
(13-R). Repeat until all blocks are received and then go to Step (14).
14. If this sequence is for a single or multiple block transfer, go to Step (15). In case of an infinite
block transfer, go to Step (17).
10. Wait for a transfer complete interrupt.
11. Write a 1 to the Transfer Complete bit in the Normal Interrupt Status register to clear this bit.
12. Perform the sequence for abort transaction.
Note: Step (1) and Step (2) can be executed at same time. Step (4) and Step (5) can be executed at
same time.
13.3.3 Using DMA
Figure 13-4 shows data transfers using DMA.
X-Ref Target - Figure 13-4
Figure 13-4: SDIO Controller Data Transfer Using DMA
Start
(1)
(2)
(3)
(11)
(12)
(13)
(14)
(10)
Set System Address Reg
End
Wait For
Command Command Int
Wait For
Transfer Complete Int
and DMA Int
Set Block Size Reg
Set Block Count Reg
(4)
Set Argument Reg
(5)
Set Transfer Mode Reg
(6)
(7)
Set Command Reg
(8)
Clr Command Complete Status
(9)
Get Response Data
Clr DMA Interrupt Status
Get System Address Reg
Clr Transfer Complete Status
Clr DMA Interrupt Status
Check
Interrupt Status
Command Complete Int Occur
Transfer Complete Int Occur
UG585_c13_04_031812