LPC845 Multiple channel ADC.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC845 Multiple channel ADC.

738 次查看
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 回复

718 次查看
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 项奖励
回复