Part Number:CC2640R2F
Tool/software: Code Composer Studio
Hello, I have recently been transmitting and updating an analog voltage using the following commands
ADC_convert(adc, &adcValue0);
Voltage_Service_SetParameter(VOLTAGE_SERVICE_VOLTAGEONE, VOLTAGE_SERVICE_VOLTAGEONE_LEN, &adcValue0);
I am currently reading adcValue0 on my phone, but the problem is that it seems that the reading is backwards. The digital value for 1.51Volts comes out to about 1427, but I am reading 2714 through the parameter.
Can you explain to me why this is happening and how to fix it?
I am working on transmitting a buffersample through a characteristic, and I may have to fix the values passed into the characteristic as well.
-Salvador