NO:
W90P710 Programming Guide
VERSION:
2.1
PAGE:
106
The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed,
distributed or reproduced without permission from Winbond.
Table No.: 1200-0003-07-A
8.4.2 Move data from SDRAM to SDIO host controller buffer
1. Set
WrSel
bit of
SDGCR
register to select buffer for use. Set
[000]
is use buffer0, and set
[100]
is use buffer1
2. Set
SDBCR
register to set the DMA transfer byte count
3. Set
SDDSA
register to set the DMA transfer starting address
4. Set
DMARd
bit of
SDGCR
register to active DMA
5. Polling
DMARd
bit of
SDGCR
register until it was cleared, or waiting
DWrINT
interrupt of
SDISR
register
8.4.3 Move data from SDIO host controller buffer to SDRAM
1. Set
RdSel
bit of
SDGCR
register to select buffer for use. Set
[000]
is use buffer0, and set
[100]
is use buffer1
2. Set
SDBCR
register to set the DMA transfer byte count
3. Set
SDDSA
register to set the DMA transfer starting address
4. Set
DMAWr
bit of
SDGCR
register to active DMA
5. Polling
DMAWr
bit of
SDGCR
register until it was cleared, or waiting
DRdINT
interrupt of
SDISR
register
8.5 SD Host Interface
Please refer to “
SD Memory Card Specifications Part 1”
and
“The Multimedia Card System
Specification”
for the protocol and programming rule of SD memory card and MMC.
8.5.1 Send Command to SD/MMC Card
1. Set the argument to
SDARG
register.
2. Set command to
CMD_CODE
bit of
SDCR
register.
3. Set
CO_EN
bit of
SDCR
register to enable command output.
4. Polling
CO_EN
bit of
SDCR
register until it was cleared