Nov 23, 2020
10:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 23, 2020
10:00 AM
If I configured ADC interrupts to be handle by DMA, the configuration parameters in DMA how should I choose the configuration parameters, to what are they related? ADC configuration or how can I make sure it is correctly configured to work properly.
Because currently I configured a destination address for the results of ADC to be written in, the DMA is overwriting in address before the defined address in the destination address and trashing these areas before the destination
Because currently I configured a destination address for the results of ADC to be written in, the DMA is overwriting in address before the defined address in the destination address and trashing these areas before the destination
- Tags:
- IFX
3 Replies
Nov 24, 2020
12:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 24, 2020
12:06 AM
Hello, take a look at the DMA_ADC_Transfer_1_KIT_TC297_TFT example, it can be easily ported to TC3xx devices.
It also comes with a tutorial that explain in detail how to configure the DMA: Tutorial
hope it helps,
teoBits
It also comes with a tutorial that explain in detail how to configure the DMA: Tutorial
hope it helps,
teoBits
Nov 24, 2020
01:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 24, 2020
01:57 AM
Is there a required memory alignment for DMA to write? Because currently the DMA is writing in an address before the configured Destination address so i am quite confused
Nov 24, 2020
07:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 24, 2020
07:50 AM
Yes - if you're using circular buffering, the buffer should be aligned. E.g., align a 1K circular buffer on a 1K boundary.