4
\$\begingroup\$

Edit/added - RM: See Karl's prior question of December 20th last DS1822 1-Wire Sensor, Parasitic Power, and Strong Pull-Up Circuit which gives a very clear explanation of what he is actually trying to achieve. The following material is related to his attempt to understand the high side strong-pullup requirement of the IC concerned. < /edit >


I have been looking through many of the posts with MOSFET in them, but can't seem to find exactly what I'm looking for. Apologies in advance if this is a common or duplicated question.

I have obtained an N-Channel MOSFET (IRLB8721PBF-ND) (http://www.irf.com/product-info/datasheets/data/irlb8721pbf.pdf) to use as a logic level MOSFET.

To test out the behavior I'm expecting to see with a 3.3v MCU, I hooked the Gate to a 3.3V power source with a 10k ohm pull down resistor. Drain was hooked to the same 3.3V power rail and Source connected to a 360 ohm resistor running through an LED to ground.

The behavior I saw regarding voltage was not what I expected. It seems that the voltage measured at the Drain is 3.3V (expected) and at the Source is 1.65V (not expected).

Disconnecting the LED and current limiting resistor brings the Source to 1.93V.

What I am attempting to determine is if the 1V+ voltage drop I'm seeing is due to the MOSFET's diode forward voltage maximum of 1V, or if there is something else at play here.

The intention of using the MOSFET is ultimately use it to directly connect a parasitic 1-wire device to the power rail during current intensive operations to retain the needed ~2.8V level.

This shows me that the setup I have now would not work. If my assumption is correct, do 'logic level' MOSFETs exist that have an almost negligible forward voltage drop?

If my assumption is incorrect, then perhaps I've wired something incorrectly and this setup could still work.

Additionally, I've seen recommendations to place a current limiting resistor between the MOSFET Gate and an MCU pin to avoid high current levels that may come back through. With the already existing 10k pull-down resistor from the gate, would this not create a voltage divider? I believe that's the behavior I saw at one point earlier in my experimenting.

edit
This schematic shows a modified circuit based on the request to move the LED and resistor to Vcc and the drain. Originally, they were both located between the Drain and ground. I guess at this point I have some confusion over high side / low side and why this now works. My actual intent for the circuit is to use the same schematic but instead of an LED/Resistor, the MOSFET will be used to provide increased voltage for an open drain port on an MCU connected to a 1-Wire parasitic device.
enter image description here

Here's the schematic I'm ultimately aiming for with the MOSFET. It comes from from Maxim's own datasheets.
enter image description here

\$\endgroup\$
10
  • \$\begingroup\$ Karl, a schematic of your experiment setup would make the question a lot clearer. You can link a picture, and someone with enough rep will inline it. Or, you can use CircuitLab. Judging from the description, however, it looks like you're trying to use an N-ch MOSFET as a high side switch, and not driving the gate high enough. \$\endgroup\$ Jan 2, 2014 at 23:25
  • 1
    \$\begingroup\$ This looks like the common high side/low side error. Use a P channel device, or move your LED and resistor to Vcc and the drain, and ground the source. What does that do? \$\endgroup\$ Jan 2, 2014 at 23:26
  • \$\begingroup\$ I have uploaded a schematic at: dl.dropboxusercontent.com/u/35207477/mosfet.png which shows a modified circuit based on the request to move the LED and resistor to Vcc and the drain. Originally, they were both located between the Drain and ground. I guess at this point I have some confusion over high side / low side and why this now works. My actual intent for the circuit is to use the same schematic but instead of an LED/Resistor, the MOSFET will be used to provide increased voltage for an open drain port on an MCU connected to a 1-Wire parasitic device. \$\endgroup\$
    – paul_25
    Jan 3, 2014 at 0:38
  • \$\begingroup\$ The schematic I'm ultimately aiming for with the MOSFET can be seen here as well: db.tt/wI01RNQF (This is from maxim's own datasheets). \$\endgroup\$
    – paul_25
    Jan 3, 2014 at 0:47
  • \$\begingroup\$ @Karl_34: That schematic needs a P MOSFET. \$\endgroup\$ Jan 3, 2014 at 1:33

3 Answers 3

5
\$\begingroup\$

You have received a large amount of useful input related to the question that you asked and it will be of assistance to others who read these answers in future.

However, you have been wasting people's time and confusing your self because you stated what you thought you needed to do to fix your problem instead of telling your people what your problem is. While there is some overlap the answers that have been given mainly relate to things that you are not trying to do. While they do somewhat address what you are trying to do, the diagram that you provided would make almost no sense in most contexts and is NOT doing what it appears to be doing.

Lesson: "Tell us what you actually are trying to do and we will tell you the best way to do it".

Real question: See Maxim DS1822 Data Sheet -
PAGE 5 - POWERING THE DS1822 and
page 6 SUPPLYING THE PARASITE-POWERED DS1822 DURING TEMPERATURE

