hello everyone...
i am making cc2540 based device, for that i read swru 191 guide and also see example from keyfob demo,battservice.
but that did't me a help lot.
in my device battery Nominal Voltage is 3.7V and The voltage present at the ADC port will be no more than one third (1/3) of the actual Li-ion cell voltage. Actual voltage measurement should be compared to digital reading to know the actual equivalence of analog reading and digital reading. ADC will be set to have reference voltage as internal which is set to a fixed value of 1.27V.A fully charged Li-ion will be higher than 3.7 V. We will set full charge as equivalent to 4.2 V.
i use P0_7 as my ADC port.
i don't know where and what to do changes in battservice.c and hal_adc.c file
thanks