das code ->
#include <p33Fxxxx.h> // header file for my specific PIC chip
_FWDT(FWDTEN_OFF) // set watchdog timer off
_FOSCSEL(FNOSC_FRCPLL) // fast RC oscillator (internal) with PLL
char fade_dir = 1;
void delay(long i) // delay for a given number of cycles
{
while(i--);
}
///////////////////
// main function //
///////////////////
int main(void)
{
RCONbits.SWDTEN = 0; // disable watchdog timer
///////////////////////////////
// set system to 39.6288 MIPS//
///////////////////////////////