FDN340P Drawn incorrectly on schematic?

The MOSFET switches using the Vgs (Voltage between the Gate and Source). I.e in this case the voltage between the output of the comparator and what should be the voltage of the USB 5V (however this is NOT what is drawn).

What I understand you're saying above is you think T1 selects whether the voltage comes from VUSB or GATE?
Like an SPDT switch?
No.

The mosfet is just being used as an on/off switch, i.e. whether to disconnect or connect VUSB, and allow it to flow or not to U3.

The output of the comparator (gate) just "flicks" this switch on or off.
(when comparator is low, powered from VUSB. When comparator is high, disconnected from VUSB.

Someone once posted on this forum in detail explanation about the specific usage of this FET switch in the arduino auto-voltage switching application and it involved the body diode of all things? So while it might be an unconventional set up it appears to perform the function that is required.

Lefty

There is a big discussion of it in the old forum, I didn't attempt to find it tho.
Operation is as vasquo says - USB not connected to 5V when comparator output is high, and USB becomes the source for USB when comparator output is low (generally, powered from PC and nothing connected to barrel jack).

Hi,

No I do not think it acts like a SPDT switch! Like I said, I am happy with the 'descriptive' purpose and operation of the MOSFET - i.e it is switching USB 5V either on or off. What I am not happy with is the way the terminals of the MOSFTET are drawn in the schematic.

Please see my attached image.

Circuit A is what has been drawn on the schematic.

I believe that what should have been drawn is Circuit B.

Any comments?

Thanks

Lydecker:
Hi,

No I do not think it acts like a SPDT switch! Like I said, I am happy with the 'descriptive' purpose and operation of the MOSFET - i.e it is switching USB 5V either on or off. What I am not happy with is the way the terminals of the MOSFTET are drawn in the schematic.

Please see my attached image.

Circuit A is what has been drawn on the schematic.

I believe that what should have been drawn is Circuit B.

Any comments?

Thanks

Yes, don't guess or postulate. Get the datasheet for the specific FET and see it's terminal pin out and then look on your board to see if it's wired as drawn or not. The fact that it works as presently installed on arduino boards is not in question, just how the FET might be being used. Mosfets are able to conduct current in either direction to and from drain and source, that is also known.

Lefty

Ahhhh i see what you mean. Why didn't you say so in the 1st post. Your beef is with the drawn diode! :slight_smile:

Looks like the internal diode for the mosfet symbol is drawn the other way around.

Per datasheet, figure B mosfet symbol is correct.

Cool, thank you vasquo! Good to know I'm not going insane!

yes my beef is the way the diode is drawn and hence ALSO the drain and source terminals.

In their schematic they have drawn the circuit symbol for a P MOSFET such that the Drain terminal of the mosftet is connected to the USB 5V when in fact they should have drawn it such that the source terminal is connected to USB 5V. Basically the MOSFET symbol is drawn back to front in their diagram.

I thought it was just a simple error in the schematic drawing, however I was doubtful given this error has been present since the Duemilanove schematics back in 2009.... I can't believe this hasn't been picked up on to date?

vasquo:
Ahhhh i see what you mean. Why didn't you say so in the 1st post. Your beef is with the drawn diode! :slight_smile:

No, diode is built into fet and is drawn correctly in both examples and just like the datasheet shows cathode of diode connected to source terminal. His issue is how the fet is wired into the larger circuit, which side should be drain and source terminals.

Looks like the internal diode for the mosfet symbol is drawn the other way around.

Per datasheet, figure B mosfet symbol is correct.

The drain/source is drawn correctly and works correctly.
It's just the drawn diode that is wrong in the schematic.... see datasheet for correct diode orientation.

FYI, in Eagle, you can draw the schematic any which way (heck, you can just show the mosfet as a box with 3 legs and a smiley face) and as long as you assign and label the pins, and connect them to the correct device pins, it will work.

Lydecker:
Cool, thank you vasquo! Good to know I'm not going insane!

yes my beef is the way the diode is drawn and hence ALSO the drain and source terminals.

In their schematic they have drawn the circuit symbol for a P MOSFET such that the Drain terminal of the mosftet is connected to the USB 5V when in fact they should have drawn it such that the source terminal is connected to USB 5V. Basically the MOSFET symbol is drawn back to front in their diagram.

I thought it was just a simple error in the schematic drawing, however I was doubtful given this error has been present since the Duemilanove schematics back in 2009.... I can't believe this hasn't been picked up on to date?

That's because it's not in error, just your failure to see how the device operates in the circuit being used. Have you compared the physical mounting of the fet in your board Vs the datasheet terminals?

Lefty

I also struggled with this and thought D and S should have been swapped in the schematic (and on the board). But there is a good, simple explanation here of why it is correct as drawn:
http://www.engineeredentropy.com/2013/01/arduino-power-supply-selector/#more-214

In summary, the MOSFET is actually being used as a diode, not so much as a switch. But when the gate is low the channel conducts and the diode forward drop is essentially eliminated.

If you swapped D and S and put it in a more conventional PMOS switch arrangement then the body diode will allow flow from the Arduino Vreg back to USBVCC when the gate is high and the channel is blocked.

Jim

JimG:
I also struggled with this and thought D and S should have been swapped in the schematic (and on the board). But there is a good, simple explanation here of why it is correct as drawn:
http://www.engineeredentropy.com/2013/01/arduino-power-supply-selector/#more-214

In summary, the MOSFET is actually being used as a diode, not so much as a switch. But when the gate is low the channel conducts and the diode forward drop is essentially eliminated.

If you swapped D and S and put it in a more conventional PMOS switch arrangement then the body diode will allow flow from the Arduino Vreg back to USBVCC when the gate is high and the channel is blocked.

Jim

Hi Jim,

So when there is no external supply, the comparator output goes low, the MOSFET conducts, the drain-source channel shorts out the body diode, and USBVCC flows through to Vreg ("+5V" on the schematic).

Question: The MOSFET conducts only if Vg is sufficiently lower than Vs/Vreg. But isn't Vs/Vreg a floating node in this case? So how would bringing the gate low activate the MOSFET if Vreg is not at a well-defined voltage?

Eric

Summary
The circuit works correctly with the PMOS Field Effect Transistor source and drain connected as shown in the schematic. The diodes in the PMOS FDN340P unit are the issue of concern. Do not worry, the diodes will not cause trouble.

Details
In the schematic, the source is on the right with the p type source shorted to the n-type substrate inside the unit. A protective diode is also in the unit. The other diode is not shown in the transistor symbol, but it exists where the p-type drain is metallurgically connected to the n-type substrate during silicon wafer manufacturing.

If the drain p-type material goes above the n-type substrate by 0.7 volts, the hidden diode will turn on with the forward bias.

The drawn diode in the unit duplicates the hidden diode from drain to substrate. This highlights for the engineer that : since the substrate is shorted to the source, there is a parasitic diode wired from drain to substrate that is shorted to the source terminal. The engineer wil recognize that applying a large voltage from drain to source will forward bias the parasitic diode. It is a bad idea to forward bias the substrate! That can provide a latch-up current problem if the geometries on the silicon are not robust.

The drawn diode symbol in the unit may be intended to prevent inductive spikes from causing damage to the MOSFET. It also indicates the polarity of the hidden diode from drain to substrate. The drawn diode may be a Schottky diode which turns on at 0.45 volts to prevent the pn junction diode from reaching 0.70 volts.

The datasheet Figure 6 implies that a Schottky diode is present, since 1mA flows at 0.45 volts at 25 degrees c. Intelligent Power and Sensing Technologies | onsemi

Conclusion
The schematic has it wired right. The diode seems to be a Schottky diode to prevent the pn diode from being forward biased, preventing latch up.

Reversal
If the source and drain get reversed in this circuit, a problem can occur when the +5 volt node will supply the USB with current if the USB cable touches a ground or unpowered computer.

I'm really sorry to post to a really old topic by Lydecker is right. The mosfet is the wrong way around, not just on the schematic, but the board too, the FDN340p is literally doing nothing on the board.
When Gate is off current flows, and when gate is on current flows.

Here is an image of the circuit on a breadboard. Arduino's circuit, and the proper way.
I used an FDN340p, not a different mosfet, I just I soldered header pins onto its pins.

Edit: Just read page 2, so if Jim is still around, just wondering why they would bother with the comparator going to the gate, if they were using it as a diode? Serious question. Only thing I can think of is that there is a tiny bit more resistance when its pulled high, but it still doesn't seem like enough to warrant the comparator.

LittleRain:
I'm really sorry to post to a really old topic by Lydecker is right. The mosfet is the wrong way around, not just on the schematic, but the board too, the FDN340p is literally doing nothing on the board.
When Gate is off current flows, and when gate is on current flows.

No, that's how it's supposed to be.

It's not a switch, it's an 'ideal diode' circuit.
A normal diode (the fet's body diode) when the fet is 'off', and a short (ideal diode) when the fet is 'on'.

Watch this.
Leo..

So, I see that you are not looking at the WHOLE circuit but only at
that part you think is important. The question is which power supply
do you want to use: the USB supplied one or the Vin source?
The higher voltage source is then automatically selected! Do not fret
about the body diode because if Vin is selected, it will be reversed
biased and out of the circuit.
Herb

Wawa:
No, that's how it's supposed to be.

It's not a switch, it's an 'ideal diode' circuit.
A normal diode (the fet's body diode) when the fet is 'off', and a short (ideal diode) when the fet is 'on'.

Watch this.
Leo..

Yeah that's what it was saying in the link Jim posted, what I don't understand is why they would add the comparator to check to see if the external voltage is active, why not pull it to ground and call it a day?

LittleRain:
why not pull it to ground and call it a day?

The fet has two functions.

  1. Provide true 5volt from the PC/laptop to the Arduino instead of ~4.6volt through a backflow protection diode.
    (like the Nano).

  2. Keep that backflow protection diode there, so you don't power to the PC/laptop's 5volt circuits if the Uno is on external supply.

The fet needs to be switched if you want those two modes.
Leo..

Ah ok, makes much more sense now.