High current in STANDBY mode for SAMD20

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

Hello:

I'm working with SAMD20E18 with my own board, which has only the uC and caps, so no external connections. When I put the device in STANDBY mode, I confirm it enters, but current is almost high as active mode. To detect it goes into STANDBY mode I rise a pin before and lower it after, so I see it remains in this power mode. I'm aware of Pin 24 & 25 but this effect is less than 1mA. I see about 18mA....

This is the code I'm using starting the main;

 

  NVMCTRL->CTRLB.bit.SLEEPPRM = NVMCTRL_CTRLB_SLEEPPRM_DISABLED_Val;
  SCB->SCR |=  SCB_SCR_SLEEPDEEP_Msk;

  __DSB();
  __WFI();

   while(1);

 

I have same set up working with SAMD10 and it works perfectly, with ~2uA in STANDBY mode. I'm using similar code, but I can't see such a low current in the SAMD20. What is different between such devices?

 

Thanks

Gus

Last Edited: Wed. Mar 29, 2017 - 02:28 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Never mind.

The hardware was wrong. These chips have VDDCORE which is actually an output voltage, and since I overlooked it, I connected to the power supply, and hence cresting this high current. Curiously, everything works, only current consumption is high...

 

Gus