MOSFET/uC current - Page 1
Forum section: electronics / general

author: PerranOak
author_rank: Frequent Contributor
timestamp: March 19, 2019, 02:42:17 pm
content: I have a uC controlling a pMOSFET switch a power supply for the rest of the circuit.The gate is pulled high by a 100k resistor and there is a 1k resistor between the MOSFET and the uC pin.1. Do I need the 1k for current limiting - I saw it suggested but the current into the gate is minute?2. Is the 100k over kill (I usually use 10k) though I want to limit current drain when the circuit is in sleep.Thank you.

author: ogden
author_rank: Super Contributor
timestamp: March 19, 2019, 03:13:30 pm
content: You don't need 1k for sure. 100k is optional as well. It is only for case when microcontroller is not (yet) initialized - during programming. You may use just bare MOSFET.

author: PerranOak
author_rank: Frequent Contributor
timestamp: March 21, 2019, 01:51:10 pm
content: Thank you, I'll ditch the 1k.With the 100k, I need something to pull it high or when I reset/sleep the uC it doesn't turn it off the MOSFET. Is 100k too high though? It works as I look at it now but I wonder if it would be unstable.

author: ogden
author_rank: Super Contributor
timestamp: March 21, 2019, 02:14:51 pm
content: Quote from: PerranOak on March 21, 2019, 01:51:10 pmNo, its not. 100k is quite popular choice for MOSFET switch pull-up/down. Smaller resistance will lead to increased power draw while transistor is on.

author: exe
author_rank: Unknown
timestamp: March 21, 2019, 02:16:34 pm
content: 1k could be to provide soft switching and reduce noise.

author: madires
author_rank: Super Contributor
timestamp: March 21, 2019, 02:44:19 pm
content: There are two ways to drive the p-ch MOSFET. The first is to set the MCU's pin to output mode and switch it between low and high. The other one emulates an open collector. In this case the MCU's pin is set to output mode and low level (shorted to ground) or input mode (open). Let's assume you're going for the first method. The pull-up resistor is just for turning off the MOSFET when the MCU isn't ready. It will also limit the current passing through the MCU's pin when switched to low, i.e. limiting the power loss. On the other side you want it to be a not too high value to switch off the MOSFET fast enough. The MOSFET's gate requires a specific charge for switching. This brings us to the resistor protecting the MCU's pin. The MCU's pin has a limit for sourcing and sinking current. Without the resistor the MCU's pin would have to deal with a current limited just by the MCU's internal resistance of the output driver. For MOSFETs with a small gate charge it might work without the protection resistor. But for MOSFETs with a high gate charge you would exceed the pin's maximum current without the current limiting resistor. Again, there's a tradeoff between protecting the pin and the MOSFET's switching time. If the pin can't sink/source sufficient current but you want fast switching you have to add an external driver.

author: PerranOak
author_rank: Frequent Contributor
timestamp: March 22, 2019, 01:07:15 pm
content: Thank you very much.I shall use the 100k and the 1k.Cheers.