Snooze
Positron8 · Revision 4.0.6.5 · PDF page 355
Syntax
Snooze Period
Overview
Enter sleep mode for a short period. Power consumption is reduced to a few µA assuming no loads are being driven.
Parameters
Period is a variable or constant that determines the duration of the reduced power nap. The duration is (2^period) * 18 ms. (Read as "2 raised to the power of ‘period', times 18 ms.") Period can range from 0 to 7, resulting in the following snooze lengths: -
| Period | Length of Snooze (approx) |
| 0 - 1 | 18ms |
| 1 - 2 | 36ms |
| 2 - 4 | 72ms |
| 3 - 8 | 144ms |
| 4 - 16 | 288ms |
| 5 - 32 | 576ms |
| 6 - 64 | 1152ms (1.152 seconds) |
| 7 - 128 | 2304ms (2.304 seconds) |
Example
Snooze 6 ' Low power mode for approx 1.152 seconds
Notes
Snooze intervals are directly controlled by the watchdog timer without compensation. Variations in temperature, supply voltage, and manufacturing tolerance of the device you are using can cause the actual timing to vary by as much as -50% to +100%
See also : Sleep.
