Announcements

Equip yourself to optimize AURIX™ MCUs for Evs at the EV Webinar. Click here to register.

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

AURIX™ Forum Discussions

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
Moderator
Moderator
Moderator
50 solutions authored 250 sign-ins 10 likes given

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
Moderator
Moderator
Moderator
50 solutions authored 250 sign-ins 10 likes given

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