#include <htc.h>
__CONFIG(WDTE_OFF & PWRTE_ON & MCLRE_ON & CP_OFF & CPD_OFF &
BOREN_OFF & LVP_OFF & FOSC_INTRC_NOCLKOUT & DEBUG_ON);
void delay() {
int counter = 0;
for (counter = 0; counter<10000; counter++);
}
int main(void) {
TRISB = 0xF8;
TRISA = 0x00;
TRISC = 0x0F;
ANSEL = 0;
ANSELH = 0;
while (1) {
PORTB = 0x0F;
delay();
PORTB = 0x00;
delay();
}
return 0;
}