TI中文支持网
TI专业的中文技术问题搜集分享网站

c6747 spi0 edma接收

6747怎么去触发DMA的接收?

spi0Regs->SPIINT0 |= CSL_FMK(SPI_SPIINT0_DMAREQEN,0x01);

这样一条命令吗?

但是没有时钟输出?应该怎么去触发?

如果有例程的话最好,谢谢!

noaming:

下面是MCBSP的一个EMDA传输例子的步骤,你可以大概看一下步骤

*  ============================================================================

*   @n Target Platform: EVM

*  ============================================================================

*   @n <b> Example Description </b>

*   @n In this example, the MCBSP0 is configured in digital loopback mode,

*      with 32 bit data transfer, using sample rate generator to synchronize

*      the frames.Edma mode of transmission is selected.

*      This example,

*          1. Initializes and opens mcbsp module.

*          2. Sets up the hardware to default values and multi channel

*             32 bit data transfer i.e., CSL_mcbspHwSetup() is called for

*             module configuration.

           3. Sets up interrupts corresponding to EDMA and MCBSP.

*          4. Sets up EDMA for synchronizing ate MCBSP.

*          5. Enables MCBSP to Transmit/Receive Data.

*          7. Waits for the interrupt and once the transfer is done closes

*             the EDMA.  

*          8. Does the data comparison to ensure the validity of the data.

*          9. Displays the messages based on step 8.

*

* =============================================================================

赞(0)
未经允许不得转载:TI中文支持网 » c6747 spi0 edma接收
分享到: 更多 (0)