2.3 Sleep Current Variation in Mi-Wi P2P and Star for SAM R30 Module XPro

In the Mi-Wi P2P and Star application for the SAM R30 Module XPro, the measured sleep current value for the default application without any modification is around 200 µA, which is quite a high value. The reason for this high sleep current is that the main clock acting as a clock source to external interrupt is active during the sleep interval. Under the conf_extint.h file, configure the ultra-low power clock for external interrupts, which in turn gives 1.76 µA as a current value. The user must add the following code in the conf_extint.h file to reduce the current consumption during the sleep interval for the SAM R30 Module XPro.

Note: This modification is only for the SAM R30 Module XPro.
#ifndef CONF_EXTINT_H_INCLUDED
#define CONF_EXTINT_H_INCLUDED

#define EXTINT_CLOCK_SELECTION EXTINT_CLK_ULP32K
/*** Define which GCLK source is used when selecting EXTINT_CLK_GCLK type.*/
#if (EXTINT_CLOCK_SELECTION == EXTINT_CLK_GCLK)
# define EXTINT_CLOCK_SOURCE GCLK_GENERATOR_0
#endif

#endif