This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:TI-RTOS
我正在使用 cc1310
我需要以 mV 为单位监控电池
我的代码是、
int get_bat_status (空)
{
uint32_t bat_volt;
float bat_status=100.0;
if (AONBatMonNewBatteryMeasureReady()){
BAT_VOLT = AONBatMonBatteryVoltageGet ();
BAT_STATUS =(((BAT_VOLT>>>>8)&0x7)*1000 +(BAT_VOLT&0xFF)*1000/256);
}否则{
BAT_STATUS=0.0;
}
return ((int)(bat_status));
}
我已包含库
#include
但当我使用2.9V 电池时、此函数返回3.32mV 的值。
我发现电池监控器正在检查 VDD 电源。
如何获得准确的电池电压值。
哪个 ADC 电池监控器已连接?
请帮帮我。