RS_SDIO controller
RM0082
694/844
Doc ID 018672 Rev 1
read operation is aborted asynchronously and extra read data is discarded when the
ADMA is completed.
5.
Set the argument value to the Argument register.
6.
Set the value to the Transfer Mode register. The host driver determines Multi / Single
Block Select, Block Count Enable, Data Transfer Direction, Auto CMD12 Enable and
DMA Enable.
7.
Set the value to the Command register.
8.
Then wait for the Command Complete Interrupt.
9. Write logic ‘1’ to the Command Complete in the Normal Interrupt Status register to
clear this bit.
10. Read Response register and get necessary information of the issued command.
11. Wait for the Transfer Complete Interrupt and ADMA Error Interrupt.
12. If Transfer Complete is set logic ‘1’, go to Step (13) else if ADMA Error Interrupt is set to
logic ‘1’, go to Step (14).
13. Write logic ‘1’ to the Transfer Complete Status in the Normal Interrupt Status register to
clear this bit.
14. Write logic ‘1’ to the ADMA Error Interrupt Status in the Error Interrupt Status register to
clear this bit.
15. Abort ADMA operation. SD card operation should be stopped by issuing abort
command.
Figure 77.
Abort transaction sequence
An abort transaction is performed by issuing CMD12 for a SD memory card and by issuing
CMD52 for a SDIO card. The host controller can do an abort transaction to stop infinite
block transfers or stop transfers while a multiple block transfer is executing.
In an asynchronous abort sequence, the host controller can issue an abort command at
anytime unless Command Inhibit (CMD) in the Present State register is set to logic ‘1’. In a
Start
(1)
(2)
(3)
(2)
Issue Abort Command
Set Software Reset For
DAT Line(DR) and CMD
Line(CR)
Wait for
Transfer Complete Int
Transfer
Complete Int occur
Clr Transfer Complete
Status
Issue Abort
Command
Set Stop at Block Gap
Request
(4)
End
End
Check
DR and
CR
CR=0 and
DR=0
CR=1 or
DR=1
Start
Set Software Reset For
DAT Line(DR) and CMD
Line(CR)
CR=1 or
DR=1
CR=0 and
DR=0
Check
DR and
CR
(3)
(1)
(5)
(6)
Asynchronous Abort
Sequence
Synchronous Abort
Sequence