![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| I have noticed that my 8051 can barely light an LED. I tried connecting the LEDs ground directly without a current limiting resistor, yet it was very dim. I am using the 8051 to drive other devices like LCD which works fine. Is the 8051 current output really so low? I did 'overheat' the 8051 once by accudentally connecting it in reverse polarity... But the device still works perfectly. Its just lighting an LED. So.... 1) Is the 8051 current output always so low? 2) What is the best way to light up an LED connected to the 8051 to full brightness? Thanks. | |
| |
| | (permalink) |
| I don't know about 8051, but use AVR, mostly the Tiny series. Ordinary LEDs are 20-30 mA, and I've had no trouble running them directly from the MCU. I often omit the series resistor when I know the LED will be flashing, and never constantly on. Check your data sheet. Most MCUs seem to be 20-25 mA per output, and around 200 mA total for the chip. | |
| |
| | (permalink) |
| You really need to download a data sheet for your specific 8051 MPU, it will specifiy the output high and low current ratings for all of the various output pins. Lefty | |
| |
| | (permalink) | |
| Early uC like the 8051 could not directly source or sink a LED. 8051 microcontroller hardware interfacing tutorials circuits ... In the above page Quote:
__________________ search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, 3v0's Homepage The 15 Minute Printed Circuit Board! (+drill time) | ||
| |
| | (permalink) |
| 8051's are seriously dated, unless you're required to learn them on a professional level you should learn to program AVR's are the newer PIC models. They're significantly more robust.
__________________ "Because I be what I be. I would tell you what you want to know if I could, mum, but I be a cat, and no cat anywhere ever gave anyone a straight answer, har har." | |
| |
| | (permalink) | |
| Quote:
Either a PIC or an AVR would be a far better (and much more modern) solution, but presumably the OP is in India/Pakistan where they still seem to use the antique 8051's?. | ||
| |
| | (permalink) | ||
| Quote:
Quote:
| |||
| |
| | (permalink) | |
| Quote:
follow this site.. i think this link may help you.. This person is from Maharashtra.. Regards, Simran..
__________________ Simran.. 8051 Specialist.. | ||
| |
| | (permalink) | |
| Quote:
Does 8051 datasheet confirms 8051 port pin can allow this current?
__________________ L.Chung | ||
| |
| | (permalink) |
| What part didn't you understand in the "Ports-Of-8051.doc" document? http://www.electro-tech-online.com/m...-o-8051-a.html Like Leftyretro aleady said, read the maximun sink & source current for you specific device | |
| |
| | (permalink) |
| That was supposed to read "AVR or newer PIC models". Older PIC's aren't much better than 8051's
__________________ "Because I be what I be. I would tell you what you want to know if I could, mum, but I be a cat, and no cat anywhere ever gave anyone a straight answer, har har." | |
| |
| | (permalink) | ||
| Quote:
Quote:
| |||
| |
| | (permalink) | ||
| Quote:
(5V - 2.0V)/220R = 13.6mA, not including saturation voltage of port pin. Quote:
Please give a reference to any document that shows 8051 can sink 15mA on its port pin.
__________________ L.Chung | |||
| |
| | (permalink) | |
| Quote:
In what way?, and what 'older' PIC's?. | ||
| |
| | (permalink) | |
| Quote:
5V-0.9V = 4.1V 4.1V-2V = 2.1V 2.1V/220R = 9.54mA | ||
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| Expert Stabilised Power Supply with Current Limiting | mechie | Electronic Projects | 36 | 11th March 2008 08:16 PM |
| Adjustable Current Output | moctod | Electronic Projects Design/Ideas/Reviews | 8 | 20th February 2007 02:56 AM |
| programmable current source from a microcontroller | bajgik | General Electronics Chat | 11 | 30th April 2006 11:49 AM |
| PSU output into BJT Collector current | gjpollitt | General Electronics Chat | 2 | 14th August 2005 11:29 PM |
| microcontroller output: lsb vs hsb | hani_a | Micro Controllers | 1 | 21st April 2004 02:48 PM |