<<Previous |
5.19. NAP
PeriodNAP
Places PICmicro in low power mode for short periods of time. During this
NAP, power consumption is reduced to minimum. The listed periods are only approximate because the timing is derived from the Watchdog Timer which is R/C driven and varies greatly from chip to chip and over temperature:
Period |
Delay (Approx.) |
0 |
18 mSec |
1 |
36 mSec |
2 |
72 mSec |
3 |
144 mSec |
4 |
288 mSec |
5 |
576 mSec |
6 |
1.152 Sec |
7 |
2.304 Sec |
7 'Low power pause for about 2.3 secondsNap
5.20. OUTPUT
PinOUTPUT
Make the specified pin an output. Only the pin number itself, i.e. 0 to 7, is specified (i.e. NOT
Pin0.)0 'Make Pin0 an outputOutput
5.21. PAUSE
PeriodPAUSE
Pauses the program for
Period milliseconds. Period is 16-bits, so delays can be up to 65,535 milliseconds (a little over a minute). Unlike the other delay functions (NAP and SLEEP), PAUSE doesn't put the PICmicro into low power mode. Thus, PAUSE consumes more power but is also more accurate. It has the same accuracy as the system clock.1000 'Delay for 1 secondPause
<<Previous |