Post Go back to editing

How can I config the sport and DMA.

Category: Datasheet/Specs
Product Number: ADSP-bf702

Now i have a code  without comment. This code are already configure the sport and DMA, and it can work, but i don't know why it need to set those parameter like. Is there some docement can explain it?

// Init DMA0, for SPORT0 A
*pREG_DMA0_CFG &= ~ENUM_DMA_CFG_EN;
*pREG_DMA0_CFG = 0x001224; /* Setting the DMA */
*pREG_DMA0_ADDRSTART = &adc_sport0_a_tx[0]; /* Setting the DMA Address */
*pREG_DMA0_XCNT = SPORT_DMA_DEPTH;
*pREG_DMA0_XMOD = SPORT_DMA_WIDTH;

Thread Notes