MK22FN256 AtoD Single-ended and Differential Measurement (ADC1)

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

MK22FN256 AtoD Single-ended and Differential Measurement (ADC1)

724件の閲覧回数
briancavanagh
Contributor III

Hi, I'm using ADC1 (MK22FN256) to make a Single-ended and Differential Measurement.

What's not clear to me is how to write code that will retrieve measurementss from Channel-0 (ADC1_SE5b) and Channel-1 (ADC1_DP0 and ADC1_DM0) separately. 

Initially, I added had two components from the 'Components Library' (ADC_LDD).  One for the single-ended and the other for the differential measurements.  I would always get an error message stating "A/D converter is already used by ..." 

After further researching on the support page I figured out I can use Channel-0 and Channel-1 using the same ADC1.

Can someone help me understand how to make a call to Channel-0 and Channel-1 separately?

Thanks,

Brian

 

pastedImage_1.png

pastedImage_2.png

ラベル(2)
0 件の賞賛
返信
1 返信

616件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi brian,

Please try to use the SelectSampleGroup function.

SelectSampleGroup.jpg

Best Regards,

Robin

 

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

0 件の賞賛
返信