2022-04-25 01:36 AM
Hello
In my application, I use the DAC of the Micro to charge a capacitor(47uF). When the micro is power off, the voltage on the capacitor start to discharge with a high impedance resistor(6.8Megohm). I want the leakage current of the Micro I/O small enough. As I don't want the leakage current impact the capacitor discharge time.
Thanks!
Solved! Go to Solution.
2022-04-25 06:26 AM
Yes, kind of this:
Of course, the layout must also be low-leakage. The gates must be controlled via a MOSFET or a bipolar npn and not directly from a GPIO, because otherwise the gates cannot be switched off cleanly.
Regards
/Peter
2022-04-25 02:27 AM
Of course, the technical data of the STM32 only apply when they are supplied with operating voltage. Every other case, including yours, must be considered separately or solved externally.
Possibilities would be, for example, anti-serially switched p-channel MOSFETs between the DAC output and the capacitor, whose interconnected gates are controlled by an n-channel MOSFET, which in turn is controlled by a dedicated GPIO. Also, a relay or reed contact would be able to disconnect the DAC from the capacitor.
Does it answer your question?
Regards
/Peter
2022-04-25 05:26 AM
Hi Peter
I am not fully understand. Do you mean to add an anti-serially switched mosfet to minimize the leakage current? Do you have the relevant circuit for reference?
2022-04-25 06:26 AM
Yes, kind of this:
Of course, the layout must also be low-leakage. The gates must be controlled via a MOSFET or a bipolar npn and not directly from a GPIO, because otherwise the gates cannot be switched off cleanly.
Regards
/Peter
2022-04-27 05:35 PM
Hello Peter
Thanks a lot!
2022-04-27 11:25 PM
You're welcome!
If the problem is resolved, please mark this topic as answered by selecting Select as best under your preferred answer. This will help other users find that answer faster.
/Peter