AVR C code for band decoder project (ham radio)