Shop OBEX P1 Docs P2 Docs Learn Events
Curves, Propeller sourcing and sinking current. — Parallax Forums

Curves, Propeller sourcing and sinking current.

Tracy AllenTracy Allen Posts: 6,664
edited 2013-09-30 16:25 in Propeller 1
A recurring question is how to drive loads from Prop pins. For example, there was this thread, Multi-Color-LED-Question, where the question came up in the form of whether or not it would be safe to drive a blue, or green, or even a red LED, directly from a Prop pin without a limiting resistor. I threw out the figure of 30Ω as the output resistance of a Prop pin, but couldn't recall where I got that. We have lots of rules of thumb for this kind of thing, but it is worthwhile to have a reality check from time to time. I did a quick test using a demo board. Here are I/V curves for a pin, both sourcing current and sinking current. The slope of the line is the output resistance, that is, the equivalent circuit is 3.3V in series with this equivalent resistance. The slope of the curve changes with load, nonlinear. For loads up to 25 or 30 mA is close to 30Ω (varying from 27Ω at light loads to 33Ω at around 25mA). The source and sink curves track one another closely over that range. At heavier loads, the curves bend around to a limiting current and a higher equivalent resistance.

PropSourcing.png
PropSinking.png
PropSourceSink.png



The surprise to me is the difference at higher currents, as it approaches a short circuit. Sinking bent around strongly toward 40mA, but sourcing was still heading up toward 60mA. Maybe Beau would have an explanation for that. I'm still used to thinking that n-fets could be counted on for more drive than p-fets.

The measurement at high currents is done with short durations. It is ambiguous, because the current and voltage drift as the internals heat up.
618 x 458 - 32K
623 x 460 - 31K
677 x 364 - 52K

Comments

  • jmgjmg Posts: 15,173
    edited 2013-09-30 15:22
    Did you check all pins ?

    There is usually also a total package limit, which is often less than N * P mA

    To me the curves show a P-FET that has been scaled to match the N-FET, but that also has poorer ideal 'curve tracer' transfer into the constant current region. So the higher P current is more because the N behaves like a better FET
  • Tracy AllenTracy Allen Posts: 6,664
    edited 2013-09-30 16:25
    I'm not looking so much for the pin or package limits as for the "small signal" equivalent resistance below 20mA. To be on the safe side, I don't like to drive an individual pin above 10mA continuous. Even that taken on all 32 pins would exceed the package limit.

    The data sheet maximum is 40mA per pin, 300mA total for Vss or Vdd, and 1W for the package.

    Screen shot 2013-09-30 at 4.23.13 PM.png
Sign In or Register to comment.