Software Trigger for ADC with eDMA

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Software Trigger for ADC with eDMA

187 Views
SpeedyGonzalesss
Contributor III

Hello,

I am using i.MX RT1176 and MCUXpresso IDE. I want to use ADC with DMA and trig with software. I made some settings. It works in a single cycle. However, when I want to trig the ADC again after the DMA callback arrives, the DMA callback does not work again. How can I run this structure over and over again in software?

SpeedyGonzalesss_0-1717496618455.pngSpeedyGonzalesss_1-1717496631516.pngSpeedyGonzalesss_2-1717496641304.png

SpeedyGonzalesss_3-1717496652905.pngSpeedyGonzalesss_4-1717496660701.png

SpeedyGonzalesss_5-1717496668409.pngSpeedyGonzalesss_6-1717496684504.pngSpeedyGonzalesss_7-1717496697925.png

 

Thank You,

Speedy

0 Kudos
2 Replies

123 Views
SpeedyGonzalesss
Contributor III

When you change the following registers, it automatically reads ADC and DMA callbacks for the same address over and over again. But how can I set this via the config tool rather than manually?

SpeedyGonzalesss_0-1717669142671.png

 

0 Kudos

39 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi,

Thanks for sharing your work. On my side, I also didn't find a way on how to do the corresponding configuration via ConfigTool. Probably logically, the logic in the callback function, including the code for operations such as clearing the marker bit, is something that the customer needs to add on their own.

Best regards,
Gavin

0 Kudos