User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 375
UG585 (v1.11) September 27, 2016
Chapter 13: SD/SDIO Controller
Synchronous Abort
The following sequence performs a synchronous abort.
1. Set the Stop At Block Gap Request bit in the Block Gap Control register to 1 to stop SD
transactions.
2. Wait for a transfer complete interrupt.
3. Set the Transfer Complete bit to 1 in the Normal Interrupt Status register to clear this bit.
4. Issue an abort command.
5. Set both the Software Reset for DAT Line and Software Reset for CMD Line bits to 1 in the
Software Reset register to do a software reset.
6. Check the Software Reset for DAT Line and Software Reset for CMD Line in the Software Reset
register. If both Software Reset for DAT Line and Software Reset for CMD Line are 0, go to “END”.
If either the Software Reset for DAT Line or the Software Reset for CMD Line is 1, repeat Step (6).
X-Ref Target - Figure 13-6
Figure 13-6: SDIO Controller Synchronous Abort Sequence
(1)
(2)
(5)
(6)
(3)
Set Stop at Block Gap Request
Set Software Reset For
DAT Line (DR) and CMD Line (CR)
Clr Transfer Complete Status
Transfer Complete
Int Occur
DR=1 or CR=1
DR=0 and CR=0
Wait For
Transfer Complete Int
(4)
Issue Abort Command
Start
End
Check
DR and CR
UG585_c13_06_031812