Can someone please confirm me that how much of load can be connected to an Atmega's output pin directly..??
Is it fine to connect 3 x 20mA LED in parallel to each output pin of an atmega328.??
Can someone please confirm me that how much of load can be connected to an Atmega's output pin directly..??
Is it fine to connect 3 x 20mA LED in parallel to each output pin of an atmega328.??
No.
40mA is the Absolute maximum the pins are rated for. 20mA is a more sensible limit.
There is also a current limit for the IC as a whole which I think is 200mA through its VCC and GND pins.
40mA per pin with degraded performance above 20mA.
200 mA thru Each Vcc/Gnd pin.
Thus an SMD part with 2 each Vcc & Gnd can hanclle 400mA (and I have previously posted a response from Atmel saying it is 200mA per pin),
while a DIP with just one VCC pin is limited to 200mA. (and AVCC pins do not count as current providing pins.)
The limits on current thru each port in Section 29 notes restrict the total IO current to 300mA total: