Try the PAUSEUS command.
Here are the details as listed in the manual - http://www.melabs.com/resources/pbpmanual/ - (which should of been the first place to look)
PAUSEUS
PAUSEUS Period
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. It has the same accuracy as the system clock.
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 in an ASM..ENDASM construct.
OSC Minimum delay
3 (3.58) 20us
4 24us
8 12us
10 8us
12 7us
16 5us
20 3us
25* 2us
32* 2us
33* 2us
40** 2us
* PIC17Cxxx and PIC18Cxxx only.
** PIC18Cxxx 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.
PAUSEUS 1000 ' Delay for 1 millisecond
Bookmarks