User manual

ECE 477 Final Report Spring 2004
input = getchar();
checksum = checksum ^ input;
putchar1(input);
}
putchar1(checksum);
}
/* If rx_counter1 == 1 and rx_buffer_overflow1 == 0 then full packet
received from remote unit. Check checksum and if matches transmit to
PC. */
if (rx_counter1 == 1) { //&& rx_buffer_overflow1 == 0) {
//Use getchar1 2 times and compare bytes
//If those bytes match, send one of them to the PC
input = getchar1();
if (input == getchar1()) {
putchar(input);
}
}
};
}
F-7