cancel
Showing results for 
Search instead for 
Did you mean: 

I am using STM32 controller with stbc02 battery charging chip from st for monitoring the battery level voltage. While trying to read the battery adc voltage from BATMS pin,it always shows 0.How to set the battery to be in working mode?

KSakt.1
Associate
 
3 REPLIES 3
Peter BENSCH
ST Employee

By default the switch behind BATMS is switched off, disconnecting BATSNS from the external voltage divider (see table 8 of the datasheet).

Did you try to enable it using SW_SEL pulse 10?

Did you try to measure the voltage at the external voltage divider using a multimeter?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
KSakt.1
Associate

I have a doubt that how to generate the pulse number as 10? datasheet mentioned with time characteristics also for start and stop bit. Attaching the document below for reference

It shouldn't be too complicated if you're using a timer, see your other question.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.