11.07.2015 Views

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PICBASIC</strong> <strong>PLUS</strong> Compiler5.67. SNOOZESyntax :Overview :Operators :SNOOZE PeriodEnter sleep mode for a short period. Power consumption is reduced toapproximately 50 µA assuming no loads are being driven.Period is a variable or constant that determines the duration of thereduced power nap. The duration is (2^period) * 18 ms. (Read as "2raised to the power of ‘period’, times 18 ms.") Period can range from 0to 7, resulting in the following snooze lengths:Period Length of SNOOZE0 - 1 18ms1 - 2 36ms2 - 4 72ms3 - 8 144ms4 - 16 288ms5 - 32 576ms6 - 64 1152ms (1.152 seconds)7 - 128 2304ms (2.304 seconds)Example : SNOOZE 6 ‘Low power mode for approx 1.152 secondsNotes :See also :SNOOZE intervals are directly controlled by the watchdog timer withoutcompensation. Variations in temperature, supply voltage, andmanufacturing tolerance of the PIC chip you are using can cause theactual timing to vary by as much as -50, +100 percentSLEEP124Copyright Crownhill 2001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!