Take the 2-minute tour ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

In our application, our board can receive +12V from an adapter jack when working in standalone mode. This 12V is fed into a switching regulator to create a 3.3V supply (named 3V3_2 in the schematics below)

The board can also be connected to a host board via an edge connector, in which case, 3.3V should be supplied by the host board (named 3V3_1 in the schematics below)

What we want to do is that, when the user plugs in an adapter jack, we want the board to automatically use the output of the switching regulator. We are using a jack with a switch. The switch is floating when nothing is plugged in, pulled to ground when an adapter jack is inserted. (The switch signal is terminal 2 in the schematics below)

Please take a look at these two circuits. Would any of these work? Do you foresee any problems with either of these circuits? Are there any other alternatives?

enter image description here

share|improve this question
    
you should use a power switch IC, these can do multiple inputs, and can handle high currents and be driven by logic levels, or you can use two fets –  Ion Todirel Jan 17 at 6:16

2 Answers 2

up vote 4 down vote accepted

As Madmanguruman pointed out, the main problem is that if the host board is connected, current will flow through the body diode of the p channel FET into the 3V3_2 output. Knowing nothing of the 12V to 3.3V switcher, that could be a bad idea as it could cause that circuit to function in some unexpected way. You are going to at least need bi-directional switch to isolate the two 3.3V lines. Even with bi-directional switch you will need a pull-up to insure the switch is turned off when the power jack is unplugged on the first simpler design. It also appears that in the second design, if the power jack is unplugged, that the n and p channel FETs would likely be on which would allow 3V3_1 to be coupled directly into 3V3_1.

Also, what happens if both the host board is present and 12V is applied? This would be effectively paralleling the two 3.3V lines, and could be a problem for either source. Some kind of contingency needs to be in place if there is any possibility of both lines being active.

You might be able to use a Schottky diode in each line to isolate with passive switches. There are also parts that function as idea diodes for this purpose like LTC4413 ( http://cds.linear.com/docs/Datasheet/441312fd.pdf ).

share|improve this answer
    
LTC4353 seems to be a good solution as well: cds.linear.com/docs/Datasheet/4353f.pdf –  SomethingBetter Jan 18 '13 at 7:41
1  
Yes, similar. There are many alternatives form other suppliers too. I was trying to stay with p channel FET (since you started out that way), and the LTC4413 has internal FETs. Most simple workable solution is usually best ... so if a Schottky in each line results in adequate voltage that would be simplest. –  gsills Jan 18 '13 at 17:05
    
Here is the simplest approach that gsills is referring too: Power Supply OR’ing Controllers (pdf) –  Nick Apr 20 '13 at 22:15

In both schemes, there is no real isolation between 3V3_1 and 3V3_2. Any signal on 3V3_1 that's high enough to bias the P-channel MOSFET body diode will make it to 3V3_2 if the adapter isn't plugged in. Since you said 3V3_2 is generated by a switching regulator, you'd best make sure that the back-bias won't power it up and make it start malfunctioning. (Some buck regulators don't like having a signal on their output when there's no input.)

In scheme 2, not only will the 3V3_2 be back-biased, but there will be a gate signal on the N-channel FET from 3V3_2 (since the control switch is floating). It may or may not be enough for the N-channel to start to conduct, which may or may not be enough for the P-channel to try and conduct - it all depends on the gate thresholds.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.