RM0082
RS_SDIO controller
Doc ID 018672 Rev 1
707/844
32.7.10 HOSTCTRL
register
The HOSTCTRL bit assignments are given in
Table 629.
HOSTCTRL register bit assignments
Bit
Name
Reset
value
Type
Description
[07]
CDSD
1’h0
RW
This bit selects source for card detection.
1’b1- The card detect test level is selected
1’b0 -SDCD# is selected (for normal use)
[06]
CDTL
1’h0
RW
This bit is enabled while the Card Detect Signal
Selection is set to 1 and it indicates card inserted or
not.
1’b1 - Card Inserted
1’b0 - No Card
[05]
SD8MODE
1’h0
RW
This bit selects the data width of the HC. The HD
shall select it to match the data width of the SD card.
1’b1 - 8 bit mode is selected
1’b0 - 8 bit mode is not selected
[04:03]
DMASEL
2’h0
RW
One of supported DMA modes can be selected. The
host driver shall check support of DMA modes by
referring the Capabilities register.
2’b00 - SDMA is selected
2’b01 - 32 bit Address ADMA1 is selected
2’b10 -32 bit Address ADMA2 is selected
2’b11 - 64 bit Address ADMA2 is selected
[02]
HSEN
1’h0
RW
This bit is optional. Before setting this bit, the HD
shall check the High Speed Support in the
capabilities register. If this bit is set to logic ‘0’
(default), the HC outputs CMD line and DAT lines at
the falling edge of the SD clock (up to 25 MHz). If this
bit is set to logic ‘1’, the HC outputs CMD line and
DAT lines at the rising edge of the SD clock (up to 50
MHz)
1’b1 - High Speed Mode
1’b0 - Normal Speed Mode
[01]
DTW
1’h0
RW
This bit selects the data width of the HC. The HD
shall select it to match the data width of the SD card.
1’b1 - 4 bit mode
1’b0 - 1 bit mode
[00]
LEDCTRL
1’b0
RW
This bit is used to caution the user not to remove the
card while the SD card is being accessed. It is not
necessary to change for each transaction.
1’b1 - LED on
1’b0 - LED off