Download Print this page
NXP Semiconductors MC9328MX1 Setup And Use

NXP Semiconductors MC9328MX1 Setup And Use

Card/secure digital host controller

Advertisement

Quick Links

Freescale Semiconductor
Application Note
Setup and Use of the Multimedia
Card/Secure Digital Host Controller
MC9328MX1, MC9328MXL, and MC9328MX21
by: Jason Castillo
1

Abstract

This document describes the Multimedia Card (MMC)
and the Secure Digital (SD) modules on Freescale
Semiconductor's i.MX application processors. This
document gives an overview of the similarities and
differences of both the MMC and SD protocols and
cards including configuration of the MMC/SD module.
The document also describes the interface of the
MMC/SD modules, specifically the card identification
mode and the system clock controller, along with
example code. System considerations at various data
transfer rates are included.
This document applies to the following devices,
collectively called i.MX throughout:
MC9328MX1
MC9328MXL
MC9328MX21
© Freescale Semiconductor, Inc., 2005. All rights reserved.
Document Number: AN3049
Contents
1 Abstract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
2 MMC/SD Module Overview . . . . . . . . . . . . . . . . .2
3 MMC/SD Module Configuration . . . . . . . . . . . . . .2
5 Special Considerations . . . . . . . . . . . . . . . . . . .10
6 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Rev. 0, 10/2005

Advertisement

loading
Need help?

Need help?

Do you have a question about the MC9328MX1 and is the answer not in the manual?

Questions and answers

Summary of Contents for NXP Semiconductors MC9328MX1

  • Page 1: Table Of Contents

    Rev. 0, 10/2005 Application Note Setup and Use of the Multimedia Card/Secure Digital Host Controller MC9328MX1, MC9328MXL, and MC9328MX21 by: Jason Castillo Abstract Contents 1 Abstract ....... . .1 This document describes the Multimedia Card (MMC) 2 MMC/SD Module Overview .
  • Page 2: Mmc/Sd Module Overview

    MMC/SD Module Overview MMC/SD Module Overview This section provides an overview of both the Multimedia Card (MMC) and Secure Digital Card (SD) modules. The MMC/SD module includes the following features: • Supports up to 10 cards (including one SD card) •...
  • Page 3 MMC/SD Module Configuration Table 1. MMC/SD Card Pin Assignment Each card has a set of information registers that hold the operating parameters and other card conditions. See the description in Table 2. Details of each register can be found in card registers chapter in both the MultiMediaCard System Specification and the SD Memory Card Specification.
  • Page 4 MMC/SD Module Configuration Pin Configuration The MMC/SD module uses six I/O pins to communicate with external MMC/SD cards. • SD_CMD—Bidirectional command/response signal between the MMC/SD module and the card. Open-drain for initialization state and push-pull for fast command transfers. • SD_Clk—MMC/SD module to card clock signal (output).
  • Page 5: Interfacing With The Mmc/Sd Module

    Interfacing with the MMC/SD Module GPCR |= 0x00000400; // DS_SLOW = 26 MHz / 30 pF GPCR |= 0x00000800; // DS_SLOW = 26 MHz / 45 pF GPCR |= 0x00000C00; // DS_SLOW = 26 MHz / greater than 45 pF /*****************************************/ /* Include the AIPI Module Configuration */ /*****************************************/...
  • Page 6 Interfacing with the MMC/SD Module 4.1.2 Reset When the i.MX is powered up, all cards (including the cards having been in inactive state) are in idle state. Sending the command GO_IDLE_STATE (CMD0) also sets all cards into idle state. After the cards are reset through the hardware or software (CMD0): •...
  • Page 7 Interfacing with the MMC/SD Module different card applications. The resulting clock is used throughout the module. Figure 1 illustrates the clock controller module. Figure 1. i.MX1/L Clock Controller Module (MMC/SD uses PERCLK2 Signal) To set the clock controller to desire frequency, you must configure the clock controller register: CSCR, PCDR, MPCTL0, MPCTL1, SPCTL0, and SPCTL1.
  • Page 8 Interfacing with the MMC/SD Module CSCR = 0x20008003; PCDR = 0x0; /* PERCLK2 feeding SD = Sys PLL(16.384) divided by 1 */ //-------------------------------------------------------------------------------------// //------------------------------- Set up Digital PLL ----------------------------------// // NOTE: Digital PLL (DPLL) consists of both the MCU PLL and System PLL // Input Frequency = 16.384 MHz // MFI = 5;...
  • Page 9 Interfacing with the MMC/SD Module block of data then repeats. Figure 2 is a screenshot of both the SD_CLK and the SD_DAT [0] pins running on the i.MX1 using DMA transfer. Figure 2. SD_CLK (1) and SD_DAT [0] (2) Multiple Block Write 4.3.2 Block Read Blocks of data are read by sending data from the MMC/SD card to the host.
  • Page 10: Special Considerations

    Special Considerations Figure 3. SD_CLK (1) and SD_DAT [0] (2) Multiple Block Read Both screenshots were captured using a low driving strength. If the driving strength (DS_SLOW bits) is set to the maximum drive strength, it causes overshoot on the SD_CLK signal. 4.3.3 Stream Write and Read The Stream Mode is not supported in any of the three processors.
  • Page 11: References

    The following i.MX technical reference manuals may be found at the Freescale Semiconductor Inc. World Wide Web site at http://www.freescale.com/imx. These documents may be downloaded directly from the World Wide Web site, or printed versions may be ordered. [1]: MC9328MX1 Data Sheet (order number MC9328MX1) [2]: MC9328MXL Data Sheet (order number MC9328MXL) [3]: MC9328MX1 Reference Manual (order number MC9328MX1RM) Setup and Use of the Multimedia Card/Secure Digital Host Controller Application Note, Rev.
  • Page 12 References [4]: MC9328MXL Reference Manual (order number MC9328MXLRM) [5]: M9328MX1_L_ADS_V2_0 ADS Schematic and Orcad File [6]: AN2906 MMC/SD Host Controller Addendum Application Note (order number AN2906) Standard Documents The following standard documentations were used as reference for this application note and can be purchased at their respective Web sites.
  • Page 13 NOTES Setup and Use of the Multimedia Card/Secure Digital Host Controller Application Note, Rev. 0 Freescale Semiconductor...
  • Page 14 How to Reach Us: Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products. There are no express or implied copyright licenses granted Home Page: hereunder to design or fabricate any integrated circuits or integrated circuits based on the information www.freescale.com in this document.

This manual is also suitable for:

Mc9328mxlMc9328mx21