2350196_en-US

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

2350196_en-US

2350196_en-US

S32K344-how to use DMA scatter gather get adc multi channel value

In my project, 50 ADC channels were used, distributed in ADC0/ADC1/ADC2 modules. The ADC channels in each module were randomly distributed, with some continuous and some discontinuous. The ADC module uses scanning mode and continuously performs ADC conversion after startup, without any interruption or MCU involvement. All ADC sampling values of channels are transferred to the associated memory address (such as dma_ adc_value [50]) through the DMA module. It is difficult to understand how to configure the scatter gather collector and do not know how to configure the source address (ADC result register), destination address, offset,  minor loop, and major loop. I am using S32 Design Studio for S32 Platform 3.5, RTD3.0.0, and S32K344 MCU. Do you have any reference routines for related applications? Thank you!


blue0432_0-1776088872257.png

blue0432_1-1776089494996.png



Re: S32K344-how to use DMA scatter gather get adc multi channel value

Hi @blue0432,

You can refer to the MCTPTX1AK324 SW example code: S32K324 Triple Permanent Magnet Synchronous Motor Control (PMSM) Reference Design Board 

Snag_bbec594.png

It configures scatter gather for PWM synchronization and phase‑dependent ADC lists.

However, you can refer to some community material for ADC configuration, which I think will serve you better than scatter gather configuration:

Usual solution is BCTU list/FIFO feeding a DMA result array. S32K3 ADC also supports MPC (Multiple Parallel Conversion) for more than 1 ADC instance:

Snag_bd9ffbc.png

Lastly, you can refer to the S32K3XX SAR-ADC, BCTU AND TRGMUX Training presentation.

Best regards,
Julián

Tags (1)
No ratings
Version history
Last update:
‎04-16-2026 02:37 AM
Updated by: