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