Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 User Manual

Product codes
SW006021-1
Page of 518
Library Functions
 2012 Microchip Technology Inc.
DS52053B-page 349
NOP 
Synopsis
#include <xc.h>
 
NOP();
Description
Execute NOP instruction here. This is often useful to fine tune delays or create a handle 
for breakpoints. The NOP instruction is sometimes required during some sensitive 
sequences in hardware.
Example
#include <xc.h>
void
crude_delay(unsigned char x) {
   while(x--){
        NOP();  /* Do nothing for 3 cycles */
        NOP();
        NOP();
   }
}