Positron Compiler Documentation

Snooze

Positron8 · Revision 4.0.6.5 · PDF page 355

Snooze Period

Enter sleep mode for a short period. Power consumption is reduced to a few µA assuming no loads are being driven.

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: -

PeriodLength of Snooze (approx)
0 - 118ms
1 - 236ms
2 - 472ms
3 - 8144ms
4 - 16288ms
5 - 32576ms
6 - 641152ms (1.152 seconds)
7 - 1282304ms (2.304 seconds)
Snooze 6   ' Low power mode for approx 1.152 seconds

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.

View original PDF page 355Open page in PDFOriginal PDF page 355