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.

[参考译文] RTOS/TIDA-00489:TIDA-00489

Guru**** 2008950 points
Other Parts Discussed in Thread: CC1310
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/simulation-hardware-system-design-tools-group/sim-hw-system-design/f/simulation-hardware-system-design-tools-forum/657290/rtos-tida-00489-tida-00489

器件型号:TIDA-00489
主题中讨论的其他器件:CC1310

工具/软件: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 电池监控器已连接?

请帮帮我。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Kannan、感谢您关注德州仪器 TI 参考设计。 您的查询已收到并转发给设计所有者。 您应在接下来的1-2个工作日内收到回复。

    此致、

    John Fullilove
    应用工程师
    TI Designs
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Kannan、

    您可以使用以下代码:

    空 READ_BATTERY ()

    //读取当前电池电压并转换为 mV
    电压= AONBatMonBatteryVoltageGet ();
    电压=(电压* 125)>> 5;


    我参考这篇文章、其中涵盖了类似的问题:

    e2e.ti.com/.../1732219

    Gus Martinez