
4
Autonomous Standby and Embedded Applications
Your embedded applications can also enable or disable Autonomous Standby by using
the spm() function. If Autonomous Standby is enabled, dlys() or dlyms() will cause
the Wireless CPU® to enter low power mode for the period of the delay.
The following example illustrates enabling Autonomous Standby:
1
/* spm.SC: This program uses spm function
2
* to enable sleep mode
3
*/
4
5
main ()
6
{
7
/* enable autonomous standby */
8
spm(1,500);
9
prtf ("starting a delay for 5 seconds\n");
10
/* perform a 5 second delay */
11
dlys (5);
12
prtf ("delayed for 5 seconds\n");
13
}
Output
starting a delay for 5 seconds
delayed for 5 seconds
Note that any UART activity caused directly or indirectly by your embedded
application will restart the inactivity delay. All embedded application functions other
than dlys() and dlyms() run in normal power mode at normal processing speeds. It is
only during the delay imposed by the dlys() or dlyms() functions that low power mode
is entered.
APPLICATION NOTE
GR/GS64 UART Sleep Protocols
Page: 23/26
This document is the sole and exclusive property of WAVECOM. Not to be distributed or divulged without prior written agreement.
Ce document est la propriété exclusive de WAVECOM. Il ne peut être communiqué ou divulgué à des tiers sans son autorisation préalable