Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Placing a SPST switch between RTC CLK and Microcontroller

newbie_hs

Full Member level 2
Full Member level 2
Joined
Mar 4, 2023
Messages
129
Helped
1
Reputation
2
Reaction score
1
Trophy points
18
Activity points
1,025
I am using an PCA85073A RTC in my design. On some boards w the supercapacitor is getting discharged very fast (5V to 1.1V in half an hour.) This happens when we turn off the microcontroller power supply.

Because we are feeding logic signals or voltages into a MCU that is unpowered.

To avoid this issue I decided to keep an switch between RTC CLK and Microcontroller. The switch will be powered from the same power supply used for powering the Microcontroller.

1717757028962.png


When the Microcontroller is off the Switch will be in off state.The RTC will be running and signal is coming upto S pin of the switch.

My question is will the super cap discharge via input protection diodes of Switch(ADG801) when it is off
 

Attachments

  • 1717756935361.png
    1717756935361.png
    21.7 KB · Views: 71
Hi,

You gain nothing.
In first case the current will be drawn via the microcontroller internal protection diodes.
in the other case ... the current will be drawn via the analog switch internal protection diodes.

Why don´t you power the analog switch from the super capacitor?

BTW: what´s the clock frequency?

Why not switch OFF the CLK with an I2C command?
Why not using an 74LVC1Gxx buffer (powered from microcontroller side)?
Why no passive solution? Like a schottky diode between RTC (C) and microcontroller (A) and a pull up resistor at the microcontroller side.


Klaus
 
in the other case ... the current will be drawn via the analog switch internal protection diodes.
Okay can I place a relay

Why don´t you power the analog switch from the super capacitor?
I can do that. That is one option

Why not switch OFF the CLK with an I2C command?
I need to check it. I think we can do it
Why not using an 74LVC1Gxx buffer (powered from microcontroller side)?
In this also the current will be drawn via the analog switch internal protection diodes. Please correct me if I am wrong.

Like a schottky diode between RTC (C) and microcontroller (A) and a pull up resistor at the microcontroller side.
In this case also when the microcontroller is off the schottky will conduct and current will flow through the clamp diodes of uC
 
In this also the current will be drawn via the analog switch internal protection diodes. Please correct me if I am wrong.
What analog switch are you talking about?
What internal protection diodes are you talking about?
Did you even read a datasheet?

In this case also when the microcontroller is off the schottky will conduct and current will flow through the clamp diodes of uC
It would be nice if you draw a sketch to prove your current flow.

I try to help .. but if you know better ... I don´t like to waste your time.

Klaus
 
I try to help .. but if you know better ... I don´t like to waste your time.
Yes you helped me a lot and I will be always thankful for that. Till my death
It would be nice if you draw a sketch to prove your current flow.

I will draw the waveform
--- Updated ---

It would be nice if you draw a sketch to prove your current flow.
Please see the waveform below.

1717774008127.png
 
Last edited:
Hi ,

I re-read your post. I did not take care of the diode orientation.My mistake.

Please see the waveforms .During off condition I can see some spikes

When uC is on
1717778585129.png

When Controller is off

I can see a spike in the output waveform
1717778851150.png
 
During off condition I can see some spikes
This happens because you are using an 1A schottky rectifier diode instead of a lower capacitance signal diode.

In the real circuit, any capacitance between RTC Clkout pin and other circuit nodes (diode/switch/buffer input whatsoever capacitance) causes a certain current spike, creating an additional amount of RTC supply current proportional to clock frequency. Even the unloaded Clkout pin does when activated. The point is to reduce it to an acceptable value.
 
What is R2 good for?
Sorry for the delay in my response.
I considered R2 as the input impedance of Microcontroller GPIO.
Even without R2 ,I am getting the same spike
--- Updated ---

In the real circuit, any capacitance between RTC Clkout pin and other circuit nodes (diode/switch/buffer input whatsoever capacitance) causes a certain current spike, creating an additional amount of RTC supply current proportional to clock frequency.
May I know you mean this spikes are unavoidable.
I tried to run the simulation using this diode. But the spikes are still present.
 
Last edited:
There isn't much to say about the spikes, voltage dv/dt * C = current spike. Why do you worry about it?

Real waveforms will be different, lower dv/dt, uC input capacitance, voltage above Vdd is clamped by CMOS input diodes.
 
Hi,

R2: Makes no sense. If you want to simulate the microcontroller, then don´t use (only) an R, because C and D may have more influence on the spike behaviour. Especially when the microcontroller is powered OFF.
Did you tell what kind of microcontroller you use? (so we

Spike: Again, don´t post riddles. What´s your concern with the spike? Do you think it´s good or bad? And FvM already told you where it comes from.
So: Talk to us.

Klaus
 

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top