Author Topic: This circuit is blowing my mind (MOSFET question)  (Read 1276 times)

0 Members and 1 Guest are viewing this topic.

Offline Croy9000Topic starter

  • Contributor
  • Posts: 10
  • Country: us
This circuit is blowing my mind (MOSFET question)
« on: February 05, 2018, 05:13:42 pm »
I am hoping someone can un-baffle me, I am very confused atm. Below is a published circuit whose function is to provide 5V to VCC when it is present (a USB cable plugged in). If 5V is not present then VBATT is connected to VCC (if present). When both 5V and VBATT are present, VBATT is said to disconnected.

I am trying to understand how this is accomplished. My confusion is what happens when there is no 5V, but VBATT is connected. How is the MOSFET biased properly to allow it to pass current?

This is a P-Channel Enhancement MOSFET. From what I understand, for it to be on (connecting VBATT), there must be a Vgs voltage < 0V or more. But the battery is connected to the drain, not the source. What is providing the voltage on the source side to get it biased?  :o

 

Offline Croy9000Topic starter

  • Contributor
  • Posts: 10
  • Country: us
Re: This circuit is blowing my mind (MOSFET question)
« Reply #1 on: February 05, 2018, 05:16:49 pm »
I also redrew the circuit in the hopes it would help me, which....it didnt.



 

Offline Quarlo Klobrigney

  • Frequent Contributor
  • **
  • Posts: 967
  • Country: pt
  • This Space For Rent
Re: This circuit is blowing my mind (MOSFET question)
« Reply #2 on: February 05, 2018, 05:17:29 pm »
The only thing I can think of is the reverse leakage voltage/current of D3.
Voltage does not flow, nor does voltage go.
 

Offline gamalot

  • Super Contributor
  • ***
  • Posts: 1306
  • Country: au
  • Correct my English
    • Youtube
Re: This circuit is blowing my mind (MOSFET question)
« Reply #3 on: February 05, 2018, 05:25:45 pm »
If you ignore the body diode, there is nothing different between the source and the drain.

Offline Kevin93

  • Newbie
  • Posts: 2
  • Country: gb
Re: This circuit is blowing my mind (MOSFET question)
« Reply #4 on: February 05, 2018, 05:29:48 pm »
Your redrawn circuit is incorrect - VBATT connects to the source of the FET, not VCC.

When there is no +5V the 100k resistor (R3) pulls the gate down to ground.  The source is at VBATT.

The PMOS FET therefore is biased by the VBATT voltage between source and gate.

This will make it conduct between source and drain providing voltage to VCC via SW1.

kevin
 

Offline Paul Price

  • Super Contributor
  • ***
  • Posts: 1419
Re: This circuit is blowing my mind (MOSFET question)
« Reply #5 on: February 05, 2018, 05:34:07 pm »
The circuit is drawn wrong with the P-chan MOSFET D and S connections reversed.

The idea here is that the P-MOSFET could be replaced with a schottky diode, but there would be a power loss due to the forward voltage drop of the series diode. To minimize the loss of switching over to battery, the P-MOSFET is turned on when the USB voltage is zero, but in this schematic that doesn't happen. The only explanation is the MOSFET has been shown connected incorrectly, reversed D and S. When the P-MOSFET is turned on, its low Rdson would present a much lower drop than a diode it replaces.
« Last Edit: February 06, 2018, 12:14:05 am by Paul Price »
 

Offline Nusa

  • Super Contributor
  • ***
  • Posts: 2416
  • Country: us
Re: This circuit is blowing my mind (MOSFET question)
« Reply #6 on: February 05, 2018, 05:42:48 pm »
Actually I think it's correct. It's just that you've misunderstood the purpose of the mosfet. It's there to protect the battery from the 5V source when it's present. Don't forget to draw this mosfet's diode in the redrawing...it's significant.
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 7992
  • Country: gb
Re: This circuit is blowing my mind (MOSFET question)
« Reply #7 on: February 05, 2018, 05:55:14 pm »
The body diode will conduct when the battery is connected and the USB is not. This will bring the source to the battery potential (minus a diode drop). The gate, if USB is not connected, will be held to 0V by R3. VGS should then be around -3V assuming a lithium cell of some variety at full charge - this is far over the -1V max threshold and the FET will be conducting as well - and at around 40mohm, that will be very, very close to full battery potential.
 

Offline Croy9000Topic starter

  • Contributor
  • Posts: 10
  • Country: us
Re: This circuit is blowing my mind (MOSFET question)
« Reply #8 on: February 05, 2018, 09:18:54 pm »
Ah brilliant. Thanks Nusa and Monkeh. Now it all makes sense. The issue was indeed me ignoring the body diode.

I can now see VBATT can initially source current because the body diode lets the current pass from source to drain (I guess backwards from normal use?) Also, assuming no 5V preset, this also sets up the proper gate to source on bias for a super low resistance path through source to drain, really opening up the current path for the battery.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf