Datasheet

Table Of Contents
40.8.25 Host Control 2 Register: SD/SDIO
Name:  HC2R - DEFAULT
Offset:  0x3E
Reset:  0x0000
Property:  -
Note:  The content of the HC2R register is depending on the mode. This description is for SD/SDIO
mode. For e.MMC mode, see 40.8.24 HC2R - EMMC.
Bit 15 14 13 12 11 10 9 8
PVALEN ASINTEN
Access
R/W R/W
Reset 0 0
Bit 7 6 5 4 3 2 1 0
SCLKSEL EXTUN DRVSEL[1:0] VS18EN UHSMS[2:0]
Access
R/W R/W R/W R/W R/W R/W R/W R/W
Reset 0 0 0 0 0 0 0 0
Bit 15 – PVALEN Preset Value Enable
As the operating SDCLK frequency depends on the system implementation, it is difficult to determine
these parameters in the standard host driver. When Preset Value Enable (PVALEN) is set to 1, automatic
SDCLK frequency generationis performed without considering system-specific conditions. This bit
enables the functions defined in PVR.
If this bit is written to 0, the Clock Generator Select bit (CCR.CLKGSEL) and the SDCLK Frequency
Select bit (CCR.SDCLKFSEL) in the Clock Control Register (CCR) are selected by the user.
If this bit is set to 1, CCR.SDCLKFSEL and .CLKGSEL and HC2R.DRVSEL are set by the peripheral as
specified in the Preset Value Register (PVR).
Value Description
0
CCR.SDCLK, CCR.SDCLKFSEL controlled by the user.
1
Automatic selection by Preset Value is enabled.
Bit 14 – ASINTEN Asynchronous Interrupt Enable
This bit can be set to 1 if a card support asynchronous interrupts and Asynchronous Interrupt Support
(ASINTSUP) is set to 1 in CA0R. Asynchronous interrupt is effective when DAT[1] interrupt is used in 4-bit
SD mode. If this bit is set to 1, the user can stop the SDCLK during the asynchronous interrupt period to
save power. During this period, the peripheral continues to deliver the Card Interrupt to the host when it is
asserted by the card.
Value Description
0
Disabled
1
Enabled
Bit 7 – SCLKSEL Sampling Clock Select
The peripheral uses this bit to select the sampling clock to receive CMD and DAT.
This bit is set by the tuning procedure and is valid after completion of tuning (when EXTUN is cleared).
Setting 1 means that tuning is completed successfully and setting 0 means that tuning has failed.
Writing 1 to this bit is meaningless and ignored. A tuning circuit is reset by writing to 0. This bit can be
cleared by setting EXTUN to 1. Once the tuning circuit is reset, it takes time to complete the tuning
sequence. Therefore, the user should keep this bit to 1 to perform a re-tuning sequence to complete a re-
SAM D5x/E5x Family Data Sheet
SD/MMC Host Controller ...
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 1367