Texas Instruments TMS320DM644x Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para não Texas Instruments TMS320DM644x. Texas Instruments TMS320DM644x User's Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir

Resumo do Conteúdo

Página 1 - User's Guide

TMS320DM644x DMSoCMultimedia Card (MMC)/Secure Digital (SD)Card ControllerUser's GuideLiterature Number: SPRUE30BSeptember 2006

Página 2 - Submit Documentation Feedback

www.ti.comStatusandregistersDMA requestsInterruptsARM CPUFIFOMMC/SDinterfaceCLKdividerMMC/SDcardinterface1.4 Supported Use Case Statement1.5 Industry

Página 3 - Contents

www.ti.comNative packetsNativesignalsCMDCLKDAT0 or DAT0−3MMC/SDcontrollerARMEDMAMemoryMMCs or SD cardsSD_CLKSD_CMDSD_DATA0SD_DATA1SD_DATA2SD_DATA3MMC/

Página 4

www.ti.com2.1 Clock ControlMMCCLK(CLKRT)Function clock forMMC/SD controllerMMC/SD controllerMMC/SDinput clockcardMMC/SDMemory clockon CLK pinPeriphera

Página 5

www.ti.com2.2 Signal Descriptions2.3 Protocol Descriptions2.3.1 MMC/SD Mode Write SequencePeripheral ArchitectureTable 1 shows the MMC/SD controller p

Página 6

www.ti.com2 CRC bytesBusylowStartbitEndbitStartbitEndbitCMDDataCLK2.3.2 MMC/SD Mode Read SequencePeripheral ArchitectureFigure 5. MMC/SD Mode Write Se

Página 7 - Read This First

www.ti.comStartbitEndbitCMDDataCLK1 transfersource bit2 CRCbytes2.4 Data Flow in the Input/Output FIFOPeripheral ArchitectureFigure 6. MMC/SD Mode Rea

Página 8 - Trademarks

www.ti.comARM/EDMA reads/writesWrite ReadFIFO8−bit x 32(256−bit)FIFOEDMA event128 or 256 bit128 or 256 bitEDMA eventEDMA eventthe end of atransferPoin

Página 9 - Controller

www.ti.com2.5 Data Flow in the Data Registers (MMCDRR and MMCDXR)1st2nd3rd4th34th 3rd 2nd 1stSupport byten = ”1111”Support byten = ”0111”3rd2nd1st33rd

Página 10 - 2 Peripheral Architecture

www.ti.com1st2nd3rd4th34th3rd2nd1stSupport byten = ”1111”Support byten = ”1110”3rd2nd1st33rd2nd1stSupport byten = ”1100”1st2nd32nd1st0Support byten =

Página 11 - Peripheral Architecture

www.ti.com2.6 FIFO Operation During Card Read Operation2.6.1 EDMA Reads2.6.2 CPU ReadsPeripheral ArchitectureThe FIFO controller manages the activitie

Página 12 - 2.1 Clock Control

2 SPRUE30B – September 2006Submit Documentation Feedback

Página 13 - 2.3 Protocol Descriptions

www.ti.comFIFO Check1/StartFIFOfull?Counter=FIFOLEV?YesNoCapture data,no DMA pendingIncrement counterNoYesGenerate DMAReset counterFIFO check 2YesNo?f

Página 14

www.ti.com2.7 FIFO Operation During Card Write Operation2.7.1 EDMA Writes2.7.2 CPU WritesPeripheral ArchitectureThe FIFO controller manages the activi

Página 15

www.ti.comFIFO Check1/StartFIFOfull?Counter=FIFOLEV?YesNoCapture data,no DMA pendingIncrement counterNoYesGenerate DMAReset counterFIFO check 2YesNo?f

Página 16

www.ti.com2.8 Reset Considerations2.8.1 Software Reset Considerations2.8.2 Hardware Reset Considerations2.9 Initialization2.9.1 MMC/SD Controller Init

Página 17

www.ti.com2.9.3 Initializing the Clock Controller Registers (MMCCLK)2.9.4 Initialize the Interrupt Mask Register (MMCIM)2.9.5 Initialize the Time-Out

Página 18

