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

243件の閲覧回数
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 返信

173件の閲覧回数
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 件の賞賛
返信