Skip to main content
KKIM.6
Senior
July 6, 2022
Solved

If the power is cut, is the micro controller use battery power automatically?

I'm developing STM32WB55VQ power system but I wonder the microcontroller automatically use battery power or not when Vdd is cut.

 

Is there anybody can explain this?

 

This topic has been closed for replies.
Andrew Neil
Andrew NeilBest answer
Super User
July 7, 2022

again, that's all answered in the datasheet.

 From your other Thread:

0693W00000QKfO3QAL.png

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.

17 replies

waclawek.jan
Super User
July 6, 2022

0693W00000QKZObQAP.png 

JW

KKIM.6
KKIM.6Author
Senior
July 6, 2022

Can I use secondary battery for Vbat connection? if possible what happen when power is supplied by battery charger to battery?

waclawek.jan
Super User
July 6, 2022

What do you mean by secondary battery? An accumulator?

You can use accumulator for VBAT. In some STM32 (I did not check for WB) there's even a provision for trickle charging (a switchable resistor from VDD to VBAT).

If the charger does not exceed the maximum voltage for VBAT stated in the datasheet, it is OK.

JW

KKIM.6
KKIM.6Author
Senior
July 6, 2022

Secondary battery means Li-ion/polymer battery. In the embedded system. the battery will connected to the battery charger and the battery charger is continuously charging battery.

My question is whether the charging bias can affect to the microcontroller.

Andrew Neil
Super User
July 6, 2022

This is entirely down to your system design - it's up to you to design it to work the way you want/need it!

"whether the charging bias can affect to the microcontroller"

I don't understand what you mean by that.

The microcontroller neither knows nor cares what is supplying its power: it just needs to remain within the specified power supply limits - see the datasheet.

If you're asking about the charger's behaviour, then you need to refer to the charger documentation.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Andrew Neil
Super User
July 6, 2022

@KKIM.6​ - What "battery" are you talking about?

As @Community member​ showed, the chip has a dedicated "VBAT" power domain - is that what you're talking about?

Or are you talking about a battery to supply your entire system? In that case, the design is down to you - to make it work in whatever way you want/need it to.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
waclawek.jan
Super User
July 6, 2022

VBAT pin supplies only RTC.

​

Read an answer Andrew's questions above.

​

There's no provision to switch between different VDD sources, and they must not exceed voltages given in DS. Design of VDD power source is entirely upon you.

​

JW​

KKIM.6
KKIM.6Author
Senior
July 6, 2022

I have more big issue regarding SMPS in microcontroller.

Can I use the SMPS as AC-DC converter to power microcontroller?

Andrew Neil
Super User
July 7, 2022

Please keep to one question per thread.

If your question here about battery power is answered, please mark the solution.

"Can I use the SMPS as AC-DC converter to power microcontroller?"

Start a new thread for a new question.

Have you studied the datasheet description of what the SMPS does?

You can always give links between threads for reference.

0693W000008y9fZQAQ.png

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
KKIM.6
KKIM.6Author
Senior
July 7, 2022

I wonder what's happen if apply more than 4 V.​

Andrew Neil
Super User
July 7, 2022

Again, the datasheet tells you that.

The 4V is the Absolute Maximum rating; the datasheet defines that term:

0693W00000QKfYNQA1.png 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.