Skip to main content
Associate II
July 12, 2024
Question

STC3117 Missing battery detection

  • July 12, 2024
  • 2 replies
  • 2053 views

If the IC is powered by the battery, how does missing battery detection work ? I am working on a product which will have a USB interface and a single cell Li-Ion battery with charging circuit and a gas gauge. I need to take care of scenarios where the unit is connected over USB to a PC/Laptop but the battery is not connected. How does the firmware (running on an STM32) know that the battery is missing ? 

2 replies

AScha.3
Super User
July 12, 2024

AScha3_0-1720804339848.png

So the stc checks, if battery away...

and firmware can check:

AScha3_1-1720804600961.png

batt removed ...

thats it.

...or i dot understand your question.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate II
July 12, 2024

How is the IC powered if the battery is not connected ?

AScha.3
Super User
July 12, 2024

If the battery is the only supply...not at all, so no problem. :)

cpu is dead , until power coming..

"If you feel a post has answered your question, please click ""Accept as Solution""."
TDK
Super User
July 12, 2024

> How is the IC powered if the battery is not connected ?

You tell us. Is it powered by USB as well, or only by the battery? Show the schematic if you can.

"If you feel a post has answered your question, please click ""Accept as Solution""."