NO:
W90P710 Programming Guide
VERSION:
2.1
PAGE:
105
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
Secure Digital Registers (8)
SDICR
0xFFF0.7300
R/W
SD Interface Control Register
0x0000.0000
SDHINI
0x FFF0.7304
R/W
SD Host Initial Register
0x0000.0018
SDIIER
0x FFF0.7308
R/W
SD Interface Interrupt Enable Register
0x0000.0000
SDIISR
0x FFF0.730C
R/W
SD Interface Interrupt Status Register
0x0000.00XX
SDAUG
0x FFF0.7310
R/W
SD Command Argument Register
0x0000.0000
SDRSP0
0x FFF0.7314
R
SD Receive Response Token Register 0
0xXXXX.XXXX
SDRSP1
0x FFF0.7318
R
SD Receive Response Token Register 1
0x0000.XXXX
SDBLEN
0x FFF0.731C
R/W
SD Block Length Register
0x0000.0000
Internal Buffer Access Register (256)
FB0_0
…..
FB0_127
0x FFF0.7400
…..
0x FFF0.75FC
R/W Flash
Buffer
0
Undefined
FB1_0
…..
FB1_127
0x FFF0.7800
…..
0x FFF0.79FC
R/W Flash
Buffer
1
Undefined
8.4 SDIO Host Controller
Accessing data through SDIO host controller interface takes two steps. For reading data from SD
card, it should read the data from SD to SDIO host controller buffer, and then read the data from the
buffer to SDRAM. Similarly, for writing data to SD card, the data should be copied to SDIO host
controller buffer, and then write the data from this buffer to SD card.
There are 2 buffers in SDIO host controller. For better efficiency, user can copy data from
SDRAM to one of them while writing data to SD card from the other., or read data from SD card to
one buffer while moving data to SDRAM from the other.
8.4.1 SDIO host controller Initialization Sequence
1. Set the
SWRST
bit of
SDGCR
register for 10ms to reset the SDIO host controller engine, and
then clear it.
2. Set the
SDIOEN
bit of
SDGCR
register to enable the SDIO host controller operation.
3. Set the ERRIEN,
DRdIEN, DWrIEN, SDHIEN,
and
SDIOEN
bits of
SDIOIER
register to enable
all interrupts.