I tested on my f28p55x control card and found some pins' ADC data are incorrect, while some other pin's ADC data are correct.
Further investigation found the ADC data of those ADC input pins which can also be used as GPIO are incorrect, such as below:
- A16/GPIO28
- A17/GPIO20
- A10/GPIO230
while the ADC data of those ADC input pins which can NOT be used as GPIO are correct, such as below:
- A0
- A14
- A15
I then configured Pin A10/GPIO230 as "GPIO_DIR_MODE_IN " like below:
GPIO_setDirectionMode(230, GPIO_DIR_MODE_IN);
GPIO_setQualificationMode(230, GPIO_QUAL_SYNC);
//GPIO_setPinConfig(GPIO_230_GPIO230);
but ADC data of Pin A10 are still incorrect.
I guess I can not configure Pin A10 as GPIO? Could you advise how to configure Pin A10 as ADC input pin ONLY to have correct ADC data? Some code snippet would be very helpful.