Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I'm having some bother with the DMA and understanding a few concepts. I've spent most of the weekend on this and can not get it working so turning to the trusted sages on here.
Basically I want to read in some 16bit values to , do something with them and pass them out again. So far I only have the Tx working with some sine wave test data but it would make my week if I could just pass Rx to Tx! I have the I2S block and DMA_1_ is connected to the Tx_DMA and DMA_2 to the Rx_DMA.
Thanks in advanced, code below.
#define DMA_1_BYTES_PER_BURST 1
#define DMA_1_REQUEST_PER_BURST 1
#define DMA_1_SRC_BASE (CYDEV_SRAM_BASE)
#define DMA_1_DST_BASE (CYDEV_PERIPH_BASE)
/* DMA Configuration for RxDMA */
#define DMA_2_BYTES_PER_BURST (1)
#define DMA_2_REQUEST_PER_BURST (1)
#define DMA_2_SRC_BASE (CYDEV_PERIPH_BASE)
#define DMA_2_DST_BASE (CYDEV_SRAM_BASE)
#define LEN 101
CyGlobalIntEnable; /* Enable global interrupts. */