8
\$\begingroup\$

I'm building a circuit containing a Li-Po battery and a battery charging chip. I do understand the working of the chip, but don't really get how to switch the system load to a normal power supply while the battery is charging.

The datasheet provides the following diagram which I assumes works:

Charging circuit (source: Microchip reference design DS51746A section 1.1)

The only thing is that I don't really know why it should work. I'd love to understand why it works. I guess that as soon as Vin is high it shuts the gate (Q1) from the Li-ion cell to the system load. And current goes to the system load from Vin directly via D1. But I don't really understand why it would shut Q1. It would be great if someone could give a brief explanation what happens with Q1, Rpull and D1 when Vin is High and Low.

The MCP73833 works as follows: When Vin is high, Vbat will be high and charge the Li-ion cell. (Vbat will be a bit lower than Vin). As soon as Vin will be low, Vbat (9,10) will be low and stop charging.

\$\endgroup\$

1 Answer 1

17
\$\begingroup\$

Q1 is a p-channel MOSFET. Here is the schematic with its terminals labeled (G = gate, D = drain, S = source):

A MOSFET turns on (allows current to flow) when the voltage between its gate and source, or Vgs, exceeds a threshold voltage, Vth. For P-channel MOSFETs, Vth is negative, which means that the gate has to be lower than the source by some amount for the MOSFET to turn on.

When Vin is high, current flows through the diode D1 to the load, making the voltage at the source approximately Vin (minus the diode drop). Since the gate is tied directly to Vin, this means that Vgs is slightly positive and Q1 remains off.

When Vin is low, the gate is pulled to ground by Rpull (a pull-down resistor). But wait, how does Q1 turn on if the source needs to be at a higher voltage than the gate, and in order for a voltage to appear at the source, Q1 needs to be on?

Well, there's a little diode at the bottom of the MOSFET symbol; this represents the body diode (sometimes called a parasitic diode), which is basically an artifact of the way the MOSFET is made. The presence of the body diode means that even when the MOSFET is off, it will only block current from flowing from the source to the drain; it will still allow current to flow from the drain to the source. Here, that's a good thing: the body diode allows current from the battery to flow from the drain to the source, bringing the source up to near the battery voltage and creating a negative Vgs voltage difference that allows the MOSFET to fully turn on.

The purpose of Q1 and D1 are to ensure that current only flows from Vin to the load or from the battery to the load, preventing reverse current from Vin to the cell or vice versa. Replacing Q1 with another diode would accomplish pretty much the same thing:

The advantage of the MOSFET is that, when it's on, there's less of a voltage drop across it compared to a diode. Less voltage drop means less power wasted, which is especially important when you're powering your load from a battery.

\$\endgroup\$
4
  • 1
    \$\begingroup\$ Good explanation, +1. \$\endgroup\$ Commented Apr 2, 2014 at 10:53
  • \$\begingroup\$ Wow, Thank you for this great explanation. I totally understand it. You saved me a lot of time and headaches. :) \$\endgroup\$
    – Ruben
    Commented Apr 2, 2014 at 12:11
  • \$\begingroup\$ I'm kind of a noob here, and maybe you already explained it, but if you did I must have missed it; My question is: those are Zener diodes right? So, is there any significance here about why Zeners are being used versus like a regular 1N4148 diode? Does the voltage need to flow backwards over them? -- And secondly (might be too specific for this), but is there a particular relationship between the Zener voltage, and the charge voltage (which I assume is being regulated by the MCP73833 on the VBAT lines)? \$\endgroup\$ Commented Feb 4, 2015 at 19:50
  • \$\begingroup\$ @BrainSlugs83 It's a Schottky diode (see, for example, en.wikipedia.org/wiki/Diode#Electronic_symbols). (I had to look them up to make sure...) \$\endgroup\$
    – kwc
    Commented Feb 5, 2015 at 6:14

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.