User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 373
UG585 (v1.11) September 27, 2016
Chapter 13: SD/SDIO Controller
13.3.4 Using ADMA
Figure 13-5 shows data transfers using ADMA.
The sequence for using ADMA is as follows
1. Create a descriptor table for ADMA in system memory.
2. Set the descriptor address for ADMA in the ADMA System Address register.
3. Set the value corresponding to the executed data byte length of one block in the Block Size
register.
4. Set the value corresponding to the executed data block count in the Block Count register in
accordance with SDIO register map.
X-Ref Target - Figure 13-5
Figure 13-5: SDIO Controller Data Transfer Using ADMA
Start
(1)
(11)
(12)
Create Descriptor Table
(2)
Set ADMA System Address Reg
(3)
Set Block Size Reg
(4)
Set Block Count Reg
(5)
Set Argument Reg
(6)
Set Transfer Mode Reg
(7)
(8)
Set Command Reg
(9)
Clr Command Complete Status
(10)
Get Response Data
(13) (14)
(15)
Clr Transfer Complete
Interrupt Status
End
Clr ADMA Error
Interrupt Status
Abort ADMA
Operation
Wait For
Transfer Complete Int
and ADMA Error Int
Check
Interrupt Status
Wait For
Command Complet Int
Command Complete
Int Occurs
ADMA Error Int. Occurs
Transfer Complete
Int. Occurs
UG585_c13_05_031812