Read Differential adc and print the value serially using uart

Hi all iam trying to read the differential analog voltage between AIN0 and AIN1 which is pin0.02 and pin0.03 and print the voltage which will be in micro volts from 400 micorvolt, and since the examples in sdk uses log_flush i could not get the data or not acess any data from that, i need to acess the data and print the data using uart, can anybody help me out in this, thankyou.

Parents
  • Thankyou Ted for the effort you have put for me.

    details about your starting point in terms of software libraries and targeted hardware will be useful for the community here to know

    My sdk is version 17.1.0 and my target board is nrf 52840 dk board. I can now print the data in uart , only thing is that i could not access the data that the adc has converted, i first tried the single ended adc in the example and tried to integrate it with my code but there was error in compiling.  Since the example code uses log_flush for printing the data i could not find where the data is, but some raw data is been printed which is varied when the adc is varied.So my first aim is to acess the data from the single ended code and to print the data, and then to implement the differential adc and then to print that data.

    And im not using any RTOS in the code, it is just simply a basic implementation.

Reply
  • Thankyou Ted for the effort you have put for me.

    details about your starting point in terms of software libraries and targeted hardware will be useful for the community here to know

    My sdk is version 17.1.0 and my target board is nrf 52840 dk board. I can now print the data in uart , only thing is that i could not access the data that the adc has converted, i first tried the single ended adc in the example and tried to integrate it with my code but there was error in compiling.  Since the example code uses log_flush for printing the data i could not find where the data is, but some raw data is been printed which is varied when the adc is varied.So my first aim is to acess the data from the single ended code and to print the data, and then to implement the differential adc and then to print that data.

    And im not using any RTOS in the code, it is just simply a basic implementation.

Children
Related