Yes, this is what i want.Hmm google doesn't turn up anything .
What exactly do you need it for? Do you want a backup battery in case the first fails ?
Is it really that simple?Just need two schottky diodes..
http://www.codemsys.com/SMPS/Parallel.htm
Thanks.The calculated average current draw from you battery is about 1000mAH / 24 ≈ 40mA. A 1N5817 1A Schottky diode has a forward drop of about 0.3V at 40mA giving a power loss of 0.3V * 50ma =12mW. This is about 8% of the 3.7V * 40mA = 148mW the battery is supplying.

Thanks, this looks cool.Here's a reasonably simple circuit that should do what you want. It uses two P-MOSFETs to switch the battery with the highest voltage to the load. The first comparator compares the two battery voltages and turns on the MOSFET (connects the gate to ground) that has the highest battery voltage. The second comparator is used to invert the signal so the opposite MOSFET is turned off. The comparator's supply voltage is from the two diodes, D1 and D2 so that the highest battery voltage is always powering the comparators.
Oscillations are possible, so you would just need to increase the hysteresis. In this case the load is only 40mA so a high value of hysteresis should not be needed.Wouldn't this tend to oscillate due to the load pulling down the voltage of the battery being used? I suppose the comparator hysteresis could be increased as noted to compensate, but if the load is big enough, I'm not sure you could stop the oscillation.
I missed that, and I was thinking of a larger load. It should work nicely when the load is small compared to the capacity of the batteries involved. It might be a good solution for some of the requests around here for ORing power supplies together.In this case the load is only 40mA...
That's why I got a screenshot and a datasheetIt might be a good solution for some of the requests around here for ORing power supplies together.