Help powering an MCU when a switch changes state (with auto turnoff)

Ian0

Joined Aug 7, 2020
13,156
Great, I'll look for this then.

One more question, imagine I were to get this XNOR https://www.lcsc.com/product-detail/Gates_Texas-Instruments-CD4077BM96_C86563.html which has a quiscent current of 1uA, so on first sight it looks really good. But then I realized one thing, the source current is 3.4mA. When the switch is closed, both inputs of the logical gate will be receiving a HIGH, so output will be HIGH too. Does this mean that when the switch is closed the gate is gonna be using 3.4mA instead of the Quiscent current?
The gate itself does not use any current when it is in a stable state.
You will get current through R1 equal to Vs/R1 whilst the processor is active. You can choose a high value for R1 - that will depend on the input current required for whatever regulator you choose.
While the switch is closed current will flow through R2, but you can choose a high value of R2.
 

Thread Starter

lpares12

Joined Sep 6, 2023
15
The gate itself does not use any current when it is in a stable state.
You will get current through R1 equal to Vs/R1 whilst the processor is active. You can choose a high value for R1 - that will depend on the input current required for whatever regulator you choose.
While the switch is closed current will flow through R2, but you can choose a high value of R2.
Great, I thought Current Source meant the ammount of current used while the gate is outputting a high signal. Good to know it's not that.
 
Last edited:

Thread Starter

lpares12

Joined Sep 6, 2023
15
No, it's the amount of current if can output if the load requires it.
Hey, old post but I was wondering if it's possible to do something to avoid LDOs with SH function, since they are really really hard to come by in my country. I could pay an overseas carrier, but they charge me like 50€ for the delivery (and I don't need that many to justify the price).

I have a few LDOs with the enable function, so I was wondering, maybe the signal can be reversed with another IC somehow?

EDIT: this is how it looks in the end. Basically I have changed the XNOR for XOR, since with "enable" instead of "shutdown" in the LDO I need to have the inverse now. Then when the MCU gets powered up, it will set GPIO2 to high, and this will open the NPN transistor, so the enable pin in the LDO will always receive voltage > threshold to open up. I believe I'll need to add another resistence between the transistor and enable, since maximum voltage for enable pin is 6V. Maybe I can move the 20K resistence that goes to XOR and put it in series with the LDO.
1698441101783.png
 
Last edited:
Top