Zitat Zitat von Involut
Okay vielen Dank.

Um es zusammenzusaffassen 20ma bei 5v pro pin 400ma pro port (wobei 8 *20ma ja 160ma < 400man aber egal)

Und alles was darüber hinaus geht muss nicht unbedingt schiefgehen aber ne garantier gibts dann nicht mehr und es kann mehr oder weniger alles passieren.

Richtig?
Nein,schon hast du es wieder falsch verstanden.

Hol dir mal auf www.atmel.com unter Microcontrollers->AVR 8-Bit Risc->Datasheets das passende Datenblatt zu deinem Controller.

Dort schaust du rein und suchst dir die elektrischen Eigenschaften.
Hinter den Maximum Ratings kommen die regulären Werte und unter der Tabelle stehen für gewöhnlich die fußnoten mit den einschränkungen.

Hier mal zum Beispiel ein Auszug vom Mega32

Code:
Notes: 1. “Max” means the highest value where the pin is guaranteed to be read as low
2. “Min” means the lowest value where the pin is guaranteed to be read as high
3. Although each I/O port can sink more than the test conditions (20 mA at Vcc = 5V, 10 mA at Vcc = 3V) under steady state
conditions (non-transient), the following must be observed:
PDIP Package:
1] The sum of all IOL, for all ports, should not exceed 400 mA.
2] The sum of all IOL, for port A0 - A7, should not exceed 200 mA.
3] The sum of all IOL, for ports B0 - B7,C0 - C7, D0 - D7 and XTAL2, should not exceed 300 mA.
TQFP and MLF Package:
1] The sum of all IOL, for all ports, should not exceed 400 mA.
2] The sum of all IOL, for ports A0 - A7, should not exceed 200 mA.
3] The sum of all IOL, for ports B0 - B4, should not exceed 200 mA.
4] The sum of all IOL, for ports B3 - B7, XTAL2, D0 - D2, should not exceed 200 mA.
5] The sum of all IOL, for ports D3 - D7, should not exceed 200 mA.
6] The sum of all IOL, for ports C0 - C7, should not exceed 200 mA.
If IOL exceeds the test condition, VOL may exceed the related specification. Pins are not guaranteed to sink current greater
than the listed test condition.
4. Although each I/O port can source more than the test conditions (20 mA at Vcc = 5V, 10 mA at Vcc = 3V) under steady state
conditions (non-transient), the following must be observed:
PDIP Package:
1] The sum of all IOH, for all ports, should not exceed 400 mA.
2] The sum of all IOH, for port A0 - A7, should not exceed 200 mA.
3] The sum of all IOH, for ports B0 - B7,C0 - C7, D0 - D7 and XTAL2, should not exceed 300 mA.
TQFP and MLF Package:
1] The sum of all IOH, for all ports, should not exceed 400 mA.
2] The sum of all IOH, for ports A0 - A7, should not exceed 200 mA.
3] The sum of all IOH, for ports B0 - B4, should not exceed 200 mA.
4] The sum of all IOH, for ports B3 - B7, XTAL2, D0 - D2, should not exceed 200 mA.
5] The sum of all IOH, for ports D3 - D7, should not exceed 200 mA.
6] The sum of all IOH, for ports C0 - C7, should not exceed 200 mA.If IOH exceeds the test condition, VOH may exceed the
related specification. Pins are not guaranteed to source current greater than the listed test condition.
5. Minimum VCC for Power-down is 2.5V.
Wie man sieht gibt es da eine ganze Reihe an einschränkungen die man Beherzigen sollte wenn man vom Controller länger was haben möchte.

Wie gesagt,ein Datenblattstudium ist notwendig und ich kann es immerwieder nur wärmstens empfehlen.