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

Post History

50%
+0 −0
Q&A RTC battery and VCC switching circuit

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 s...

posted 12mo ago by Olin Lathrop‭

Answer
#1: Initial revision by user avatar Olin Lathrop‭ · 2025-09-28T14:47:14Z (12 months ago)
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 &frac34; 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?