[avr-gcc-list] output current for ATMega128 on output pins
Hi, i just browsed the data sheet but could not find in the electrical characteristics how much current i can output on a port. I'd like to drive some LEDs. I wonder, but this value should be in the data sheet, i must have missed it. Best regards, Torsten. ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Re: [avr-gcc-list] output current for ATMega128 on output pins
i just browsed the data sheet but could not find in the electrical characteristics how much current i can output on a port. I'd like to drive some LEDs. I wonder, but this value should be in the data sheet, i must have missed it. On the Mega-128 data sheet I read there are two values I found: Maximum current per I/O pin 40.0 mA Maximum current Vcc and GND 200.0 mA So, don't try and drive 10 LEDs at 20.0 mA each. -Alan -- - Alan Kilian kilian(at)bobodyne.com ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Re: [avr-gcc-list] output current for ATMega128 on output pins
Torsten Mohr [EMAIL PROTECTED] wrote: Hi, i just browsed the data sheet but could not find in the electrical characteristics how much current i can output on a port. I'd like to drive some LEDs. I wonder, but this value should be in the data sheet, i must have missed it. The spec you are looking for is VOL, or Output Low Voltage. This shows maximum output low voltage while sinking the given current. For a 3.3V supply the mega128 can sink 10 mA while the voltage at the pin is 0.5V or less. This is on page 321. Be sure to read the footnotes too. They spell out some restrictions on the total current allowed. galen ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Re: [avr-gcc-list] output current for ATMega128 on output pins
Torsten, AVR data sheets talk about 25 mA current per pin., but there is some limitation on the total current drawn. If you are planing to drive some LEDs (4/5) I think you can drive them directly from the port pins. You may consider sinking current to switch the LED ON rather than on sourcing current. Regards Nayani P --- Torsten Mohr [EMAIL PROTECTED] wrote: Hi, how much current i can output on a port. I'd like to drive some LEDs. __ Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it out! http://discover.yahoo.com/stayintouch.html ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list