Why is ADC example in SDK has channel 13

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

Why is ADC example in SDK has channel 13

ソリューションへジャンプ
2,073件の閲覧回数
smittal2
Contributor III

Hi,

I'm looking at the adc_temperature example for QN9080 in MCUXpresso and the ADC channel is defined as 13. How is it possible when the data sheet of QN9080 lists only 8 channels for ADC.

Can someone please explain this?

pastedImage_1.png

Thanks,

Sandeep

ラベル(3)
1 解決策
1,905件の閲覧回数
mahi
Contributor IV

Hi Sandeep,

have a look at the user manual https://www.nxp.com/webapp/Download?colCode=UM11023 .

Table 466. ADC input multiplex --> Channel Index 13 = (internal) temperature sensor

Regards
 Martin

元の投稿で解決策を見る

7 返答(返信)
1,906件の閲覧回数
mahi
Contributor IV

Hi Sandeep,

have a look at the user manual https://www.nxp.com/webapp/Download?colCode=UM11023 .

Table 466. ADC input multiplex --> Channel Index 13 = (internal) temperature sensor

Regards
 Martin

1,905件の閲覧回数
smittal2
Contributor III

Thanks Marin and Estephania. The document shared by Martin in table 466 made sense to me. I can successfully configure the ADC now. I have a better understanding for the ADC in QN9080 now.

Thanks to you both for your help.

0 件の賞賛
1,905件の閲覧回数
smittal2
Contributor III

Hi Estephania/Martin,

I understand that it is temperature sensor. But in the pin config tools it's is routed to ADC4 channel on GPIOA8.

So, I'm confused why the channel is 13 instead of channel 4 if it is using ADC4.

Thanks

0 件の賞賛
1,905件の閲覧回数
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

Please try implementing this without the config tools. The ADC channel 13 it's for the temperature sensor, in that example you will only need to change the pin and channels for the one you want in the ADC initialization.

Regards,

Estephania

0 件の賞賛
1,905件の閲覧回数
smittal2
Contributor III

I don't want to use the internal sensor. I want to give an external analog signal using one of the Analog GPIO pins. How can I route a GPIO analog pin to an ADC channel? 

Thanks

0 件の賞賛
1,905件の閲覧回数
mahi
Contributor IV

That's also written in the manual.

You'll have to set the pin MUX control register 0 (table 29) accordingly --> Pin MUX table (table 95).

You should also have a look at the Pad* registers.

0 件の賞賛
1,905件の閲覧回数
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

Which demo are you using as a reference ?

Regards,

Estephania

0 件の賞賛