Author Topic: xMega power consupmtion  (Read 2060 times)

0 Members and 1 Guest are viewing this topic.

Offline Aleksandar B.Topic starter

  • Contributor
  • Posts: 28
  • Country: cs
xMega power consupmtion
« on: August 06, 2015, 06:33:51 pm »
I have a project where one of the requirements is for the device to be battery powered. The electronics design is done by someone else and the microcontroller that was chosen is Atmel's xMega128A1. So after writing some firmware the least amount of current that I managed to get is 619uA at 1.8V (In sleep mode). I have no previous experience with battery powered devices but this sounds like a lot to me. Also the datasheet says that the power consumption in those conditions should be 0.52uA... I know some manufacturers like to over exaggerate but the difference here is ~1240x. I have done everything that Atmel suggests through application notes and examples. Am I missing something? 
 

Offline benSTmax

  • Regular Contributor
  • *
  • Posts: 87
Re: xMega power consupmtion
« Reply #1 on: August 06, 2015, 09:01:39 pm »
I don't have experience with the part you're using but the following recipes are good practices when designing low-power devices.
Check for other leakages on your board (e.g. resistor dividers), put all the MCU pins that have pull-ups, pull-downs as inputs, try to stop the oscillator.
Another trick is to keep the MCU in reset and measure the current. While in reset, the I/O pins are normally inputs and the oscillators should not run. If the current is around what you've measured, then you need to check outside the MCU for leakages.
If the current drops around the expected figure, then you have to do more in the firmware.
Good luck!
 

Offline ralphd

  • Frequent Contributor
  • **
  • Posts: 445
  • Country: ca
    • Nerd Ralph
Re: xMega power consupmtion
« Reply #2 on: August 08, 2015, 11:44:59 pm »
With the tiny and mega AVRs you nees to disable brown-out detection during sleep to minimize power.
Unthinking respect for authority is the greatest enemy of truth. Einstein
 

Offline Aleksandar B.Topic starter

  • Contributor
  • Posts: 28
  • Country: cs
Re: xMega power consupmtion
« Reply #3 on: August 09, 2015, 09:24:14 am »
After some more digging I found out that the JTAG draws a lot of current, but at the moment, for some unknown reasons, I can't disable it, neither trough firmware nor fuse bits.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf