LPC845 Multiple channel ADC.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC845 Multiple channel ADC.

732 Views
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.

Labels (1)
0 Kudos
Reply
1 Reply

712 Views
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 Kudos
Reply