Hello, As I know C language is case sensitive, so the problem could be solved by using UPPERCASE for register names ( for example: ANSEL, PORTB, TRISB, INTCON ). Zsolt Flashing the first six leds LB5, LB4, LB3, LB2, LB1, LB0 with a delay of 1 sec. I try to flash the leds in the same way : LB0, LB2, LB4, LB6 -- ON and LB1, LB3, LB5, LB7 -- OFF and after 1 sec LB0, LB2, LB4, LB6 -- OFF and LB1, LB3, LB5, LB7 -- ON #include #pragma DATA _CONFIG, _CP_OFF & _PWRTE_OFF & _WDT_OFF & _HS_OSC & _LVP_OFF unsigned int counter =3D 0; void interrupt(void) { if((intcon & 0x05) && (intcon & 0x04)) { clear_bit(intcon, 2); counter++; if(counter =3D=3D 30) { counter =3D 0; portb =3D ~portb; } } } void main(void) { ansel =3D 0x00; trisb =3D 0x00; portb =3D 0b10101010; tmr0 =3D 0; cmcon =3D 0x07; option_reg =3D 0b00000111; clear_bit(intcon, 3); set_bit(intcon, 7); set_bit(intcon, 5); while(1) { } } When I compile it I receive the next message : error : unknown identifier 'ansel' error : invalid operand 'ansel' -- View this message in context: http://microcontrollers.2385.n7.nabble.com/PIC16F88-tp180532p180575.html --=20 ~~~~~~~~~~~~~~~~ http://galzsolt.zzl.org --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .