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

nRF51422 ADC values 1023 constant error

Hi,

I am using SDK10---->ble_app_uart--->pca10028--->s110 for non-invasive GLUCOSE measurement. I checked nrf_adc.h file & used adc_sample = nrf_adc_result_get(); for getting ADC Readings. Further, I am storing it in int32_t data type but for the same sensor in other ST or PIC controllers I got 2000 ADC Values more than 1023 but in this configuration with nrf51422 Target Board I am getting 1023 Constant values?

Please suggest solution to this issue.

Parents
  • Hi,

    The ADC in the nRF51 has a 10 bit resolution. That means you will never get values larger than 2^10-1 = 1023. It doesn't matter what data type you use to store the result in. Other ICs, like Nordic's nRF52 or devices from ST and PIC, might have ADCs with higher resolution. If you get a constant value of 1023 I'm guessing your input voltage is saturated. Please refer to the Reference manual for more details about how to configure the ADC and input voltage range:

Reply
  • Hi,

    The ADC in the nRF51 has a 10 bit resolution. That means you will never get values larger than 2^10-1 = 1023. It doesn't matter what data type you use to store the result in. Other ICs, like Nordic's nRF52 or devices from ST and PIC, might have ADCs with higher resolution. If you get a constant value of 1023 I'm guessing your input voltage is saturated. Please refer to the Reference manual for more details about how to configure the ADC and input voltage range:

Children
Related