Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Microcontroller maximum current output...

Status
Not open for further replies.

AceOfHearts

New Member
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.
 
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.
 
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
 
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.
 
Sceadwian said:
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.

Well an AVR isn't a 'PIC model' at all, a PIC is a completely different device, which AVR attempted to steal market share from, even to the extent of using a three letter name!.

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?.
 
hi..

AceOfHearts said:
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.

well,

follow this site..

i think this link may help you..

This person is from Maharashtra..

Regards,

Simran..:)
 
Gayan Soyza said:
Use a 220R pull-up resister in series with the LED if the supply voltage is 5V.

What is the LED current in this case?

Does 8051 datasheet confirms 8051 port pin can allow this current?
 
That was supposed to read "AVR or newer PIC models". Older PIC's aren't much better than 8051's
 
Gayan Soyza said:
9.54mA for 2.0V LED bulb.

LED is a diode, not a bulb.
(5V - 2.0V)/220R = 13.6mA, not including saturation voltage of port pin.

Gayan Soyza said:
Yes it is enough until 15mA.You are thinking about the source current but I'm telling about the sinking current.This old chip series good for sinking other than sourcing.

I knew what I was thinking. So you think a 8051 port pin is good for sinking 15mA. You show seriously read the datasheet then.

Please give a reference to any document that shows 8051 can sink 15mA on its port pin.
 
eblc1388 said:
(5V - 2.0V)/220R = 13.6mA, not including saturation voltage of port pin.
I reduced TTL output level 0.9V from the supply 5V.

5V-0.9V = 4.1V

4.1V-2V = 2.1V

2.1V/220R = 9.54mA
 

Attachments

  • Port1.JPG
    Port1.JPG
    20 KB · Views: 348
  • Port2.JPG
    Port2.JPG
    15 KB · Views: 374
Driver

The attachment is a simple driver circuit to drive the LED at 20ma with about 20ua input from chip. R1 control the max. current that the LED can draw; you can go up to about 500 ohms but the brightness LED will go down. In creasing R2 will lower the total current being draw from the chip but leaving more current for other outputs plus the brightness of the LED may go down.

BEN
 
Yes 8051 family can add a resister from 100R onwards to their output pins.220R is a descent value.

I have seen many atmel projects they use 220R resisters to their output pins to drive LED's.
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top