Thread 中讨论的其他器件:Z-stack
-
我需要在不使用 ADC 采样的情况下获得电压、我在文档中询问了温度传感器和电池电压收集。但 文档仅提供了用于获取温度的接口、而不是电压的接口、我想知道是否可以获得电池电压?
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.
请参阅 AON 电池监控器 Driverlib 函数、以获得有关如何在应用中使用该函数的指导。
//! \brief 获取电池监控器的测量结果。
//!
//! 此功能将返回当前电池监控器测量值。
//! 每个周期都会更新电池电压测量值。
//!
//! 注意:返回的值未进行符号扩展!
//!
//! 注意使用函数\ref AONBatMonNewBatteryMeasureReady()来测试
//! 测量值的变化。
//!
//! 返回电池电压的当前电池监控器值
//! 测量值 格式大小<3.8>、单位为伏特。
//!
//! \sa AONBatMonNewBatteryMeasureReady()
该返回值如何解析? 我已获得 uint32_t 766。
尊敬的 Yue:
取得到的值并将其除以256、例如766/256 = 2.992V。 您可以将其乘以1、000得到毫伏、例如2.992*1000 = 2992mV。 这是由 NVOCMP 驱动器通过 NVOCMP_checkVoltage 完成的、 如 NVOCMP_MIN_VDD_FLASH_MV 的 Z-Stack 示例中所示: https://dev.ti.com/tirex/content/simplelink_cc13xx_cc26xx_sdk_6_20_00_29/docs/zigbee/html/zigbee/flash_memory-cc13xx_cc26xx.html#non-volatile-memory-low-voltage-detection
此致、
Ryan