Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

RTC battery and VCC switching circuit

+0
−1

The circuit shown below is used on one of my PCBs to switch the VBAT supply for the RTC, ensuring timekeeping continues whenever the main supply (VCC) is unavailable.

Circuit Operation

  • Under normal conditions, when VCC is available, VBAT is powered through D1.

  • When VCC is removed, VBAT is instead supplied by the coin cell through P1 and Q1. This behavior matches the intended design.

circuit

Issue Observed

  • After about a month in use, the RTC coin cell (nominally 3 V) was found discharged to 1.6 V. This is unexpected, since such batteries are typically expected to last several years in standby applications.

Measurements

With VCC present:

  1. VBAT = 3.117 V

  2. Current = –2.25 mA (appears to flow into the coin cell).

With VCC absent:

  1. VBAT = 2.893 V

  2. Current = ~16 µA

I’m not fully certain if Q1’s biasing is the root cause, but it seems probable given the reverse current flow when VCC is present.

Edit: I checked the STM32 datasheet and the MCU has inbuilt switching mechanism. I don't think the external switching will be required.

STM32L451

I came across another point in the application note which says -

BATTERY RTC

Can I use BAS716 diode? It’s a low-leakage small-signal silicon diode in SOD-523. Nexperia specifies very low reverse current (typ ~0.2 nA) and 75–85 V reverse rating; it’s designed for low-leak applications.

At the tiny RTC currents (µA range), the forward drop of a silicon switching diode is modest (well below the 1.25 V quoted at high test currents).

link - https://www.digikey.com/en/products/detail/nexperia-usa-inc/BAS716-115/1232107

Circuit

There is another option of using P-MOSFET with drain connected to BATTERY+ and Source connected to VBAT pin and Gate is shorted to Source. The body diode (D→S) blocks reverse current from VBAT back into the cell, but allows forward current from the cell into VBAT with only milliohms of drop once the FET turns on.

Circuit2

Which is better suited for long coin-cell life ?

History

0 comment threads

1 answer

+0
−0

You are using a P-channel MOSFET. Pin 2 is the source, pin 3 the drain, and pin 1 the gate.

Note that the gate is only raised to ¾ of the input voltage when the 3.3V input is active. You didn't supply a link to the FET datasheet, so you need to check what kind of leakage is expected in that case.

If that doesn't explain what you see, then you probably have the drain and source of Q1 flipped.

Another problem is the way you draw schematics. Obfuscating the circuit not only makes it more difficult for others to follow, but more likely you will make a mistake. If you had drawn it more reasonably, you might have caught the mistake where the left end of R2 was connected in your previous question. R1 and R2 are still a mess. If you drew the schematic cleanly you might notice there is a better topology.

Asking others to look at a messy schematic is not respecting their time and effort. If you don't care, why should I?

History

2 comment threads

@Olin Lathrop‭ Could you review my updated post and suggest if I can go with the suggested circuit? (1 comment)
I have updated the post with more details as I did more research on this and have posted a query rega... (1 comment)

Sign up to answer this question »