Quantcast
Channel: Infineon Forums
Viewing all articles
Browse latest Browse all 9892

Linked list multi block DMA transfer with DAVE 4 / XMCLib

$
0
0
Hi,

Here is another example to copy with the GDMA from a pheripheral to memory via linked list.
Regards
Eric


* This example shows a DMA transfer from VADC to an array.
* With a CCU8 trigger the sampling of 2 Pins is started (P15.3, P15.2, @10kHz).
* The Result is stored in an array of 16 elements. The order is A,B,A,B.
*
* To enlarge the time between 2 transfers 4 channels instead of 2 channels are used.
* The additional 2 channels are also connected to P15.3 and P15.2. (VADC Alias feature)
* But have their own result registers.
* The 4th result generates an DMA trigger where all 4 results are stored in an array.
*
* The DMA is configured as list with 3 elements. After the 3th transfer is completed an interrupt occurs.
* The ISR "GPDMA0_0_IRQHandler" in global_dma_conf.c checks the correct interrupt and calls the function "user_event_handler".
*
* For debugging purpose the the function "user_event_handler" disables the DMA, provide a breakpoint and enable the DMA again.
*
* Function reinit_ADC() is called as workaround for errata ADC_CM.001
?????

Viewing all articles
Browse latest Browse all 9892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>