What is max current on an AVR?

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If an AVR can take max 40mA on each IO and max 200mA on VCC and Gnd pins.

 

This is simple when there only is one Gnd and Vcc, but for a chip with 3 Vcc and Gnd pins what is max current for the chip?

3x200=600mA

3x200-50=550mA (or something like that)

200mA because it's heat that is the problem. 

or ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Surely, the datasheet will specify this for the particular chip & package?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

NO that is the problem! (Or I'm blind)

 

There is no chip info!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So which specific chip are you asking about?

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Any!

No Atmel AVR datasheet have the information (perhaps Xmega)

 

But in this case it's a mega324

 

only info is under absolute maximum ratings

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So it doesn't.

 

sad

 

Perhaps what I was thinking of was:

 

ATmega324P/V Complete  Datasheet; revision B, updated: 08/2016 wrote:

3. Although each I/O port can sink more than the test conditions (20mA at VCC = 5V, 10mA at VCC =
3V) under steady state conditions (non-transient), the following must be observed:

3.1. The sum of all IOL, for ports PB0-PB7, XTAL2, PD0-PD7 should not exceed 100mA.

3.2. The sum of all IOH, for ports PA0-PA3, PC0-PC7 should not exceed 100mA.

Which gives you a maximum total of 200mA;  which corresponds to the value stated for "DC Current VCC and GND Pins" - so that would be the total for all Vcc & GND pins.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The real problem was because I was looking at the 324PB that have a max current of 100mA on the Vcc and Gnd pins.

It has 1 Vcc and 2 Gnd so does it mean that the amount of sink and source are different? 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Even for 200mA, I think I'd use some little N channel mosfets.

 

"We trained hard... but it seemed that every time we were beginning to form up into a team, we would be reorganized. I was to learn later in life that we tend to meet any new situation by reorganizing. And a wonderful method it can be of creating the illusion of progress while producing confusion, inefficiency and demoralization." Petronius Arbiter, approx. 2000 years ago.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

? the problem is the power for the hole chip. 

Like you can't run 24 5mA LED's direct! (I don't want 24 extra transistors, then I just stay with a 324P)

But if the two Gnd make it a total of 200mA that can run "into" the chip it would work (for this project I don't care about noise on the ADC). 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

0.9V * 200mA = 180mW (max sink voltage and max sink current; somewhat warm)

The mega324PB comes in VQFN with an exposed pad to sink the heat.

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

From #9

But I guess that I can put 12 LED's to Gnd and the other 12 to Vcc       (and 24 resistors).

Then it should be ok.