Pause the program for Period microseconds. Period is 16-bits, so
delays can be up to 65,535 microseconds. Unlike the other delay
functions (NAP and SLEEP), PAUSEUS doesn't put the microcontroller into
low power mode. Thus, PAUSEUS consumes more power but is also
much more accurate.
Because PAUSEUS takes a minimum number of cycles to operate,
depending on the frequency of the oscillator, delays of less than a
minimum number of microseconds are not possible using PAUSEUS. To
obtain shorter delays, use an assembly language routine.
OSC Minimum delay
3 (3.58) 20us
4 24us
8 12us
10 8us
12 7us
16 5us
20,24 3us
25-33* 2us
40** 2us
* PIC17Cxxx and PIC18Xxxx only.
** PIC18Xxxx only.
PAUSEUS assumes an oscillator frequency of 4MHz. If an oscillator other
that 4MHz is used, PBP must be told using a DEFINE OSC command.
See the section on speed for more information.
Bookmarks