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

How to calibrate the nRF51 ADC to correct offset and gain error

According to the nRF51822 PS v3.1, table 51, offset error for the internal ADC is up to 2% and the gain error can be up to 2%. Is it possible to correct this error to obtain better accuracy for the ADC?

Parents
  • Very useful info. Two related questions:

    • Why that "-0.5" in the formula? I have an example (yours I guess) where that value is ommited.

    • Is there any way we can automatically read this calibration value from code? For example a function that only runs once at the beggining, or similar. So we don't have to manually get the value with nrfjprog.

    Thanks

Reply
  • Very useful info. Two related questions:

    • Why that "-0.5" in the formula? I have an example (yours I guess) where that value is ommited.

    • Is there any way we can automatically read this calibration value from code? For example a function that only runs once at the beggining, or similar. So we don't have to manually get the value with nrfjprog.

    Thanks

Children
No Data
Related