Multi ADC - Software triggering - S32K146

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Multi ADC - Software triggering - S32K146

ソリューションへジャンプ
1,943件の閲覧回数
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,869件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Yes, that's correct.

Only these channels can be interleaved:

danielmartynek_0-1617003039848.png

 

Regards,

Daniel

 

元の投稿で解決策を見る

5 返答(返信)
1,925件の閲覧回数
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,907件の閲覧回数
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,897件の閲覧回数
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,879件の閲覧回数
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,870件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Yes, that's correct.

Only these channels can be interleaved:

danielmartynek_0-1617003039848.png

 

Regards,

Daniel