//#include #include __CONFIG(HS & WDTDIS & PWRTEN & BOREN & LVPDIS); void main(void) { //int i; TRISB = 0x00; PORTB = 0x00; //PORTB = 0x01; while(1) { //PORTB = 0x01; if (PORTB == 0x00) { PORTB = 0b00000001; // for (i = 0;i<1000;i++); } else { PORTB = 0b00000000; } } }