S32K322 : How to directly obtain the data from ADC0 using DMA without using BTCU?

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

S32K322 : How to directly obtain the data from ADC0 using DMA without using BTCU?

163 Views
jichengyou
Contributor I

Hello everyone:

       How to directly obtain the data from ADC0 using DMA without using BTCU? 

       This is because my BTCU has already been used for data acquisition by ADC1. I want to separately acquire the data from ADC0 and ADC1.

        Please let me know if this is possible. If it is feasible, please also tell me how to set the source address and destination address of the DMA.

        There is another issue. When using DMA to obtain the data from ADC1 in the BTCU, I found that the order of the data returned by DMA is different from the channel order I set in the list of BTCU. Could you please tell me how to make their orders correspond one-to-one? Thank you.

        The attachment is the engineering I am currently using. Please have a look.

 

0 Kudos
Reply
1 Reply

132 Views
_Leo_
NXP TechSupport
NXP TechSupport

Thank you for your interest in our products and for contributing to our community.

BCTU is most flexible way trigger ADC instances.

Please refer to the provided example in the following community post for a BCTU -> ADC -> DMA configuration for parallel conversion:

https://community.nxp.com/t5/S32K/Questions-about-3xADC-and-BCTU-S32K344/td-p/2128105

_Leo__1-1754595611593.png

It is possible to separately acquire the data from ADC0 and ADC1.

You can use a BctuInternalTrigger_0 for ADC0 configuring Adc Target Mask = 0b001.

And a second BctuInternalTrigger_1 for ADC1 configuring Adc Target Mask = 0b010.

You should configure the Bctu LIST Items for all ADC instances, but you can separate them using Conversion List Start Index and Last Channel boxes.

Additional examples can be found in the following post:

https://community.nxp.com/t5/S32K-Knowledge-Base/RTD400-LLD-K344-ADC-SW-HW-trigger/ta-p/1966179

I hope this information is helpful.

0 Kudos
Reply