ADC to DMA

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
cha1pi
Level 1
Level 1
5 replies posted 5 questions asked 10 sign-ins

Hello,

My application needs to access ADC data and use the DMA to put it into the LMURAM. Here is the code I am using as reference

AURIX_code_examples/code_examples/DMA_ADC_Transfer_1_KIT_TC397_TFT at master · Infineon/AURIX_code_e...

In this example the destination address is the same , for my application I would want the destination address to increment after the ISR has completed. During the next DMA call (ISR) the ADC value would be placed in the next address in the LMURAM. 

0 Likes
1 Solution
Prudhvi_E
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 25 likes received

Hello,

In the mentioned code example the configurations dmaChnsCfg.destinationAddressCircularRange and dmaChnsCfg.sourceAddressCircularRange done in order that the addresses remains the same after transfer.

Please see slide - 9 of the ppt for more details, https://www.infineon.com/dgdl/Infineon-AURIX_DMA_ADC_Transfer_1_KIT_TC397_TFT-Training-v01_00-EN.pdf...

You may adapt the above configuration to your application need and see if it works.

Prudhvi.

View solution in original post

0 Likes
1 Reply
Prudhvi_E
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 25 likes received

Hello,

In the mentioned code example the configurations dmaChnsCfg.destinationAddressCircularRange and dmaChnsCfg.sourceAddressCircularRange done in order that the addresses remains the same after transfer.

Please see slide - 9 of the ppt for more details, https://www.infineon.com/dgdl/Infineon-AURIX_DMA_ADC_Transfer_1_KIT_TC397_TFT-Training-v01_00-EN.pdf...

You may adapt the above configuration to your application need and see if it works.

Prudhvi.

0 Likes