Hi to all engineers, I got stock on small routine any help will appreciated. all it suppose to do is ignore a few byte of 11 byte of array i have and if none ignored bytes changes generate an error. any idea of what i am doing wrong? Andre #define BUFFER_SIZE 11 BYTE buffer[BUFFER_SIZE]; BYTE next_in = 0; BYTE next_out = 0; int c,i; BYTE const target_data[BUFFER_SIZE]={0x42,0x00,0x00,0x00,0x04,0x01,0x01,0x01,0x01,0x01,0x05}; byte read_data=~target_data[0]; while(1) { #use rs232(baud=57600,parity=N,rcv=PIN_C3,bits=8) // RS422 to RS232 for(i=0;i