Part Number:LAUNCHXL-CC1310Other Parts Discussed in Thread:CC1310
1. CC1310的参数手册上有Battery Monitor and Temperature Sensor。想咨询有没有相关的例程学习下。例如如何获取电池容量?
Nick Sun:
您好,
很抱歉在SDK中没有相对应的实际示例。
您可以看我如下的提示使用Battery monitor:
#include <ti\devices\cc13x0\driverlib\aon_batmon.h>static uint8_t GetBatteryVoltage(void) {// Return the battery voltage loosing some precision to fit in 8 bitsreturn (uint8_t)((AONBatMonBatteryVoltageGet()) >> 3); }当然这边需要有一个数值转换,请参考18.3.1.10中的Figure 18-10. BAT Register,文档: www.ti.com/…/swcu117h.pdf
我们也给您提供一些相关帖子供您参考:
CC1310电压采集 – 低于 1GHz 论坛 – 低于 1GHz – E2E 设计支持 (ti.com)
CC1310内部电压读取用哪个函数或者有什么方法? – 低于 1GHz 论坛 – 低于 1GHz – E2E 设计支持 (ti.com)希望可以帮助到您。
,
genyi liu:
好的