Value for 0.6V should be double of 0.3V.
Looks to me, like ADC is not working linear.
Voltage ADC_ATTEN_0db
0,306 860
0,606 2100
ADC_ATTEN_2_5db
0,306 650
0,606 1555
ADC_ATTEN_6db
0,306 400
0,606 1050
ADC_ATTEN_11db
0,306 170
0,606 542
3,301 4092
Code: Select all
adc1_config_width(ADC_WIDTH_12Bit);
adc1_config_channel_atten(ADC1_CHANNEL_5,ADC_ATTEN_0db);
adc1_get_voltage(ADC1_CHANNEL_5);