cancel
Showing results for 
Search instead for 
Did you mean: 

STC3115 - do we really need to use the RAM

dimitarkunchev
Associate II

Hi

I am looking into STC3115 for a device, powered by a LiPo battery. The battery is not removable, main CPU turns off during low-power states.

Looking at the AN4324 system integration manual, it describes the procedure to use the embedded RAM to save and restore some register values. But... why? If the fuel gauge does not lose power, its register values should be maintained. If it does lose power, the RAM itself will be cleared. What am I missing here? I think that on boot, I should just check if BatFail or PoR is 1, and write default values if they are. In what scenario are the configuration registers cleared, but the RAM - maintained?

In addition, what if the user charges the device without the main CPU running? In that case, the RAM restoration would overwrite the SoC value in the gauge?

Am I right to think that this whole business with the RAM save/restore is intended for some different device setup?

Thanks for any input

0 REPLIES 0