Hi globpy.
Thank you for the help.
I got it working now. I can read data.
However the readings seems to be incorrect when the voltage is low.
Foe example, at 2.1V I get 0.7V out of the Adc.
The readings get much more precise when the input voltage gets close to 2.8V.
I looked t the datasheet, but I got confused by all the charts.
Can someone tells me which chart describes this error?
Regards.