Other Parts Discussed in Thread: CC2540
Hi,
I am using the battery service with following input settings:
ADCCON2_SREF_P0_7(External reference-3.32v)
ADCCON2_SDIV_256(10 bit ADC)
HAL_ADC_CHN_AIN0(Analog input - P0.0)
The percent calculation is errorred. Pls find the following calc:
batt_max = 464(3.0v)
batt_min = 402(2.6v)
Analog input supplied externally = 3.0v
The Percent result should be 100.
But i received 92%. how to reach 100%.