How to Configure ADC Multiple Channels with DMA using Software Trigger in S32K358

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to Configure ADC Multiple Channels with DMA using Software Trigger in S32K358

205 次查看
D_K
Contributor I

Hello,

I am working on the S32K358 and I want to configure the ADC to read multiple channels using DMA. Specifically, I would like to:

Use a software trigger to start ADC conversion.

Configure the DMA so that the converted results from multiple channels are transferred to a buffer automatically.

Handle the sequence of multiple ADC channels without CPU intervention for each conversion.

I am a bit confused about the steps required in the S32DS + RTD environment (or SDK).

How do I configure the ADC for multiple channels with software trigger?

How should I set up the DMA TCD (Transfer Control Descriptor) so that each ADC conversion result is placed correctly in memory?

Is there an example or application note for ADC + DMA + software trigger on S32K3 MCUs?

Any guidance, example code, or reference material will be very helpful.

Thanks in advance!

标记 (1)
0 项奖励
回复
1 回复

135 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I posted one example for continuous scan of multiple ADC channels with DMA reading on 
https://community.nxp.com/t5/S32K/How-to-Configure-ADC-Multiple-Channels-with-DMA-using-Software/td-...
It is for S32K312, but you can refer to it.
The DMA setting is dependent on which ADC channels are going to be sampled. Ideally consecutive channels should be used, so DMA can be easily set. 

BR, Petr

0 项奖励
回复