当前在安卓13的XBL阶段样机启动需要读取电池电压,采用如下流程:
读取单节电池电压,在调试中发现,如果充电器插入状态下可正常获取电池电压,如果没插充电器则无法获得。这样的话无法根据开机电压来判断是否可以开机。
未充电状态下如何获得电池电压,需要哪些设置,请麻烦确认一下,谢谢!
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.
您好,请参考下面内容
You would need to disable the Watchdog and Enable the ADC. Please read Section 8.3.5, "To enable the ADC, the ADC_EN bit must be set to ‘1’. The ADC is allowed to operate if either the VVBUS>VVBUS_UVLO_RISING or VBAT>VBAT_UVLO_RISING is valid. If no adapter is present, and the VBAT is less than VBAT_UVLO_RISING, the device will not perform an ADC measurement, nor update the ADC read-back values in REG17 through REG24."