This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ADC not converting properly

Hello, I'm using a code posted on this forum to read ADC input and fill an array with the ADC values but I always get values between 166 and 174, (even if I connect the ADC input: AIN2 -> P0.01 to Vcc) anyone knows the reason or the solution.

I'm using the Nordic Nrf51822 EK and here is my code :

thank you for the help

adc_exp.rar

keil debug session.png

Related