by the looks of it, the p-mosfet with 2 pnps is the best solution so far.
I am assuming we are talking about the ideal diode circuit with a P-channel MOSFET pass transistor:
(Click to embiggen)where VIN and GND is the power input, the device runs on VCC/GND, and Q2.1 and Q2.2 are a matched pair of BJT PNP transistors. The simpler option, which protects from reverse polarity but not from reverse current, is to omit the PNP transistors and the two resistors, and simply connect the gate to GND.
but is my understanding of its operation (explained above) correct?
I'm not sure. I just consider the two BJT PNPs a comparator. In normal operation, when GND < VCC < VIN, Q2.2 does not pass much current, so Q1's gate is pulled close to GND, and assuming VIN is ≳ 3V or so, Q1's Vgs ≲ -3V and Q1 conducts. Basically all of the load current passes through Q1, and the voltage drop over Q1 (VIN-VCC) is defined by Q1's Rds(on). Whenever VCC ≥ VIN, Q2.2 passes enough current so that Q1's Vgs ≳ -0.6V (gate at most one voltage drop below source), and Q1 is high-Z.
I hope someone more betterer than I can explain the behaviour of this, I've never bothered to work it out myself!
I calculated 700-800 mA absolute max current usage which means for 7.5mOhm R is gonna be 0.0048v drop from 5v, which will be 4.9952v effectively 5v.
70P03 is about 10mΩ at 5V (see Figure 4 of the datasheet; title is above the chart), 50P02 about 6mΩ at 5V (see Figure 2 of datasheet), and XR25P01M between 6mΩ and 7mΩ at 5V (Figure 2 of datasheet).
In my experience, supplies aren't that precise, and if you use crappy power cables (especially with copper-clad aluminium wires) they can drop a bit of voltage (say, 0.05V or more); and I personally don't mind 0.1V drop at all, as long as the waste heat generation is in check.
At 5V supply, 1A current draw, and say a 50mΩ Rds(on), the drop is 0.05V, and 0.050W = 50mW = 1/20 W is turned to waste heat. Not a problem at all, in my opinion; anything better is positive, but probably not significant for a wired device. If you're doing battery-powered low-power stuff, then it might matter.
What I am trying to understand is if all ideal diode\Oring chips prevent reverse current or what? I mean if an ideal diode is used but put to off, will there be current in reverse direction?
There are two aspects here: reverse polarity, and reverse current.
Reverse polarity occurs when VIN < 0, i.e. the power supply has VIN and GND swapped. This is what a single P-channel MOSFET protects against very well.
Now, consider a case where say VIN is from an USB connector. USB devices must never try to supply power to the USB host. Let's say the USB host is a laptop with say 4.9V VUSB (it is technically allowed to vary between 4.5V and 5.5V), and your separately powered device has 5V at VCC. This is the reverse current case: GND < VIN < VCC. If we only had the MOSFET for reverse polarity protection, its Vgs would be -VCC, so the MOSFET would conduct, and our USB device would try to backfeed power to the host! Ouch!
When we add the two matched PNP diodes and the high-value resistors, we turn this into an ideal diode. When VIN > VCC, you get only the voltage drop from the P-channel MOSFET Rds(on). When VIN < VCC, the circuit does not conduct; it blocks any current.
Yes, an ideal diode (with "anode" at VIN, "cathode" at VCC), will only pass current from VIN to VCC, and only when VIN > VCC, just like a normal diode would. The difference is that a normal diode has a "significant" voltage drop over it, 0.6V (or 0.3V for a Schottky diode). An ideal diode uses transistors (and a pair of resistors) to perform in a similar manner, but with a lower voltage drop (at least with low currents).
but this also means the diode is forward biased.
Yes, but that body diode is not relied upon in the expected configuration when VIN ≳ VCC > GND - Vgs, where Vgs is negative and low enough for the MOSFET to conduct well.
Consider this: if you bypass a diode with a wire, does the diode drop matter anymore? It is the same situation here, except that the diode is the body diode of the P-channel MOSFET, and the wire is the drain-source connection whose resistance is controlled by the voltage difference between gate and source.
on a side note, i believe i can use this circuit as Oring for 2 rails, 3.3v and 5v delivered to the same pin where user selects which voltage he needs.
For or-ing two supplies, I'd recommend you take a look at
TI LM66200, although it is limited to 5.5V maximum supply voltage. 0.309€ apiece in sets of ten
at Mouser, $0.3575 apiece in sets of ten
at LCSC (C3235556). It has an /ON pin: when pulled high, the output is not connected to either input. When /ON is low, the higher input is connected to the output (with reverse current protection). You can use that to control the output. It also provides an ST pin, which it pulls high when first source is used, and low when second source is used.
Because LM66200 exists and is cheap (and I mostly do max. 5.5V stuff myself), I haven't worked out how to best extend the ideal circuit for additional inputs.