S32K144 multiple ADC channels acquisition issues

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

S32K144 multiple ADC channels acquisition issues

1,058 Views
547416104
Contributor III

Hello EveryOne,

I need to use about 8 ADC channels to collect ADC values, They are AD00(PTA0), AD01(PTA1), AD10(PTA2), AD11(PTA3), AD12(PTD2), AD13(PTD3), AD112(PTA15) and AD113(PTA16).

I used SDK to develop the ADC collect, the configure as bellow picture, and use the bellow code to trige each ADC channel to collect ADC value, now only AD00(PTA0) and AD10(PTA2) can get the ADC  value ,other channels can not collect ADC value, please help ,thanks

 

547416104_0-1666102914680.png

547416104_1-1666102934245.png

547416104_3-1666103007826.png

 

547416104_2-1666102971073.png

trigle ADC collect code:

547416104_4-1666103176078.png

 
 

 

 

 

 

0 Kudos
Reply
5 Replies

1,057 Views
547416104
Contributor III

check ADC collect end code

547416104_0-1666103370455.png

Get the ADC collect value

547416104_1-1666103420140.png

 

0 Kudos
Reply

1,023 Views
Senlent
NXP TechSupport
NXP TechSupport

参考这个demo吧,也是software trigger,SDK版本是新一点的,使用了多通道的软件触发ADC采样

0 Kudos
Reply

1,034 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@547416104

     When selecting software trigger, you need to pay attention to the conversion time between the two channels, please try to add an appropriate delay and test it again.

0 Kudos
Reply

1,028 Views
547416104
Contributor III

Hello Senlent,

I have just add delay for ADC0 ch0 and ch1, but there is no value can be get from ch1. could you help add demo code,thanks

547416104_0-1666166957030.png

 

0 Kudos
Reply

1,022 Views
547416104
Contributor III

The issue is fixed, I just change channel parameters as 0, the test result is OK.

0 Kudos
Reply