#include "p18f4550.h"
#include "delays.h"
#include "timers.h"
#pragma config PLLDIV = 5, CPUDIV = OSC1_PLL2, USBDIV = 2, FOSC = HSPLL_HS, FCMEN = OFF, IESO = OFF, PWRT = ON, BOR = OFF, BORV = 0, VREGEN = OFF, WDT = OFF, CCP2MX = OFF, PBADEN = OFF, LPT1OSC = ON, MCLRE = ON, STVREN = ON, LVP = OFF, ICPRT = OFF, XINST = OFF, DEBUG = OFF
#define delay() Delay10KTCYx(150)
void main()
{
unsigned int delay = 1;
volatile unsigned char x = 4;
ADCON0 = 0;
INTCON = 0;
SPPCON = 0;
UCON = 0;
TRISB = 0;
PORTB = 0xFF;
TRISD = 0;
PORTD = 0;
while(1)
{
PORTB = PORTB + 1;
PORTD = PORTD + 1;
delay();
}
}