# Explanation needed on using 2 transistors as a switch

I'm suggested to use following design to drive a load with a micro-controller. I would like to know that why is it needed to use 2 transistors (n-ch and p-ch) to act as a switch and not only one?

http://www.electronics-tutorials.ws/transistor/tran_7.html


Could you please explain me advantages or disadvantages of having such design (2 transistors) over one-transistor switches?

simulate this circuit – Schematic created using CircuitLab

• The digital I/O voltage, do you know what it is? I imagine it's less than 5V. Dec 11, 2017 at 11:26
• it depends if I connect it to Arduino nano it would be 5V, if I connect to Arduino MKRFox1200, it would be 3,3V. but this schematic works well with both. for transistors I've used NDP6020P as P-ch and IRL1540N as N-ch which have low VGS(th), and instead of 10K resistors, I've used 100K resistors. Dec 11, 2017 at 11:31
• N-ch is IRLI540N and datasheet is accessible through infineon.com/dgdl/… Dec 11, 2017 at 11:40
• The article you reference talks about high sided and low sided circuits. Do you understand the difference between high and low sided driving? Do you understand how a p-type FET is turned on and off compared to an n-type and how the two different sorts of FETs drive loads? Dec 11, 2017 at 11:40

If the digital signal swing is the full 5 V, then you can use just the final P-channel FET.

The advantage of the two-transistor circuit is that the power voltage being switched and the digital signal power voltage don't need to be the same. The circuit you show would work with the power voltage being up to the maximum G-S voltage the second FET can handle.

• Thank you Olin, Can I conclude that all one-transistor circuits have the same voltage on VSS (that is going to be switched) and signal voltage level (in this case GPIO pin)? Dec 11, 2017 at 12:02
• @Nima: For a high side switch, as you show, you'd generally use only a single transistor if the logic level swing extends to the power voltage being switched. Otherwise, the transistor can't be reliably turned off. Dec 11, 2017 at 12:42

This is a top side switch. Most of the circuits you have probably seen are bottom side switches. Top side switching adds some interesting issues that are unique to that application. As such, there are numerous reasons for the two stage switch you indicated. The two main ones are:

1. Even when the switched voltage is the same as your logic power supply voltage, the high level logic output voltage can be significantly lower than the rail. This can result in inconsistent switching of a single P-Channel MOSFET.

2. The gate of a MOSFET is basically a capacitor, and because the P-Channel MOSFET is relying on that pull-up resistor to turn it off, the size of that pull-up needs to be relatively small if you need to switch this power quickly. As such, the current you need to be able to pull down through the pull-up when the N-Channel is on can be a lot higher than your GPIO can sink.