Hi,
Delay and sleep are not Ansi.
The libraries don't include them.
Processor Expert includes this function:
Delay100US - This method realizes software delay. The length of delay is at least 100 microsecond multiply input parameter us100. As the delay implementation is not based on real clock, the delay time may be increased by interrupt service routines processed during the delay. Adding read wait states for external program memory can cause delay extension as well. The method is independent on selected speed mode.
ANSIC prototype: asm void Delay100US(word us100)
- us100:word - Number of 100 us delay repetitions.
Without Processor Expert you must use nop instruction in a loop.
Regards
Pascal