<<Previous

Next>>

5.19. NAP

NAP Period

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

Nap 7 'Low power pause for about 2.3 seconds

 

5.20. OUTPUT

OUTPUT Pin

Make the specified pin an output. Only the pin number itself, i.e. 0 to 7, is specified (i.e. NOT Pin0.)

Output 0 'Make Pin0 an output

 

5.21. PAUSE

PAUSE Period

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.

Pause 1000 'Delay for 1 second

<<Previous

Next>>