\n

SDH

Peripheral Memory Blocks

address_offset : 0x400 Bytes (0x0)
size : 0x4 byte (0x0)
mem_usage : registers
protection :

address_offset : 0x408 Bytes (0x0)
size : 0x10 byte (0x0)
mem_usage : registers
protection :

address_offset : 0x800 Bytes (0x0)
size : 0xC byte (0x0)
mem_usage : registers
protection :

address_offset : 0x820 Bytes (0x0)
size : 0x20 byte (0x0)
mem_usage : registers
protection :

Registers

SDH_DMACTL

SDH_DMASA

SDH_DMABCNT

SDH_DMAINTEN

SDH_DMAINTSTS

SDH_GCTL

SDH_GINTEN

SDH_GINTSTS

SDH_CTL

SDH_CMDARG

SDH_INTEN

SDH_INTSTS

SDH_RESP0

SDH_RESP1

SDH_BLEN

SDH_TOUT


SDH_DMACTL

DMA Control and Status Register
address_offset : 0x400 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SDH_DMACTL SDH_DMACTL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DMAEN DMARST SGEN DMABUSY

DMAEN : DMA Engine Enable Bit Note 1: If this bit is cleared, DMA will ignore all requests from SD host and force bus master into IDLE state. Note 2: If target abort occurred, DMAEN will be cleared.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

DMA Disabled

#1 : 1

DMA Enabled

End of enumeration elements list.

DMARST : Software Engine Reset Note: The software reset DMA related registers.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect

#1 : 1

Reset internal state machine and pointers. The contents of control register will not be cleared. This bit will auto be cleared after few clock cycles

End of enumeration elements list.

SGEN : Scatter-gather Function Enable Bit
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Scatter-gather function Disabled (DMA will treat the starting address in DMASA as starting pointer of a single block memory)

#1 : 1

