disable peripherals/modules before sleep

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi, i am using for the first time a micro atmel samr34 (similar to samd21 etc etc). I can't find any documentation or examples on how to disable internal modules before going to sleep. Using a demo when it goes to sleep the board consumes 1uA. I add the I2C to the project, before going to sleep I call the function i2c_master_disable (), but the consumption remains at over 40uA. How do I turn it off completely and go back to 1uA. Question also valid for other peripherals/modules. I am using Atmel studio 7 and ASF (advanced Software Framework). Thank you. Luca