30.2.2. Sleep mode
In this mode, the main program is paused, the microcontroller passes to a latent state, from which it can be woken
by all asynchronous interruptions and by the synchronous interruption generated by the Watchdog. When the
Watchdog Timer is set up, the duration interval can be programmed from 16 ms to 8 s. Consumption in this state
is 30 μA.
In this mode the microcontroller stops executing the main program. The program stack where all the variables and
log values are stored keep their value, so when Waspmote returns to on mode, the next instruction is executed
and the variable values are maintained.
Figure: From on to Sleep mode
The following example would set Waspmote in the Sleep mode for 32 ms. The microcontroller would be in a state
of minimum consumption waiting for the synchronous interruption from the Watchdog:
{
PWR.sleep(WTD_32MS, ALL_OFF);
}
-130-
Energy Consumption
v8.6
Need help?
Do you have a question about the Waspmote Plug & Sense! Series and is the answer not in the manual?