Skip to main content
KKIM.6
Senior
Jul 6, 2022 1:40 PM UTC
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
Jul 7, 2022 1:54 PM UTC

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
Jul 6, 2022 1:55 PM UTC

0693W00000QKZObQAP.png 

JW

KKIM.6
KKIM.6Author
Senior
Jul 6, 2022 1:58 PM UTC

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
Jul 6, 2022 2:17 PM UTC

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
Jul 6, 2022 2:21 PM UTC

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
Jul 6, 2022 2:25 PM UTC

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
Jul 6, 2022 2:17 PM UTC

@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
Jul 6, 2022 7:17 PM UTC

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
Jul 6, 2022 7:25 PM UTC

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
Jul 7, 2022 8:10 AM UTC

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
Jul 7, 2022 2:04 PM UTC

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

Andrew Neil
Super User
Jul 7, 2022 2:07 PM UTC

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.