Hi,
We faced one issue about ADC accuracy, the same configuration, with only one difference on register ADCINTSOCSEL2.
When ADCINTSOCSEL2=0, SOC8's accuracy is not good. When keeping the value ADCINTSOCSEL2 after offset calibration function (AdcOffsetSelfCal()), SOC8 accuracy is good. What could be the issue?
Here are more details:
1) PWM triggers ADC's SOC, after conversion, ADC interrupt initiate.
2) Totally 16 SOCs are triggered, SOC0~7 are by PWM, SOC8~15 are by PWM or by ADCINT, depending on ADCINTSOCSEL2.
3) ADCINTSOCSEL2=0, it's placed after offset calibration.
4) Others are totally the same.
My understanding is, offset is calculated inside AdcOffsetSelfCal(), with ADCINTSOCSEL2=0x5555. This offset maybe not the same for ADCINTSOCSEL2=0.
Thanks a lot.
Br, Jordan