Below is an example circuit of an ideal diode (source):
This circuit is easily found online, with various examples using resistor values ranging from ~1k to ~1M. I assume the reason for choosing higher value resistors is simply to reduce passive current drain, but going too high makes the circuit more susceptible to noise, or someone touching the circuit, etc. So my question is not about why bigger/smaller values are chosen.
My question is about the ratio between the resistor values. In some circuits I've seen, R1 = R2
. In other cases, R1 < R2
. However I've never seen an example circuit where R1 > R2
; I don't understand why, and none of the example circuits I've found explain why they chose their particular resistor values.
My own intuition says it shouldn't matter if R1 > R2
. As I understand it, V_b
will simply be the higher of V_in
and V_out
, minus the V_be
drop. If V_in > V_out
(forward bias), then current flows from V_in
to V_b
, meaning Q1A
is ON
and Q1B
is OFF
, so R2
pulls V_g
to GND
, turning Q2
ON
. If V_in < V_out
(reverse bias), then current flows from V_out
to V_b
, meaning Q1A
is OFF
and Q1B
is ON
, so V_g = V_out
(approximately), turning Q2
OFF
. Conceptually, the function of R1
is to provide a current path for Q1A
or Q1B
to turn ON
, and R2
is a pull down resistor for the gate of Q2
; so I would think it doesn't really matter what the resistor values are, and R1 > R2
would be fine.
However I tested this circuit, and if R1
is sufficiently greater than R2
(see next paragraph), I found that the circuit does not work when a reverse bias is applied; current flows from V_out
to V_in
instead of being blocked like it should. Based on my explanation above, I don't understand why. I'm guessing my explanation is either wrong or incomplete, but I'm not sure what's wrong with my thinking.
In my test, my power supplies were set to 4.5V for V_in
and 5.1V for V_out
to create a reverse bias, and my circuit used the BCM857BS-7-F for Q1
, the DMG2305UX for Q2
, and 100k for R1
. I used various values of R2
, including 1M, 90k, 83.3k, 44.5k, and 9k (each achieved with various combinations of 10k, 100k, and 1M resistors that I had on hand). When using 83.3k or greater, the circuit worked as expected, and V_g
was typically 5.0V, keeping Q2
OFF
when applying reverse bias. With 44.5k for R2
, V_g
was about 2.2V
, enough to keep Q2
always ON
and make the circuit not work correctly with reverse bias. With 9k for R2
, V_g
was about 0.4V
, again making Q2
always ON
. This indicates that Q1B
is partially ON
instead of fully ON
like it should be. I could understand that happening if h_fe
had a value of like 10, but it's actually a minimum of 220 for this particular BJT, so I don't understand why there's a significant voltage drop from V_out
to V_g
.
Question 1 - Why does the circuit not work correctly in reverse bias when R1 > R2
? (Or at least, when R1
is sufficiently bigger than R2
.) Why is Q1B
not fully turning ON
?
Question 2 - Is there some ratio of R1
to R2
at which point Q2
is always ON
, or does it depend on the exact components selected?
Question 3 - Is it safe to make R1 = R2
, or is it better to make R1 < R2
? My testing showed R1
can be at least slightly bigger than R2
, but if the answer to Question 2 is "it depends", then I'm guessing that affects how safe it is to make R1 = R2
.