In the related diagram below Vpu is a "weak pullup" and the FET is a "strong pullup".
When the Vdd pin is grounded, power supply energy may be provided via the DQ line and is stored in an internal capacitor Cpp (C parasitic power). During most portions of operation the "parasitic" feed provides enough current Ipp at an acceptable voltage to power the IC. During some operation Ipp is inadequate and the iC must either be powered via Vdd or via a higher current source (see data sheet page 5). During these high current operations the FET is turned on to provide extra supply current. This low resistance power feed clamps the bus high and presents it being used for signalling by other ICs on the bus, so the 'strong pullup' is enabled only for as long a period as required.

enter image description here

SO:

You do need a FET for pullup, you do need a high side FET, this need is most simply met with a P channel FET - all as advised by others.

As Vmicrocontroller (Vmcu) is >= V1_wire_bus, the FET is not being used as a level converter but as a high side power supply switch.

Choosing a MOSFET:

Connecting a suitable P Channel MOSFET as shown in the diagram will fill the need. Many FETs will do the job.

Rdson / On resistance: MOSFET must have low enough on resistance = Rdson for the task.
A MOSFET that dropped 0.1V at 2 mA would probably suffice
Rdson = Vdrop / Iload =
= 0.1v/2 mA = 50 Ohms.
You'd have immense difficulty buying a P Channel FET with Rds = 50 Ohms = normally available ones are typically 50 to 5000 times BETTER (lower Rdson) ie 1 Ohm down to say 10 milliOhms.ie ANY P Channel MOSFET that meets other specs will have an OK Rdson

Gate operating voltage = Vth or Vgsth:
Vth or Vgsth should be << Vcpu.
ie the μP (microprocessor) should easily drive the MOSFET.
A 3.3V μP will JUST operate a MOSFET where Vth = 3V.
Operation will be better at Vgsth = 2.5V
and better again at 2V. Lower again does not hurt.

Vds_max > say 10V is OK - 20V or 30V better. > 30V OK.
Ids_max is so low as to be met by anything.

The horrible BSS184 - datasheet here is 20 cents in 1's at Digikey and does the job well enough. Digikey and others have many more that will do a better job - but not needed here.

\$\endgroup\$
1
  • \$\begingroup\$ Thank you. Although I had a target circuit in mind from the data sheet, I was also misunderstanding the MOSFET in general. Your answer is precise and exact and I will follow your advice for future posts. \$\endgroup\$
    – paul_25
    Jan 3, 2014 at 6:17
3
\$\begingroup\$

In order to saturate a high-side NMOSFET driver you need to elevate the gate to at least VGS(th) above the desired source voltage. Since the typical value for that part is 1.8V, you can only get a maximum of 3.3V - 1.8V = 1.5V or so at the source. Consider switching to a PMOSFET so that the math works out properly for your situation.

\$\endgroup\$
2
  • \$\begingroup\$ I'm confused here as the part is described as being able to be driven by anything from as low as 2.8v up to 5v due to the low threshold voltage. This came from the description from adafruit.com. \$\endgroup\$
    – paul_25
    Jan 3, 2014 at 0:55
  • \$\begingroup\$ @Karl_34: That is correct. But those are referenced to the source. With low-side driving, the source is at ground. With high-side driving, the source is at the target voltage for the load. \$\endgroup\$ Jan 3, 2014 at 1:07
1
\$\begingroup\$

The mosfet is controlled by a voltage applied between the gate and source pins.
For a N-mosfet the gate should be more positive than the gate.

Now lets examine what you are trying to do.

enter image description here

When the gate is grounded the mosget is off so there is no current through R5 and the source is at 0v.
When you apply 3.3v to the gate then you apply a Vgs of 3.3v BUT as soon as the mosfet starts to conduct the voltage at the source rises (becomes more positive) and as it rises Vgs gets lower and lower (since Vgs is referenced to the source and not the ground) until the mosfet reaches a balance. That balance point is related to the Vgs-th (so will be different for each mosfet) and will keep the mosfet in a half open state.
There are two forces that keep this balance, if the mosfet tries to conduct more then the source will become more positive and Vgs will decrease, if on the other hand it tries to conduct less then Vgs will increase.

To avoid this problem with a N-mosfet as a high side switch you must either use an isolated power supply that will be applied between source and gate and will add over the existing voltage or a higher voltage from the one that is connected to the drain (if not available it can be generated with a bootstrap circuit).

In your particular case the best solution is to simply use a Pmosfet as Ignacio Vazquez-Abrams has suggested.

Regarding the gate resistor, it is not really necessary for static operation (unlike fast PWM). The mosfet behaves like a capacitor, it needs to be charged in order to turn on and to discharge in order to turn off. As soon as it does turn on (or off) it doesn't draw any current. The capacitance is about 1nF according to the datasheet.

\$\endgroup\$
2
  • \$\begingroup\$ Thank you for the detailed description. Moving to a P MOSFET, can you comment on whether a part such as this: vishay.com/docs/70891/70891.pdf would be appropriate given the gate would be driven by a pin on a 3.3V MCU and the source connected to a common 3.3V power source? \$\endgroup\$
    – paul_25
    Jan 3, 2014 at 5:37
  • \$\begingroup\$ @Karl_34 Vgs-th is specified as -3v max (note that this specification is for just 250uA current) so 3.3v is too close to that, you need a mosfet with has an even lower Vgs-th \$\endgroup\$
    – alexan_e
    Jan 3, 2014 at 8:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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