# MOSFET parasitic turn on

**URL:** <https://forum.arduino.cc/t/mosfet-parasitic-turn-on/1404579>\
**Category:** General Guidance\
**Created:** [August 28, 2025, 6:32pm UTC](https://forum.arduino.cc/t/mosfet-parasitic-turn-on/1404579 "2025-08-28T18:32:58Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ma\_wu](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ma_wu/32/1013044_2.png) [@ma\_wu](https://forum.arduino.cc/u/ma_wu)\
**Post date:** [August 28, 2025, 6:32pm UTC](https://forum.arduino.cc/t/mosfet-parasitic-turn-on/1404579/1 "2025-08-28T18:32:58Z")

</div>

Hey guys,

the P-channel mosfet in my circuit is turning on for a short time and i’d like to know why.

The circuit principle is rather simple. I’m supplying 5V at the left (TP\_SUP) and would like the MOSFET to block the current until the botton is pressed so the DCDC will activate and the uC will start and pull the latch pin up. Unfortunately i can see that the DCDC is already getting activated as soon as i connect the 5V, but only for a short time.

What might be the cause and how could i fix this?

Thank you in advance!

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/6/d/7/6d7a4106e2acdc0033bbacc440f9739cd39758c2.png)

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [August 28, 2025, 6:47pm UTC](https://forum.arduino.cc/t/mosfet-parasitic-turn-on/1404579/2 "2025-08-28T18:47:59Z")

</div>

How are you connecting the 5V? What does the turn on ramp look like?

---

<div class="post-metadata">

**Author:** ![ma\_wu](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ma_wu/32/1013044_2.png) [@ma\_wu](https://forum.arduino.cc/u/ma_wu)\
**Post date:** [August 28, 2025, 7:33pm UTC](https://forum.arduino.cc/t/mosfet-parasitic-turn-on/1404579/3 "2025-08-28T19:33:48Z")

</div>

It’s ~5V coming from an USB-C connector, which i just plug in.

---

<div class="post-metadata">

**Author:** ![schwingkopf](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/schwingkopf/32/1126463_2.png) [@schwingkopf](https://forum.arduino.cc/u/schwingkopf)\
**Post date:** [August 28, 2025, 8:50pm UTC](https://forum.arduino.cc/t/mosfet-parasitic-turn-on/1404579/4 "2025-08-28T20:50:48Z")

</div>

I think you're seeing the phenomenon called "MOSFET self turn-on". Full explanation see here: [Toshiba Application Note](https://toshiba.semicon-storage.com/info/application_note_en_20180726_AKX00074.pdf?did=59473).

**Brief explanation**  
A more detailed schematic including the relevant parasitics of the p-MOSFET is this one:

 ![grafik](https://europe1.discourse-cdn.com/arduino/original/4X/a/e/7/ae767fcdb407eeb69178813803129d936ef52093.png)

There are parasitic capacitors between gate-source C\_gs and gate-drain C\_gd, they form an AC voltage divider with respect to the drain voltage (your DC/DC VIN). For DMP1045U the divider ratio is 1:5 (calculated from datasheet values). Upon fast rise of the input voltage the gate voltage transiently takes values different from the USB voltage input due to the AC voltage divider. The voltage difference becomes up to V\_gs = -0.9V in your case (see simulation below). This is enough to switch on the MOSFET for a short time (typ Vgs\_threshold = -0.55V).

This problem only exists at high enough slew rate, where the impedance Z=1/omega \* C\_gs becomes much smaller than R13. At slower rise rates the R13 dominates the behavior of the voltage divider and all is good.

You can calculate C\_gs and C\_gd from datasheet values like this:

```arduino
C_gd = Crss = 235pF
C_gs = Ciss - Crss = 1100pF

```

**Your solutions options**  
A: Increase C\_gs/C\_gd ratio to \>15:

- Manually increase C\_gs by adding a 10nF capacitor parallel to R13 (easiest to do)
- Choose other MOSFET model respecting that condition without additional components

B: Reduce R13 (may not be sufficient depending on the slew rate during mechanical hot-plug of 5V)

C: Reduce the slew rate on voltage input. Slew rate of USB-C is specified as max 160mV/us (as far as ChatGPT knows) thus 30us from 0V to 5V. You need at least ~500us slew rate for your case to work.

**Simulation data**  
Your situation:

 ![grafik](https://europe1.discourse-cdn.com/arduino/original/4X/f/5/5/f55b91a9bc04b059c2304adfeaea30c3426fa2f6.png)  
--\> max V\_gs = -0.9V (self turn-on)  
With 10nF additional C\_gs:  
 ![grafik](https://europe1.discourse-cdn.com/arduino/original/4X/9/6/d/96d7b468be095c23cc3dd34451bdf7851c2e2de4.png)  
--\> max V\_gs = -0.1V (no self turn-on)

---

<div class="post-metadata">

**Author:** ![ma\_wu](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ma_wu/32/1013044_2.png) [@ma\_wu](https://forum.arduino.cc/u/ma_wu)\
**Post date:** [August 29, 2025, 6:24pm UTC](https://forum.arduino.cc/t/mosfet-parasitic-turn-on/1404579/5 "2025-08-29T18:24:28Z")

</div>

Wow, thank you so much for this explanation, as well as the detailed simulation!

I will add the 10nF and do a retest.

---

<div class="post-metadata">

**Author:** ![fabelizer](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/fabelizer/32/1191697_2.png) [@fabelizer](https://forum.arduino.cc/u/fabelizer)\
**Post date:** [August 29, 2025, 6:49pm UTC](https://forum.arduino.cc/t/mosfet-parasitic-turn-on/1404579/6 "2025-08-29T18:49:43Z")

</div>

Have you tried grounding the base of Q4 while powering up? If that keeps it off, then it is unlikely to be self turn on, and more likely to be the latch pin going high during boot.

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [August 29, 2025, 7:41pm UTC](https://forum.arduino.cc/t/mosfet-parasitic-turn-on/1404579/7 "2025-08-29T19:41:41Z")

</div>

I agree with @fabelizer and you need to consider the leakage current through the diodes  
Self turn is a rare occurance. I've done many SMPS designs and never had it happen.

---

<div class="post-metadata">

**Author:** ![schwingkopf](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/schwingkopf/32/1126463_2.png) [@schwingkopf](https://forum.arduino.cc/u/schwingkopf)\
**Post date:** [August 29, 2025, 8:16pm UTC](https://forum.arduino.cc/t/mosfet-parasitic-turn-on/1404579/8 "2025-08-29T20:16:46Z")

</div>

I think the simulation draws a pretty clear picture.

If diode leakage was causing the `LATCH_PIN` to activate, it would permanently activate the MOSFET and not only for a short time after plugging. But I agree, its an easy test to pull the gate hard to GND and try again.

I've observed self turn-on in a few designs over the years. It often goes unnoticed if you don't explicitly look for it as it's often without observable symptoms. And it happens easily. Just put a cap on the wrong side of the MOSFET and you're there. Also many (older) MOSFET models have poor C\_gs/C\_gd ratio (like this one). In combination with very low V\_gs\_threshold it happens even without external caps.

---

<div class="post-metadata">

**Author:** ![ShermanP](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@ShermanP](https://forum.arduino.cc/u/ShermanP)\
**Post date:** [August 29, 2025, 9:09pm UTC](https://forum.arduino.cc/t/mosfet-parasitic-turn-on/1404579/9 "2025-08-29T21:09:12Z")

</div>

The way I think of it is that with no power you start out with all the mosfet pins discharged and at ground. Then suddenly the rail goes to 5V, low impedance. The source pin immediately also goes to 5V, but the gate is still at ground, so the mosfet turns on. Then as the gate charges up through the resistor, it soon gets to the threshold voltage, and the mosfet shuts off.

The capacitor will pass the sudden increase in rail voltage through to the gate, because rapidly changing voltages pass through capacitors. The gate comes up at almost the same time as the source, and the mosfet stays off. So it's just a question of picking the right capacitor value that prevents the turn-on.

I've been told that this explanation is wrong. But adding the capacitor does work, so maybe that's still the solution for (in my case) the wrong reason.

---

<div class="post-metadata">

**Author:** ![ma\_wu](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ma_wu/32/1013044_2.png) [@ma\_wu](https://forum.arduino.cc/u/ma_wu)\
**Post date:** [August 30, 2025, 10:56am UTC](https://forum.arduino.cc/t/mosfet-parasitic-turn-on/1404579/10 "2025-08-30T10:56:18Z")

</div>

I don’t have an 10nF cap here (yet) to test it, but here’s an update:

- Pulling Q4 Base hard to GND didn’t change anything
- I reduced R13 from 100k to 47k, didn’t change anything

But i noticed something else: The 3.4V network is constantly slightly on, at around 1.6V, even though the DCDC should not get any power. I made a short video which describes it a little better:

[![](https://europe1.discourse-cdn.com/arduino/original/4X/2/9/c/29c32b7ae39ec2cf6f0900a8c4ed47ac56fcd540.jpeg "Parasitic voltage behaviour") ](https://www.youtube.com/watch?v=88MrORKZTLU)

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [August 30, 2025, 11:03am UTC](https://forum.arduino.cc/t/mosfet-parasitic-turn-on/1404579/11 "2025-08-30T11:03:30Z")

</div>

> [@ma\_wu](#):
>
> The 3.4V network is constantly slightly on, at around 1.6V,

Then you have an error somewhere else in your design.  
Your charge circuit is a good place to look

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [February 26, 2026, 11:04am UTC](https://forum.arduino.cc/t/mosfet-parasitic-turn-on/1404579/12 "2026-02-26T11:04:03Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
