Possible Mask error in MKL02Z32VFG4 QFN 16

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

Possible Mask error in MKL02Z32VFG4 QFN 16

ソリューションへジャンプ
879件の閲覧回数
anther
Contributor II

Hi, I'm working in a project with the MKL02Z32VFG4. In this project i need to read the ADC channel 6 placed ( according to KL02P32M48F0RM ) in the PORTB0 (pin 8) by default.  When I put signals in the PIN 8 always read random values. After some days working in this mistake and without figure it out, I was able verify that the PORTB0 doesn't has assigned any ADC channel but, the ADC channels 6 and 4 are linked with the PORTB2 ( pin 10 ).

Could anybody verify this mistake?

thanks.

ラベル(1)
0 件の賞賛
返信
1 解決策
724件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Antonio,

    For KL02Z32VFG4, ADC channel 6 is reserved, ADC0_SE6 is  ADC channel 9, please check the following picture from the reference manual, page 63.

3.jpg

  So, I think you configure the wrong ADC channel, you should choose SC1n[ADCH] = 01001.

Wish it helps you!

If you still have question, please contact me!

Have a great day,
Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
725件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Antonio,

    For KL02Z32VFG4, ADC channel 6 is reserved, ADC0_SE6 is  ADC channel 9, please check the following picture from the reference manual, page 63.

3.jpg

  So, I think you configure the wrong ADC channel, you should choose SC1n[ADCH] = 01001.

Wish it helps you!

If you still have question, please contact me!

Have a great day,
Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
724件の閲覧回数
anther
Contributor II

Hi Jingjing,

Thanks for your reply, I use to work with the specific data sheet ( KL02P32M48SF0) of the uC and didn't check the page 63 of the sub-family reference manual.

kl02pinout.JPG

I thought that the name of ADC0_SE6 was related with Channel 6. but now I can see that to decode is needed a "conversion table".

0 件の賞賛
返信