RS_SDIO controller
RM0082
692/844
Doc ID 018672 Rev 1
1.
Data location of system memory is set to the SDMA System Address register.
2.
Set the value to the Block Size register.
3.
Set the value to the Block Count register.
4.
Set the argument value to the Argument register.
5.
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.
6.
Set the value to the Command register.
7.
Then wait for the Command Complete Interrupt.
8. Write logic ‘1’ to the Command Complete in the Normal Interrupt Status register to
clear bit.
9.
Read Response register and get necessary information of the issued command.
10. Wait for the Transfer Complete Interrupt and DMA Interrupt.
11. If Transfer Complete is set logic ‘1’, go to Step (14) else if DMA Interrupt is set to logic
‘1’, go to Step 12. Transfer Complete is higher priority than DMA Interrupt.
12. Write logic ‘1’ to the DMA Interrupt in the Normal Interrupt Status register to clear this
bit.
13. Set the next system address of the next data position to the System Address register
and go to Step (10).
14. Write logic ‘1’ to the Transfer Complete and DMA Interrupt in the Normal Interrupt
Status register to clear this bit.