Scatter-gather function Enabled (DMA will treat the starting address in DMASA as a starting address of Physical Address Descriptor (PAD) table. The format of these Pads' will be described later)

End of enumeration elements list.

DMABUSY : DMA Transfer Is in Progress This bit indicates if SD Host is granted and doing DMA transfer or not.
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

DMA transfer is not in progress

#1 : 1

DMA transfer is in progress

End of enumeration elements list.


SDH_DMASA

DMA Transfer Starting Address Register
address_offset : 0x408 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SDH_DMASA SDH_DMASA read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ORDER DMASA

ORDER : Determined to the PAD Table Fetching Is in Order or Out of Order
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

PAD table is fetched in order

#1 : 1

PAD table is fetched out of order

End of enumeration elements list.

DMASA : DMA Transfer Starting Address This field pads 0 as least significant bit indicates a 32-bit starting address of system memory (SRAM) for DMA to retrieve or fill in data. If DMA is not in normal mode, this field will be interpreted as a starting address of Physical Address Descriptor (PAD) table. Note: Starting address of the SRAM must be word aligned, for example, 0x0000_0000, 0x0000_0004.
bits : 1 - 31 (31 bit)
access : read-write


SDH_DMABCNT

DMA Transfer Byte Count Register
address_offset : 0x40C Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

SDH_DMABCNT SDH_DMABCNT read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BCNT

BCNT : DMA Transfer Byte Count (Read Only) This field indicates the remained byte count of DMA transfer. The value of this field is valid only when DMA is busy otherwise, it is 0.
bits : 0 - 25 (26 bit)
access : read-only


SDH_DMAINTEN

DMA Interrupt Enable Control Register
address_offset : 0x410 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SDH_DMAINTEN SDH_DMAINTEN read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ABORTIEN WEOTIEN

ABORTIEN : DMA Read/Write Target Abort Interrupt Enable Bit
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Target abort interrupt generation Disabled during DMA transfer

#1 : 1

Target abort interrupt generation Enabled during DMA transfer

End of enumeration elements list.

WEOTIEN : Wrong EOT Encountered Interrupt Enable Bit
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt generation Disabled when wrong EOT is encountered

#1 : 1

Interrupt generation Enabled when wrong EOT is encountered

End of enumeration elements list.


SDH_DMAINTSTS

DMA Interrupt Status Register
address_offset : 0x414 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SDH_DMAINTSTS SDH_DMAINTSTS read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ABORTIF WEOTIF

ABORTIF : DMA Read/Write Target Abort Interrupt Flag (Read Only) Note 1: This bit is read only, but can be cleared by writing '1' to it. Note 2: When DMA's bus master received ERROR response, it means that target abort happened. DMA will stop transfer and respond this event and then go to IDLE state. When target abort occurred or WEOTIF is set, software must reset DMA and SD host, and then transfer those data again.
bits : 0 - 0 (1 bit)
access : read-only

Enumeration:

#0 : 0

No bus ERROR response received

#1 : 1

Bus ERROR response received

End of enumeration elements list.

WEOTIF : Wrong EOT Encountered Interrupt Flag (Read Only) When DMA Scatter-Gather function is enabled, and EOT of the descriptor is encountered before DMA transfer finished (that means the total sector count of all PAD is less than the sector count of SD host), this bit will be set. Note: This bit is read only, but can be cleared by writing '1' to it.
bits : 1 - 1 (1 bit)
access : read-only

Enumeration:

#0 : 0

No EOT encountered before DMA transfer finished

#1 : 1

EOT encountered before DMA transfer finished

End of enumeration elements list.


SDH_GCTL

Global Control and Status Register
address_offset : 0x800 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SDH_GCTL SDH_GCTL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 GCTLRST SDEN

GCTLRST : Software Engine Reset
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect

#1 : 1

Reset SD host. The contents of control register will not be cleared. This bit will auto cleared after reset complete

End of enumeration elements list.

SDEN : Secure Digital Functionality Enable Bit
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

SD functionality Disabled

#1 : 1

SD functionality Enabled

End of enumeration elements list.


SDH_GINTEN

Global Interrupt Control Register
address_offset : 0x804 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SDH_GINTEN SDH_GINTEN read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DTAIEN

DTAIEN : DMA READ/WRITE Target Abort Interrupt Enable Bit
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

DMA READ/WRITE target abort interrupt generation Disabled

#1 : 1

DMA READ/WRITE target abort interrupt generation Enabled

End of enumeration elements list.


SDH_GINTSTS

Global Interrupt Status Register
address_offset : 0x808 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SDH_GINTSTS SDH_GINTSTS read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DTAIF

DTAIF : DMA READ/WRITE Target Abort Interrupt Flag (Read Only) This bit indicates DMA received an ERROR response from internal AHB bus during DMA read/write operation. When Target Abort is occurred, please reset all engine. Note: This bit is read only, but can be cleared by writing '1' to it.
bits : 0 - 0 (1 bit)
access : read-only

Enumeration:

#0 : 0

No bus ERROR response received

#1 : 1

Bus ERROR response received

End of enumeration elements list.


SDH_CTL

SD Control and Status Register
address_offset : 0x820 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SDH_CTL SDH_CTL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 COEN RIEN DIEN DOEN R2EN CLK74OEN CLK8OEN CLKKEEP CMDCODE CTLRST DBW BLKCNT SDNWR

COEN : Command Output Enable Bit Note: When operation is finished, this bit will be cleared automatically, so do not write 0 to this bit (the controller will be abnormal).
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect. (Please use DMARST (SDH_DMACTL[1]) to clear this bit.)

#1 : 1

Enabled. The SD host will output a command to SD card

End of enumeration elements list.

RIEN : Response Input Enable Bit Note: When operation is finished, this bit will be cleared automatically, so do not write 0 to this bit (the controller will be abnormal).
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect. (Please use DMARST (SDH_DMACTL[1]) to clear this bit.)

#1 : 1

Enabled. The SD host will wait to receive a response from SD card

End of enumeration elements list.

DIEN : Data Input Enable Bit Note: When operation is finished, this bit will be cleared automatically, so do not write 0 to this bit (the controller will be abnormal).
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect. (Please use DMARST (SDH_DMACTL[1]) to clear this bit.)

#1 : 1

Enabled. The SD host will wait to receive block data and the CRC16 value from SD card

End of enumeration elements list.

DOEN : Data Output Enable Bit Note: When operation is finished, this bit will be cleared automatically, so do not write 0 to this bit (the controller will be abnormal).
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect. (Please use DMARST (SDH_DMACTL[1]) to clear this bit.)

#1 : 1

Enabled. The SD host will transfer block data and the CRC16 value to SD card

End of enumeration elements list.

R2EN : Response R2 Input Enable Bit Note: When operation is finished, this bit will be cleared automatically, so do not write 0 to this bit (the controller will be abnormal).
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect. (Please use DMARST (SDH_DMACTL[1]) to clear this bit.)

#1 : 1

Enabled. The SD host will wait to receive a response R2 from SD card and store the response data into DMC's Flash buffer (exclude CRC7)

End of enumeration elements list.

CLK74OEN : Initial 74 Clock Cycles Output Enable Bit Note: When operation is finished, this bit will be cleared automatically, so don't write 0 to this bit (the controller will be abnormal).
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect. (Please use DMARST (SDH_DMACTL[1]) to clear this bit.)

#1 : 1

Enabled. The SD host will output 74 clock cycles to SD card

End of enumeration elements list.

CLK8OEN : Generating 8 Clock Cycles Output Enable Bit Note: When operation is finished, this bit will be cleared automatically, so don't write 0 to this bit (the controller will be abnormal).
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect. (Please use DMARST (SDH_DMACTL[1]) to clear this bit.)

#1 : 1

Enabled. The SD host will output 8 clock cycles

End of enumeration elements list.

CLKKEEP : SD Clock Enable Control
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

SD host decides when to output clock and when to disable clock output automatically

#1 : 1

SD clock always keeps free running

End of enumeration elements list.

CMDCODE : SD Command Code The bits contain the SD command code (0x00 - 0x3F).
bits : 8 - 13 (6 bit)
access : read-write

CTLRST : Software Engine Reset
bits : 14 - 14 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect

#1 : 1

Reset the internal state machine and counters. The contents of control register will not be cleared (but RIEN (SDH_CTL[1]), DIEN (SDH_CTL[2]), DOEN (SDH_CTL[3]) and R2EN (SDH_CTL[4]) will be cleared). This bit will be auto cleared after few clock cycles

End of enumeration elements list.

DBW : SD Data Bus Width (for 1-bit / 4-bit Selection)
bits : 15 - 15 (1 bit)
access : read-write

Enumeration:

#0 : 0

Data bus width is 1-bit

#1 : 1

Data bus width is 4-bit

End of enumeration elements list.

BLKCNT : Block Counts to Be Transferred or Received This field contains the block counts for data-in and data-out transfer. For READ_MULTIPLE_BLOCK and WRITE_MULTIPLE_BLOCK command, software can use this function to accelerate data transfer and improve performance. Do not fill 0x0 to this field. Note: For READ_MULTIPLE_BLOCK and WRITE_MULTIPLE_BLOCK command, the actual total length is BLKCNT * (BLKLEN +1).
bits : 16 - 23 (8 bit)
access : read-write

SDNWR : NWR Parameter for Block Write Operation This value indicates the NWR parameter for data block write operation in SD clock counts. The actual clock cycle will be SDNWR+1.
bits : 24 - 27 (4 bit)
access : read-write


SDH_CMDARG

SD Command Argument Register
address_offset : 0x824 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SDH_CMDARG SDH_CMDARG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ARGUMENT

ARGUMENT : SD Command Argument This register contains a 32-bit value specifies the argument of SD command from host controller to SD card. Before trigger COEN (SDH_CTL [0]), software should fill argument in this field.
bits : 0 - 31 (32 bit)
access : read-write


SDH_INTEN

SD Interrupt Control Register
address_offset : 0x828 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SDH_INTEN SDH_INTEN read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BLKDIEN CRCIEN CDIEN RTOIEN DITOIEN WKIEN CDSRC

BLKDIEN : Block Transfer Done Interrupt Enable Bit
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

BLKDIF (SDH_INTSTS [0]) trigger interrupt Disabled

#1 : 1

BLKDIF (SDH_INTSTS [0]) trigger interrupt Enabled

End of enumeration elements list.

CRCIEN : CRC7, CRC16 and CRC Status Error Interrupt Enable Bit
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

CRCIF (SDH_INTSTS [1]) trigger interrupt Disabled

#1 : 1

CRCIF (SDH_INTSTS [1]) trigger interrupt Enabled

End of enumeration elements list.

CDIEN : SD Card Detection Interrupt Enable Bit Enable/Disable interrupts generation of SD controller when card is inserted or removed.
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

CDIF (SDH_INTSTS [8]) trigger interrupt Disabled

#1 : 1

CDIF (SDH_INTSTS [8]) trigger interrupt Enabled

End of enumeration elements list.

RTOIEN : Response Time-out Interrupt Enable Bit Enable/Disable interrupts generation of SD controller when receiving response or R2 time-out. Time-out value is specified at TOUT register.
bits : 12 - 12 (1 bit)
access : read-write

Enumeration:

#0 : 0

RTOIF (SDH_INTSTS [12]) trigger interrupt Disabled

#1 : 1

RTOIF (SDH_INTSTS [12]) trigger interrupt Enabled

End of enumeration elements list.

DITOIEN : Data Input Time-out Interrupt Enable Bit Enable/Disable interrupts generation of SD controller when data input time-out. Time-out value is specified at TOUT register.
bits : 13 - 13 (1 bit)
access : read-write

Enumeration:

#0 : 0

DITOIF (SDH_INTSTS [13]) trigger interrupt Disabled

#1 : 1

DITOIF (SDH_INTSTS [13]) trigger interrupt Enabled

End of enumeration elements list.

WKIEN : Wake-up Signal Generating Enable Bit Enable/Disable wake-up signal generating of SD controller when card is inserted or removed.
bits : 14 - 14 (1 bit)
access : read-write

Enumeration:

#0 : 0

SD Card interrupt to wake-up chip Disabled

#1 : 1

SD Card interrupt to wake-up chip Enabled

End of enumeration elements list.

CDSRC : SD Card Detect Source Selection
bits : 30 - 30 (1 bit)
access : read-write

Enumeration:

#0 : 0

From SD card's DAT3 pin

#1 : 1

From GPIO pin

End of enumeration elements list.


SDH_INTSTS

SD Interrupt Status Register
address_offset : 0x82C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SDH_INTSTS SDH_INTSTS read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BLKDIF CRCIF CRC7 CRC16 CRCSTS DAT0STS CDIF RTOIF DITOIF CDSTS DAT1STS

BLKDIF : Block Transfer Done Interrupt Flag (Read Only) This bit indicates that SD host has finished all data-in or data-out block transfer. If there is a CRC16 error or incorrect CRC status during multiple block data transfer, the transfer will be broken and this bit will also be set. Note: This bit is read only, but can be cleared by writing '1' to it.
bits : 0 - 0 (1 bit)
access : read-only

Enumeration:

#0 : 0

Not finished yet

#1 : 1

Done

End of enumeration elements list.

CRCIF : CRC7, CRC16 and CRC Status Error Interrupt Flag (Read Only) This bit indicates that SD host has occurred CRC error during response in, data-in or data-out (CRC status error) transfer. When CRC error is occurred, software should reset SD engine. Some response (ex. R3) doesn't have CRC7 information with it SD host will still calculate CRC7, get CRC error and set this flag. In this condition, software should ignore CRC error and clears this bit manually. Note: This bit is read only, but can be cleared by writing '1' to it.
bits : 1 - 1 (1 bit)
access : read-only

Enumeration:

#0 : 0

No CRC error is occurred

#1 : 1

CRC error is occurred

End of enumeration elements list.

CRC7 : CRC7 Check Status (Read Only) SD host will check CRC7 correctness during each response in. If that response does not contain CRC7 information (ex. R3), then software should turn off CRCIEN (SDH_INTEN[1]) and ignore this bit.
bits : 2 - 2 (1 bit)
access : read-only

Enumeration:

#0 : 0

Fault

#1 : 1

OK

End of enumeration elements list.

CRC16 : CRC16 Check Status of Data-in Transfer (Read Only) SD host will check CRC16 correctness after data-in transfer.
bits : 3 - 3 (1 bit)
access : read-only

Enumeration:

#0 : 0

Fault

#1 : 1

OK

End of enumeration elements list.

CRCSTS : CRC Status Value of Data-out Transfer (Read Only) SD host will record CRC status of data-out transfer. Software could use this value to identify what type of error is during data-out transfer.
bits : 4 - 6 (3 bit)
access : read-only

Enumeration:

#010 : 2

Positive CRC status

#101 : 5

Negative CRC status

#111 : 7

SD card programming error occurs

End of enumeration elements list.

DAT0STS : DAT0 Pin Status of Current Selected SD Port (Read Only) This bit is the DAT0 pin status of current selected SD port.
bits : 7 - 7 (1 bit)
access : read-only

CDIF : SD Card Detection Interrupt Flag (Read Only) This bit indicates that SD card is inserted or removed. Only when CDIEN (SDH_INTEN[8]) is set to 1, this bit is active. Note: This bit is read only, but can be cleared by writing '1' to it.
bits : 8 - 8 (1 bit)
access : read-only

Enumeration:

#0 : 0

No card is inserted or removed

#1 : 1

There is a card inserted in or removed from SD

End of enumeration elements list.

RTOIF : Response Time-out Interrupt Flag (Read Only) This bit indicates that SD host counts to time-out value when receiving response or R2 (waiting start bit). Note: This bit is read only, but can be cleared by writing '1' to it.
bits : 12 - 12 (1 bit)
access : read-only

Enumeration:

#0 : 0

Not time-out

#1 : 1

Response time-out

End of enumeration elements list.

DITOIF : Data Input Time-out Interrupt Flag (Read Only) This bit indicates that SD host counts to time-out value when receiving data (waiting start bit). Note: This bit is read only, but can be cleared by writing '1' to it.
bits : 13 - 13 (1 bit)
access : read-only

Enumeration:

#0 : 0

Not time-out

#1 : 1

Data input time-out

End of enumeration elements list.

CDSTS : Card Detect Status of SD (Read Only) This bit indicates the card detect pin status of SD, and is used for card detection. When there is a card inserted in or removed from SD, software should check this bit to confirm if there is really a card insertion or removal.
bits : 16 - 16 (1 bit)
access : read-only

Enumeration:

#0 : 0

Card removed. Card inserted

#1 : 1

Card inserted. Card removed

End of enumeration elements list.

DAT1STS : DAT1 Pin Status of SD Card (Read Only) This bit indicates the DAT1 pin status of SD card.
bits : 18 - 18 (1 bit)
access : read-only


SDH_RESP0

SD Receiving Response Token Register 0
address_offset : 0x830 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

SDH_RESP0 SDH_RESP0 read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RESPTK0

RESPTK0 : SD Receiving Response Token 0 (Read Only) SD host controller will receive a response token for getting a reply from SD card when RIEN (SDH_CTL[1]) is set. This field contains response bit 47-16 of the response token.
bits : 0 - 31 (32 bit)
access : read-only


SDH_RESP1

SD Receiving Response Token Register 1
address_offset : 0x834 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

SDH_RESP1 SDH_RESP1 read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RESPTK1

RESPTK1 : SD Receiving Response Token 1 (Read Only) The SD host controller will receive a response token for getting a reply from SD card when RIEN (SDH_CTL[1]) is set. This register contains the bit 15-8 of the response token.
bits : 0 - 7 (8 bit)
access : read-only


SDH_BLEN

SD Block Length Register
address_offset : 0x838 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SDH_BLEN SDH_BLEN read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BLKLEN

BLKLEN : SD BLOCK LENGTH in Byte Unit A 11-bit value specifies the SD transfer byte count of a block. The actual byte count is equal to BLKLEN+1. Note: The default SD block length is 512 bytes.
bits : 0 - 10 (11 bit)
access : read-write


SDH_TOUT

SD Response/Data-in Time-out Register
address_offset : 0x83C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SDH_TOUT SDH_TOUT read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TOUT

TOUT : SD Response/Data-in Time-out Value A 24-bit value specifies the time-out counts of response and data input. SD host controller will wait start bit of response or data-in until this value reached. The time period depends on SD engine clock frequency. Do not write a small number into this field, or you may never get response or data due to time-out. Note: Filling 0x0 into this field will disable hardware time-out function.
bits : 0 - 23 (24 bit)
access : read-write



Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !

This website is sponsored by EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.