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

ADC_RESULT in nrf51822

I was trying to calculate analog voltage in nrf51822 through ADC. I used analog 2 pin ref voltage =1.2v pre scaler = 1/3 so while i connected 0.9v to analog pin. I see analog result as 0xDB. I was trying to calculate voltage through formula input voltage = 1.2v * (1/pre-scalar)*(ADC_RES/256). My voltage doesnt match to ADC_result. Can you please provide me solution for calculating input voltage?

Related