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

Saadc over BLE sanity check

Hi,

I merge saadc and ble_uart together in order to send send sensor output(now just analog voltage) to mobile app. I want to check weather the ADC is working properly or not. Digital values for same voltage are very different from each other and it seems changing voltage does have impact on digital value. How can I check adc's functionality?

Best regards,

Kosar

Parents Reply Children
  • No, it can never be FFFF. It looks a bit strange for a few reasons:

    • It is a signed integer, so if the most significant bit was 1, this would be a negative number (and that will only happen with low values samples when there is a DC offset)
    • The highest bit is in the second byte (reading from the left), due to endianness
    • The sample is not 16 bit, so the upper bits (except for the last sign bit), are not used (depending on configuration, can be 8, 10 or 12 bits).
Related