This circuit controls the rate at which M1 switches on using the current mirror consisting of Q1 and Q2. A digital pot is used to control the current through Q2. The circuit works great in simulation, and it works semi-great on a breadboard.

enter image description here

The circuit yields a rising slew rate in the range of .3V/us to about .05V/us. Ideally I would like it to be able to switch at .7V/us.

The 3.3V is coming from a Raspberry Pi, however I have also tested it using a lab power supply. I am using the lab power supply for 12V VCC.

I have two questions:

  1. How can I increase the rising slew rate of this circuit? I thought possibly using a logic level MOSFET would make it switch faster but it didn't help much.
  2. Using a resistance range of 100-1000 ohms on R2 results in roughly the same slew rate. What could be causing this? I thought the Raspberry pi just couldn't supply enough current for the lower resistances, but the lab power supply gave the same results.

Any help with this would be greatly appreciated.

Here are the components I'm using:

M1: https://www.mouser.com/datasheet/2/196/Infineon-I80P03P4L_04-DS-v01_01-en-1225645.pdf

R2: http://ww1.microchip.com/downloads/en/DeviceDoc/22060b.pdf

I'm using generic 2n2222 npns for Q1 and Q2.

  • \$\begingroup\$ David, I noticed this question only after I went on holidays, and I see that you have not accepted any answer. Are you still interested in it? Or did you have solved the issue in your own? \$\endgroup\$ Commented Aug 19, 2018 at 8:38

1 Answer 1


This part has great specs for RDS(on) and current (80 amps) but you pay somewhere, and here you have extremely high input capacitance and reverse transfer capacitance. To speed up you will need a lower capacitance part (or more current) to overcome these capacitances when you hit the switching point.

You don't really need R1, but when it is there it limits the gate current. Since you need to pull the gate down to 9 volts to switch and the VCE on the 2n2222 needs to be at least a volt or so, the 1.024 k resistor limits the mirror current to 8 ma no matter what is on the drive side.

  • \$\begingroup\$ Thanks for your answer. I tried using this FET with a lower input capacitance and gate charge: nteinc.com/specs/2300to2399/pdf/nte2371.pdf however it didn't change the result at all. The load is a SMPS driving a high power LED. I removed R1 and increased the value of R5 so that current would charge the FETs gate capacitance faster but to no avail. \$\endgroup\$ Commented Jul 30, 2018 at 17:19
  • \$\begingroup\$ Maybe I'll try using a gate driver or something similar and see if the output current can be controlled through a resistor. \$\endgroup\$ Commented Jul 30, 2018 at 17:23
  • \$\begingroup\$ I second the comment about R1 -- many high-speed switching circuits have gate resistors one or two orders of magnitude lower than 1K, especially with the high input capacitance. \$\endgroup\$ Commented Mar 14, 2019 at 1:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.