when adc voltage greater than 1.2V , return 1023
i know the p01 pin adc input scale is 0~1.2V, but when i try to input the voltage over 1.2V ,i want to get the adc value(adc_get_sample()) is 1023,but the result is not. it is a Irregular num like 800 or others。
uint32_t adc_sample;
adc_init(GP_ADC_SE, GP_ADC_SIGN, 0);
adc_usDelay(20);
adc_enable_channel(ADC_CHANNEL_P01);
adc_sample = adc_get_sample();
adc_disable();
return adc_sample;