Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. /* dsPIC delays; copy delay32.s, null_signature.s from C30 install dir. */
  2. #define FCY 40000000ULL
  3. #include "libpic30.h"
  4. ...
  5. __delay_ms(500);    // delays for 0.5 sec
  6. __delay_us(1000);   // delays for 1000 microseconds (1 ms)
  7. __delay32(25);      // delay for 25 instruction cycles