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! 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
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:
Example S32K312 PIT BTCU parallel ADC FIFO DMA DS3.5 RTD300
Example S32K344 PIT BTCU parallel ADC FIFO DMA DS3.5 RTD300
ADC parallel conversion
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:
Lastly, you can refer to the S32K3XX SAR-ADC, BCTU AND TRGMUX Training presentation. Best regards, Julián
View full article