1-Bit SD Interface
www.ti.com
364
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
SD Host Controller Interface
11.3.1 Clock and Reset Management
The Power, Reset, and Clock Management (PRCM) module manages the clock and reset functions. The
on-chip SD host controller is sourced by a 120-MHz fixed clock that can be divided down to the required
card clock frequency using the internal 10-bit divider of the module.
The user can reset the module to bring all the internal registers to their default state by calling the PRCM
reset API with the appropriate parameters.
11.4 Initialization and Configuration Using Peripheral APIs
This section discusses the host initialization and configuration example, followed by showing how the
peripheral APIs can implement the standard SD card detection and initialization sequence.
11.4.1 Basic Initialization and Configuration
The host initialization and configuration example follows:
1. Enable SD host clock using PRCMPeripheralClkEnable(PRCM_SDHOST, PRCM_RUN_MODE_CLK).
2. In the pin-mux module, enable the appropriate pins for SD host functionality.
3. For a pin configured as CLK, configure the pin as an output by calling:
PinDirModeSet(<PIN_NO>,PIN_DIR_MODE_OUT)
4. Soft reset and initialize the host controller:
PRCMPeripheralReset(PRCM_SDHOST)
SDHostInit(SDHOST_BASE)
5. Soft reset and initialize the host controller for 15-MHz card clocks:
SDHostSetExpClk(SDHOST_BASE, PRCMPeripheralClockGet(PRCM_SDHOST), 15000000)