I am trying to design a circuit to replicate the behavior of the LTC4071 battery charger/protector IC (see datasheet here). In particular I want to replicate the low battery disconnect function which consumes 500 nA when running and only 0.1 nA when in battery disconnect mode. I have tested the LTC4071 on a dev board and found that it behaves as described. My issue is that the package is to large for my needs and so I require a custom circuit which can be made with lower profile components.
Below is the LTC4071's block diagram and circled in red is the low battery disconnect functionality. Seems simple right? When VCC is connected to an external power supply the comparator outputs low which turns on the p-mosfet MP1 connecting the battery to VCC. When the power supply is disconnected the battery continues to drive VCC. If the battery level drops low enough for the comparator to output high then the p-mosfet turns off and the battery is disconnected from VCC.
However when I mock up an equivalent circuit on a bread board using a low power op amp (MCP6241) and p-type mosfet (IRF4905) I do not get the required results, this simulation describes the problem.
Here, Vbat is below the battery disconnect threshold and so the op amp's V+ is greater than V- so its output is high which should turn off the p-mosfet and hence disconnect the battery from the system. However, this doesn't happen since as the op amp's supply voltage decreases so does the output voltage which in turn partially turns on p-mosfet until the system reaches equilibrium at an intermediary voltage.
I could connect the op amp's supply directly to the battery, rather than to Vcc, but then the op amp's quiescent current would constantly draw from the battery. I can't find any op amps or comparators that draw less than 100 nA so how did the IC designers get this to work using just 0.1 nA!?