Is is safe to light 16 SMT 0805 LEDs from 16 pins on an SX-28 Through 300 Ohm r
SailerMan
Posts: 337
The Subject line is the Question. [noparse]:)[/noparse]
Comments
Note that the current through the LED depends partly on the type of LED (red / green / blue / white / high-intensity) because each one has a different forward voltage and that goes into the formula.
Voltage drop across resistor = Total supply voltage - voltage drop at I/O pin - forward voltage of LED
The (supply voltage - voltage drop at I/O pin) is usually given as Voh and is sometimes current dependent.
The forward voltage of the LED is given on the LED datasheet and is also a bit current dependent.
Post Edited (Mike Green) : 12/13/2007 8:35:48 PM GMT
Look at the pinout diagram on the datasheet for which I/O pins go where.
Actually, your calculation was incorrect. You arrived at 8.6 mA by dividing the LED forward voltage drop by the 300 ohm resistance, when in fact you should have calculated according to Mike's instructions.... 5Volts minus the LED forward drop to get the voltage accross the resistor, and divide that by the 300 ohms to get the current through the resistor. Hence, (5 - 2.6) / 300 = 8 mA.
The resulting value happens to be close to your value in this instance, but your approach was wrong.
That said, while any I/O pin can easily handle the 8 mA LED load, the SX power pin (if you were sourcing the power) or the SX ground pin (if you were sinking the power) will be sweating a bit with a current of 16 times 8 mA = 128 mA on top of the current consumed by the processor's silicon itself.
At low oscillator speeds, you can probably get away with it, although I would not reccommend it for a real application. Why not just give it a try, after all, an SX running at 75 MHz will consume about 100 ma, so we know the chip's power lines are able to deal with those levels of current. A prototype board is not that costly, hence your risk is very low. My bet is that it will work with no adverse effects. Turn it on, and keep a finger on the chip to monitor the temperature.
For sure it will work if you reduce the current somewhat by using 470 ohm resistors, yielding LED currents of (5 - 2.6) / 470 = 5 mA
Cheers,
Peter (pjv)