MSP430G2332 3.7V锂电池供电,如何测量电池电压,不采用外部电阻分压的方式。
电路设计时没有用外部分压测电压的电路,锂电池是直接给芯片供电的。
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.
MSP430G2332 3.7V锂电池供电,如何测量电池电压,不采用外部电阻分压的方式。
电路设计时没有用外部分压测电压的电路,锂电池是直接给芯片供电的。
哦,选择11通道,貌似是Vcc/2.
但是感觉通过公式:Vcc = (ADC * 2.5 / 1023)*2, 实际电压不相符。
初始化代码如下: