How to use DMA to get ADC result without interrupt in S32K344

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

How to use DMA to get ADC result without interrupt in S32K344

跳至解决方案
2,542 次查看
KerryJ
Contributor II

Hi, I want to learn How to use DMA to get ADC transformation result without ADC interrupt.

I used S32K344,

IDE is S32DS3.4 ,

RTD is S32K3 RTD AUTOSAR 4.4 VERSION 2.0.0

I am confused about how to config that.

Hope to get your help, thanks.

0 项奖励
回复
1 解答
2,534 次查看
PetrS
NXP TechSupport
NXP TechSupport
0 项奖励
回复
8 回复数
2,535 次查看
PetrS
NXP TechSupport
NXP TechSupport
0 项奖励
回复
2,509 次查看
KerryJ
Contributor II

thanks for your help, but my RTD VERSION IS 2.0.0. I can't run the project you give.

0 项奖励
回复
2,500 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I added RTD200 version as well, so you can try.

BR, Petr

0 项奖励
回复
2,530 次查看
MVR
Contributor IV

Hello @PetrS ,

In your example you used 5 ADC channels but in "Adc_Sar_Ip_1" you defined only 1 channel, is that correct?

MVR_0-1661463741717.png

Is it not necessary to put all channels in this array?

Thanks,

MVR

0 项奖励
回复
2,523 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

actually in this example BTCU is used to trigger conversions and command list is created with 5 commands.

PetrS_0-1661499829014.png

DMA then reads result from BCTU data register.

BR, Petr

0 项奖励
回复
2,490 次查看
MVR
Contributor IV

Ok, I understand it,

But my question is: In "Adc_Sar_Ip_1" in the "Channel configurations array" option, don't you need to fill with the 5 channels used in your list?

0 项奖励
回复
2,480 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the "Channel configurations array" option is for specifying which channels will be converted during normal conversion. It configs NCMRx registers. This is not used in the example

BR, Petr

2,473 次查看
MVR
Contributor IV

Hmmm, I understand now! Thanks

0 项奖励
回复