www.ti.com2.9.7 Monitoring Activity in the MMC/SD Mode2.9.7.1 Determining Whether New Data is Available in MMCDRR2.9.7.2 Verifying that MMCDXR is Read

Página 19

www.ti.com2.9.7.8 Determining When Last Data has Been Written to Card (SanDisk SD cards)2.9.7.9 Checking For a Data Transmit Empty Condition2.9.7.10 C

Página 20

www.ti.com2.10 Interrupt Support2.10.1 Interrupt Events and Requests2.10.2 Interrupt MultiplexingPeripheral ArchitectureThe MMC/SD controller generate

Página 21

www.ti.com2.11 DMA Event Support2.12 Power Management2.13 Emulation ConsiderationsPeripheral ArchitectureThe MMC/SD controller is capable of generatin

Página 22

www.ti.com3 Procedures for Common Operations3.1 Card Identification Operation3.1.1 MMC Card Identification ProcedureProcedures for Common OperationsBe

Página 23 - 2.8 Reset Considerations

ContentsPreface ... 71 Int

Página 24

www.ti.com3.1.2 SD Card Identification ProcedureProcedures for Common OperationsFigure 12. MMC Card Identification ProcedureThe SD card identification

Página 25

www.ti.comProcedures for Common Operations6. Repeat step 4 and step 5 to identify and retrieve relative addresses from all remaining SD cards untilno

Página 26

www.ti.com3.2 MMC/SD Mode Single-Block Write Operation Using CPUProcedures for Common OperationsTo perform a single-block write, the block length must

Página 27 - 2.10 Interrupt Support

www.ti.comARG HIGHRCA ADDRESS HIGHSTATUS 0NEXT DATA BYTEDATA TXMMC controllerregister contentMMC controllerregisterRCA ADDRESS LOWARG LOWSEL/DESEL. CA

Página 28 - 2.13 Emulation Considerations

www.ti.com3.3 MMC/SD Mode Single-Block Write Operation Using the EDMA3.4 MMC/SD Mode Single-Block Read Operation Using the CPUProcedures for Common Op

Página 29

www.ti.comARG HIGHRCA ADDRESS HIGHSTATUS 0NEXT DATA BYTEDATA TXMMC controllerregister contentMMC controllerregisterRCA ADDRESS LOWARG LOWSEL/DESEL. CA

Página 30

www.ti.com3.6 MMC/SD Mode Multiple-Block Write Operation Using CPUProcedures for Common OperationsTo perform a multiple-block write, the same block le

Página 31

www.ti.comARG HIGHRCA ADDRESS HIGHSTATUS 0NEXT DATA BYTEDATA TXMMC controllerregister contentMMC controllerregisterRCA ADDRESS LOWARG LOWSEL/DESEL. CA

Página 32

www.ti.com3.7 MMC/SD Mode Multiple-Block Write Operation Using EDMA3.8 MMC/SD Mode Multiple-Block Read Operation Using CPUProcedures for Common Operat

Página 33

www.ti.comARG HIGHRCA ADDRESS HIGHSTATUS 0NEXT DATA BYTEDATA TXMMC controllerregister contentMMC controllerregisterRCA ADDRESS LOWARG LOWSEL/DESEL. CA

Página 34

4.13 MMC Command Register (MMCCMD) ... 524.14 MMC Argument Register (MMCARGHL) ...

Página 35

www.ti.com4 RegistersRegistersTable 5 lists the memory-mapped registers for the multimedia card/secure digital (MMC/SD) cardcontroller. See the device

Página 36

www.ti.com4.1 MMC Control Register (MMCCTL)RegistersThe MMC control register (MMCCTL) is used to enable or configure various modes of the MMC controll

Página 37

www.ti.com4.2 MMC Memory Clock Control Register (MMCCLK)RegistersThe MMC memory clock control register (MMCCLK) is used to:• Select whether the CLK pi

Página 38

www.ti.com4.3 MMC Status Register 0 (MMCST0)RegistersThe MMC status register 0 (MMCST0) records specific events or errors. The transition from 0 to 1

Página 39

www.ti.comRegistersTable 8. MMC Status Register 0 (MMCST0) Field Descriptions (continued)Bit Field Value Description5 CRCWR Write-data CRC error.0 A w

