|
DeepSleep (Function) |
|
DeepSleep will stop the processor of the RTCU device for a number of milliseconds - thereby lowering the power consumption considerably.
This function is equivalent to pmDeepSleep().
Note: During deep sleep mode the timers (TP, TON, TOF, etc.) will not be updated and the time spent in deep sleep mode will not be counted. The real-time clock functions (clockNow, clockGet, etc.) will be updated correctly.
The DeepSleep function will degrade to a Sleep() operation when the RTCU M2M Studio is connected to the device. This is to ensure stable communication without interruptions.
On NX32L devices, DeepSleep() always degrade to a Sleep() operation.
Input: delay : INT (0..32767) Number of milliseconds to sleep. The actual deep sleep period will be adjusted into steps of 250 ms.
Returns: None.
Declaration: FUNCTION DeepSleep;
Example: INCLUDE rtcu.inc |