LPC845 Multiple channel ADC.

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

LPC845 Multiple channel ADC.

734件の閲覧回数
emb02
Contributor IV

I am using LPC845 I want to run ADC in my application. single channel ADC working is fine and also two channel simultaneously working ok. but when I configure 3 channel I am getting problem. I stuck in (ADC_GetChannelConversionResult(ADC_Type *base, uint32_t channel, adc_result_info_t *info) this function.

Please help me to resolve this problem.

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

714件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

When you sample multiple ADC analog channel, I suggest you read the global ADC data register instead of a specific channel data register, because you do not know if the channel has been converted.

Pls call the

bool ADC_GetConvSeqAGlobalConversionResult(ADC_Type *base, adc_result_info_t *info)

or

bool ADC_GetConvSeqBGlobalConversionResult(ADC_Type *base, adc_result_info_t *info)

based on you use Sequ A or Sequ B.

Hope it can help you

BR

XiangJun Rong

 

0 件の賞賛
返信