Página 40 - 4 Registers

www.ti.com4.4 MMC Status Register 1 (MMCST1)RegistersThe MMC status register 1 (MMCST1) records specific events or errors. There are no interruptsasso

Página 41 - Registers

www.ti.com4.5 MMC Interrupt Mask Register (MMCIM)RegistersThe MMC interrupt mask register (MMCIM) is used to enable (bit = 1) or disable (bit = 0) sta

Página 42

www.ti.com4.6 MMC Response Time-Out Register (MMCTOR)RegistersTable 10. MMC Interrupt Mask Register (MMCIM) Field Descriptions (continued)Bit Field Va

Página 43

www.ti.com4.7 MMC Data Read Time-Out Register (MMCTOD)RegistersThe MMC data read time-out register (MMCTOD) defines how long the MMC controller waits

Página 44

www.ti.com4.8 MMC Block Length Register (MMCBLEN)RegistersThe MMC block length register (MMCBLEN) specifies the data block length in bytes. This value

Página 45

List of Figures1 MMC/SD Card Controller Block Diagram ... 102 MMC/SD Contr

Página 46

www.ti.com4.9 MMC Number of Blocks Register (MMCNBLK)4.10 MMC Number of Blocks Counter Register (MMCNBLC)RegistersThe MMC number of blocks register (M

Página 47

www.ti.com4.11 MMC Data Receive Register (MMCDRR)4.12 MMC Data Transmit Register (MMCDXR)RegistersThe MMC data receive register (MMCDRR) is used for s

Página 48

www.ti.com4.13 MMC Command Register (MMCCMD)RegistersNote: Writing to the MMC command register (MMCCMD) causes the MMC controller to send theprogramme

Página 49 - WRITE_BL_LEN field for write

www.ti.comRegistersTable 18. MMC Command Register (MMCCMD) Field Descriptions (continued)Bit Field Value Description12 STRMTP Stream enable.0 If WDATX

Página 50

www.ti.com4.14 MMC Argument Register (MMCARGHL)RegistersNote: Do not modify the MMC argument register (MMCARGHL) while it is being used for anoperatio

Página 51

www.ti.com4.15 MMC Response Registers (MMCRSP0-MMCRSP7)RegistersEach command has a preset response type. When the MMC controller receives a response,

Página 52

www.ti.comRegistersTable 21. R1, R3, R4, R5, or R6 Response (48 Bits)Bit Position of Response Register47-40 MMCCIDX39-24 MMCRSP723-8 MMCRSP67-0 MMCRSP

Página 53 - Table 19. Command Format

www.ti.com4.16 MMC Data Response Register (MMCDRSP)4.17 MMC Command Index Register (MMCCIDX)RegistersAfter the MMC controller sends a data block to a

Página 54

www.ti.com4.18 MMC FIFO Control Register (MMCFIFOCTL)RegistersThe MMC FIFO control register (MMCFIFOCTL) is shown in Figure 39 and described in Table

Página 55

www.ti.comAppendix A Revision HistoryAppendix ATable A-1 lists the changes made since the previous version of this document.Table A-1. Document Revisi

Página 56

List of Tables1 MMC/SD Controller Pins Used in Each Mode ... 132 MMC/SD Mode Wr

Página 57

www.ti.comAppendix ARevision History60 SPRUE30B – September 2006Submit Documentation Feedback

Página 58

IMPORTANT NOTICETexas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications,enhancements, improvemen

Página 59 - Appendix A Revision History

PrefaceSPRUE30B – September 2006Read This FirstAbout This ManualThis manual describes the multimedia card (MMC)/secure digital (SD) card controller in

Página 60 - Appendix A

www.ti.comRelated Documentation From Texas InstrumentsSPRU871 — TMS320C64x+ DSP Megamodule Reference Guide. Describes the TMS320C64x+ digitalsignal pr

Página 61

1 Introduction1.1 Purpose of the Peripheral1.2 Features1.3 Functional Block DiagramUser's GuideSPRUE30B – September 2006Multimedia Card (MMC)/Sec

Comentários a estes Manuais

Sem comentários