Direct LED connection?
Russell McMahon email (remove spam text)
> I inadvertently connected an LED directly to RC5 with no current limiting
> resistor. It is flashing brightly at 1 Pulse Per Second. The PIC port
> source about 25 mA and that's about right for a bright LED. Other than
> current draw is there any down side to driving the LED directly?
'tis somewhat naughty and you really should check the current to be certain.
This will change with LED type also - eg white LED at 3.5v odd is much nicer
to PIC than red LED at rather less forward drop.
Doing this risks holding the PIC pin at near mid rail where interesting
internal effects may happen. While this is normally more of a concern for
inputs it's not overly wise here.
All that said - this definitely works OK in practice SOMETIMES. YMWV. If
this is for a one off non mission critical application for fun and you don't
mind it self destructing and size is all critical (eg in a brooch or badge
etc) then do it. Otherwise, addition of a resistor is recommended.
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
See also: www.piclist.com/techref/displays.htm?key=led
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the