Hello Brian,
Further to Rocco's comments, a pin that has "direct LED drive" capability is capable of directly sourcing and/or sinking the required LED current (usually 10-15 mA) without an intervening buffer transistor. A series current limiting resistor would usually be fitted.
However, for the 908JL3 device, it appears that some of the PTA and PTD outputs have been specified without external current limiting (current sink only), but this will result in up to 3:1 unit-to-unit variation in LED current, which may be unacceptable. The inclusion of an external resistor would reduce this variation, but with a reduction in LED current. I notice that the data sheet specifies 2.0 volts across the LED for 5 volt supply rail, but only 1.2 volts for 3 volt supply, resulting in lower LED current in practice for typical LEDs.
PTD6 and PTD7 are capable of more sinking more current, and an external resistor must be fitted. Using these outputs with a 3.3 volt supply, white and blue LEDs would be problematic, but other colours should be OK, provided the supply is regulated (and not sourced directly from a single lithium cell).
Port pins without this capability used for LEDs will not be over-driven, but will simply restrict the LED current to a lower value, perhaps requiring a more efficient LED. Note that the source current capability is often much less than the sink current capability (908JL3 included), dictating the type of LED connection used. However, because of wide unit-to-unit variation in the output charactistics, a series resistor is still recommended.
A CMOS output can be viewed as a resistance in series with the relevant supply rail, where the resistance value will be dependent on supply voltage, but there is no saturation voltage threshold (as there would be with a bi-polar transistor). For a LED drive output pin, the resistance value will be lower than for other types of output. Doing a rough calculation for the 908JL3 pins gives an 'on' resistance 120-300 ohms at 5 volts, and 150-450 ohms at 3 volts, for the LED capable pins. For PTD6 and PTD7 the resistance would be less than 20 ohms at 5 volts.
Many of the data sheets (but unfortunately not the 908JL3 data sheet) show typical current source and current sink output characteristics as a voltage-current graph, where the behaviour would be more apparent. When the graph is available, it is possible to plot a "load line" to get a better idea of LED current. For a current sink connection subtract the nominal LED voltage from the supply voltage, and mark this value on the voltage axis. Then from this point, project a straight line back towards the current axis until it intersects the output graph - the slope of the line should equal the value of the external current limiting resistor. The intersection point will give the typical current through the LED.
Regards,
Mac
Hi, Brian:
bespenschied wrote:
I am trying to find out exactly what it means in the documentation when it states that the port pins have Direct LED drive capability. . . I have been using port pins to drive LED's with for years . . .