Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 29th November 2007, 10:45 PM   (permalink)
Default Will near max IO source current eventually damage PIC?

Hello forum,

I have a PIC10F206 driving a red SMD LED. To get the desired brightness, I would need to drive it with 25mA. 25mA is the absolute MAX for the PIC source current. The voltage on the PIC pin will drop to about 2.5V (Vcc = 5V) when sourcing 25mA.

Will I damage the PIC over time when sourcing the MAX current?

Regards,
Futterama
Futterama is offline   Reply With Quote
Old 29th November 2007, 10:50 PM   (permalink)
Default

You still need a current limiting resistor. 110ohms should work.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now   Reply With Quote
Old 29th November 2007, 10:53 PM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
You still need a current limiting resistor. 110ohms should work.
Yes yes, I know, I'm using 120ohms right now, and the current is about 15mA and the PIC pin voltage is about 4V. But I was just wondering if the PIC could handle the current for extended periods.
Futterama is offline   Reply With Quote
Old 29th November 2007, 11:20 PM   (permalink)
Default

i don't see why it couldn't - as long as you're within the electrical specifications (on the datasheet), there's no reason to think it would "wear out", aside from manuf. defects or something

not that it is strongly recommended, but I've got leds running straight off pic pins, with no resistor, relying instead on the internal resistance of the pic to limit the current (the collective RdsON of the pic's gate fets). Source voltage for the pic is only 3.6v in this case however
__________________
If you don't have a planet, what good are gold bars?

want to contact me directly? gmail gordonthree
check out my project website: http://projects.dimension-x.net
Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
justDIY is offline   Reply With Quote
Old 30th November 2007, 02:14 AM   (permalink)
Default

Quote:
Originally Posted by Futterama
Yes yes, I know, I'm using 120ohms right now, and the current is about 15mA and the PIC pin voltage is about 4V. But I was just wondering if the PIC could handle the current for extended periods.
Yes it will handle the current for an extended period. Also, the output voltage will naturally drop to the LED bias voltage when the LED is attached raw as justDIY mentioned. You do knot that the PIC will not put out more the 25mA +- 4ma on that output right. Any Rlimiters is for the LED and not the PIC.

Will your LED drift from its wavelength sweet spot after an extended period at max current is the question you will find out in time that depends on the truthfulness of the LED vendor and tolerances stacked against it.
donniedj is offline   Reply With Quote
Old 30th November 2007, 07:51 AM   (permalink)
Default

I think you will find that you won't get much more current if you do reduce the resistor. The short circuit current is only about 20 mA and once the output voltage start to droop, there isn't much more left.

If you short out a PIC's output, it means that bitwise operations on that port (eg bcf GPIO, 1), will cause the output to turn off.

http://www.sxlist.com/techref/readmodwrite.htm explains the problem, although I try not to overload outputs and avoid adjacent port instructions instead of using a shadow register.
Diver300 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Expert Stabilised Power Supply with Current Limiting mechie Electronic Projects 36 11th March 2008 07:16 PM
Current and Conductivity ElectroMaster Electronic Theory 1 2nd February 2007 12:49 PM
How to make constant current source j2bichon Electronic Projects Design/Ideas/Reviews 12 11th August 2003 02:47 PM
2mA constant current source wilbee General Electronics Chat 10 8th August 2003 11:31 AM
Will this work? daviddoria Electronic Projects Design/Ideas/Reviews 31 9th May 2003 04:43 AM



All times are GMT. The time now is 04:57 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.