Multi ADC - Software triggering - S32K146

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

Multi ADC - Software triggering - S32K146

跳至解决方案
1,940 次查看
rogeliovdm
Contributor II

Hi everyone! I'm trying to control different ADC devices (ADC0 and ADC1 in the processor expert) by means of the software triggering method. At the end of the day, I want to get conversions from 2 different ADC peripherals. 

I can see that the supplyMonitoringEnable is only available for ADC0, and I have several questions here:

1. What does supplyMonitoringEnable exactly means? To enable the reference voltage Vref in order to perform the conversion? 

2. Does this means that if I want to perform 2 queries of each ADC simultaneously,  it won't be possible because of this "supplyMonitoringEnable" not existing in ADC1?

 

Thank you so much for your help in advance!

0 项奖励
回复
1 解答
1,866 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Yes, that's correct.

Only these channels can be interleaved:

danielmartynek_0-1617003039848.png

 

Regards,

Daniel

 

在原帖中查看解决方案

5 回复数
1,922 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Rogelio,

Please refer to the RM.

1.

danielmartynek_0-1616508454509.png

danielmartynek_1-1616508535788.png

If you trigger a conversion on ADC0 channel 0b010101, you can measure the power supply selected in the ADC_SUPPLY register.

danielmartynek_2-1616508650916.png

 

2.

You can trigger both ADC modules simultaneously, this has nothing to do with the internal supply monitoring.

 

Regards,

Daniel

 

1,904 次查看
rogeliovdm
Contributor II

Hi Daniel, 

Thank you so much for your repply, I think that my question was pretty bad formulated, because I misunderstood the ADC0 and ADC1 behaviour. Anyways, what I want is to use the Hardware interleave mode between channels, and I want to know if that is possible using an internal input channel supply of those only available for the ADC0, or if it is mandatory to use only external supplies to the channels. Two questions: 

1. Is it possible to use these ADC0 internal input channel supplies

2. If it is indeed possible, how could I achieve this.

In the diagram is much clearer, what I intend to do:

 

rogeliovdm_0-1616757293221.png

 

0 项奖励
回复
1,894 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Rogelio,

the ADC interleave channel feature allows measuring one ADC input pin by two ADC modules.

For example, PTB13 can be connected to both ADC0_SE8 and ADC1_SE8 at the same time.

The supply monitoring has nothing to do with supplying the ADC, it only allows measuring a selected power supply by the ADC0 module.

Please let me know if this is still not clear,

 

Regards,

Daniel

1,876 次查看
rogeliovdm
Contributor II

Hi Daniel, 

Thanks a lot for your reply. I understand what you say about the ADC interleave channel feature.

About the internal supply monitoring, I was just wondering if that ADC0 internal supply measuring could also be interleaved at some channel, in order to have this measures done internally by both ADC0 and ADC1. 

So, according to this note from the user manual as well, I cannot take an ADC0 internal supply channel and interleave it with an ADC1 channel, right?  

rogeliovdm_0-1616997357044.png

Please correct me if I'm wrong.

Thank you so much in advance!

Rogelio V

0 项奖励
回复
1,867 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Yes, that's correct.

Only these channels can be interleaved:

danielmartynek_0-1617003039848.png

 

Regards,

Daniel