As tu essayé la fonction SLEEP . ?
Syntax:
SLEEP period
- Period is a variable/constant which specifies the duration of sleep in multiples
of 2.3 seconds (1-65535).
Function:
Sleep for some period (multiples of approximately 2.3s (2.1s on X1/X2 parts)).
Information:
The sleep command puts the microcontroller into low power mode for a period
of time. When in low power mode all timers are switched off and so the pwmout
and servo commands will cease to function. The nominal period is 2.3s, so sleep
10 will be approximately 23 seconds. The sleep command is not regulated and so
due to tolerances in the microcontrollers internal timers, this time is subject to -
50 to +100% tolerance. The external temperature affects these tolerances and so
no design that requires an accurate time base should use this command.
Emile